Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 108.9 kB / 16.27 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001833/0.001833, allocations: 187.4 kB / 17.2 MB, free: 5.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.601/2.601, allocations: 469.4 MB / 0.7427 GB, free: 3.648 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 64.91 kB / 0.9088 GB, free: 14.15 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3201, allocations: 159.1 MB / 1.064 GB, free: 15.03 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002075/0.3223, allocations: 0.5121 MB / 1.065 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002419/0.3247, allocations: 1.606 MB / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.255e-05/0.3248, allocations: 0 / 1.066 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001575/0.3249, allocations: 27.84 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.049e-05/0.325, allocations: 7.984 kB / 1.066 GB, free: 12.86 MB / 0.8419 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.001126/0.3262, allocations: 249.3 kB / 1.067 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.842e-05/0.3263, allocations: 19.97 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.384e-05/0.3263, allocations: 7.938 kB / 1.067 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.475e-05/0.3264, allocations: 11.98 kB / 1.067 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 4.793e-05/0.3264, allocations: 15.92 kB / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.373e-05/0.3264, allocations: 0 / 1.067 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006011/0.327, allocations: 287.6 kB / 1.067 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 6.59e-05/0.3271, allocations: 23.91 kB / 1.067 GB, free: 12.25 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.833e-05/0.3272, allocations: 23.81 kB / 1.067 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000513/0.3277, allocations: 279.4 kB / 1.067 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.3277, allocations: 3.938 kB / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.753e-06/0.3277, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.022e-05/0.3277, allocations: 0 / 1.067 GB, free: 11.95 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005592/0.3283, allocations: 403.4 kB / 1.068 GB, free: 11.51 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.3283, allocations: 8.625 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.725e-05/0.3284, allocations: 8.844 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002114/0.3286, allocations: 188.2 kB / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3286, allocations: 384 / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.888e-06/0.3286, allocations: 384 / 1.068 GB, free: 11.27 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001115/0.3288, allocations: 38.02 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.3288, allocations: 3.984 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.3288, allocations: 0 / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.029e-06/0.3288, allocations: 0 / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.949e-05/0.3288, allocations: 19.94 kB / 1.068 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/0.3291, allocations: 177.6 kB / 1.068 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 5.225e-05/0.3291, allocations: 26.56 kB / 1.068 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.318e-05/0.3292, allocations: 8.922 kB / 1.068 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.25e-05/0.3292, allocations: 8 kB / 1.068 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.3292, allocations: 38.5 kB / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3292, allocations: 0 / 1.068 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=1): time 0.0001771/0.3294, allocations: 65.52 kB / 1.068 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.249e-05/0.3295, allocations: 55.53 kB / 1.068 GB, free: 10.75 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.3296, allocations: 174.4 kB / 1.068 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.3297, allocations: 25.7 kB / 1.068 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.3297, allocations: 96.12 kB / 1.068 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 1.103e-05/0.3297, allocations: 0 / 1.068 GB, free: 10.44 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.3298, allocations: 25.7 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.3299, allocations: 322.8 kB / 1.069 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.94e-05/0.33, allocations: 39.98 kB / 1.069 GB, free: 10.05 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.713e-05/0.3301, allocations: 43.98 kB / 1.069 GB, free: 10 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.654e-05/0.3301, allocations: 76.8 kB / 1.069 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3302, allocations: 0 / 1.069 GB, free: 9.926 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001524/0.3303, allocations: 129.5 kB / 1.069 GB, free: 9.793 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.115e-05/0.3303, allocations: 11.92 kB / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.3304, allocations: 0 / 1.069 GB, free: 9.781 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.3304, allocations: 4 kB / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-05/0.3304, allocations: 0 / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.3304, allocations: 0 / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.356e-05/0.3305, allocations: 11.83 kB / 1.069 GB, free: 9.766 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.3305, allocations: 8.062 kB / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (cluster_size[3],cluster_size[2],cluster_size[1],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.3306, allocations: 120.8 kB / 1.069 GB, free: 9.633 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.693e-05/0.3307, allocations: 11.84 kB / 1.069 GB, free: 9.621 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.3308, allocations: 69.42 kB / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3308, allocations: 0 / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3308, allocations: 0 / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.3308, allocations: 0 / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001288/0.3309, allocations: 169.6 kB / 1.069 GB, free: 9.328 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3309, allocations: 4.031 kB / 1.069 GB, free: 9.324 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.504e-06/0.331, allocations: 7.984 kB / 1.069 GB, free: 9.316 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.331, allocations: 3.938 kB / 1.069 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.032e-06/0.331, allocations: 0 / 1.069 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.331, allocations: 0 / 1.069 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.331, allocations: 0 / 1.069 GB, free: 9.312 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.731e-05/0.3311, allocations: 77.03 kB / 1.07 GB, free: 9.219 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.095e-05/0.3311, allocations: 88.95 kB / 1.07 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.273e-05/0.3312, allocations: 4.031 kB / 1.07 GB, free: 9.109 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.339e-05/0.3312, allocations: 0 / 1.07 GB, free: 9.109 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.637e-05/0.3312, allocations: 3.938 kB / 1.07 GB, free: 9.105 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.3312, allocations: 3.984 kB / 1.07 GB, free: 9.102 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 8.045e-05/0.3313, allocations: 119.2 kB / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of sort global known variables: time 3e-07/0.3313, allocations: 0 / 1.07 GB, free: 8.984 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003816/0.3317, allocations: 83.98 kB / 1.07 GB, free: 8.902 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005828/0.3323, allocations: 235.2 kB / 1.07 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001777/0.3325, allocations: 101.7 kB / 1.07 GB, free: 8.578 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.3325, allocations: 4 kB / 1.07 GB, free: 8.574 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.382e-05/0.3325, allocations: 8 kB / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.3327, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003255/0.333, allocations: 202.6 kB / 1.07 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002721/0.3333, allocations: 0.6962 MB / 1.071 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.662e-05/0.3333, allocations: 7.438 kB / 1.071 GB, free: 7.609 MB / 0.8419 GB Notification: Performance of SimCode: time 3.2e-07/0.3333, allocations: 4 kB / 1.071 GB, free: 7.605 MB / 0.8419 GB Notification: Performance of Templates: time 0.004917/0.3382, allocations: 2.243 MB / 1.073 GB, free: 5.359 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches