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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001654/0.00166, allocations: 112.9 kB / 16.42 MB, free: 5.949 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.001756/0.001757, allocations: 184.1 kB / 17.35 MB, free: 5.594 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.465/1.465, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.788/2.788, allocations: 472.7 MB / 0.746 GB, free: 468 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 59.91 kB / 1.07 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9407/0.9422, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002038/0.9443, allocations: 0.5133 MB / 1.227 GB, free: 12.98 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.00268/0.947, allocations: 1.596 MB / 1.228 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.435e-05/0.9471, allocations: 7.938 kB / 1.228 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001668/0.9473, allocations: 15.97 kB / 1.228 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.221e-05/0.9473, allocations: 11.92 kB / 1.228 GB, free: 11.33 MB / 0.9512 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 12.0.0-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.00119/0.9485, allocations: 251.2 kB / 1.229 GB, free: 11.08 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.996e-05/0.9486, allocations: 23.91 kB / 1.229 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.765e-05/0.9487, allocations: 8 kB / 1.229 GB, free: 11.05 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.9487, allocations: 11.98 kB / 1.229 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 4.979e-05/0.9488, allocations: 15.92 kB / 1.229 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.9488, allocations: 0 / 1.229 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006979/0.9495, allocations: 335.5 kB / 1.229 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 6.298e-05/0.9496, allocations: 23.92 kB / 1.229 GB, free: 10.67 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.64e-05/0.9496, allocations: 15.81 kB / 1.229 GB, free: 10.66 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0005791/0.9502, allocations: 275.8 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.9502, allocations: 3.938 kB / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.463e-06/0.9502, allocations: 0 / 1.229 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 7.564e-06/0.9503, allocations: 0 / 1.229 GB, free: 10.39 MB / 0.9512 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.0005759/0.9508, allocations: 414.6 kB / 1.23 GB, free: 9.934 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.9509, allocations: 8.031 kB / 1.23 GB, free: 9.926 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.9509, allocations: 8.891 kB / 1.23 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001844/0.9511, allocations: 184.2 kB / 1.23 GB, free: 9.699 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.163e-06/0.9511, allocations: 4.375 kB / 1.23 GB, free: 9.695 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.381e-05/0.9512, allocations: 384 / 1.23 GB, free: 9.695 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.9513, allocations: 49.98 kB / 1.23 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.9513, allocations: 0 / 1.23 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.9513, allocations: 0 / 1.23 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.9513, allocations: 0 / 1.23 GB, free: 9.641 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.761e-05/0.9514, allocations: 19.98 kB / 1.23 GB, free: 9.621 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002065/0.9516, allocations: 165.7 kB / 1.23 GB, free: 9.41 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.516e-05/0.9517, allocations: 34.5 kB / 1.23 GB, free: 9.367 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.054e-05/0.9517, allocations: 12.92 kB / 1.23 GB, free: 9.352 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.314e-05/0.9517, allocations: 11.92 kB / 1.23 GB, free: 9.34 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.9518, allocations: 34.5 kB / 1.23 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.9518, allocations: 0 / 1.23 GB, free: 9.297 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0001842/0.952, allocations: 69.53 kB / 1.23 GB, free: 9.223 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.214e-05/0.952, allocations: 51.41 kB / 1.23 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001647/0.9522, allocations: 175.8 kB / 1.231 GB, free: 8.98 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.9522, allocations: 25.7 kB / 1.231 GB, free: 8.949 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 5.828e-05/0.9523, allocations: 96.09 kB / 1.231 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.395e-05/0.9523, allocations: 0 / 1.231 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.366e-05/0.9523, allocations: 25.7 kB / 1.231 GB, free: 8.82 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001257/0.9525, allocations: 322.8 kB / 1.231 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.444e-05/0.9525, allocations: 35.98 kB / 1.231 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.214e-05/0.9526, allocations: 43.92 kB / 1.231 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.933e-05/0.9527, allocations: 76.89 kB / 1.231 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.9527, allocations: 0 / 1.231 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001632/0.9529, allocations: 137.5 kB / 1.231 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.9529, allocations: 7.938 kB / 1.231 GB, free: 8.191 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.9529, allocations: 4 kB / 1.231 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.501e-05/0.9529, allocations: 0 / 1.231 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.669e-05/0.9529, allocations: 0 / 1.231 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.953, allocations: 0 / 1.231 GB, free: 8.188 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.094e-05/0.953, allocations: 3.953 kB / 1.231 GB, free: 8.184 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.191e-05/0.953, allocations: 4 kB / 1.231 GB, free: 8.18 MB / 0.9512 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.0001918/0.9532, allocations: 126.4 kB / 1.231 GB, free: 8.047 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.9532, allocations: 7.891 kB / 1.231 GB, free: 8.039 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.9534, allocations: 61.55 kB / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.9534, allocations: 0 / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.9534, allocations: 0 / 1.231 GB, free: 7.969 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.168e-05/0.9534, allocations: 89 kB / 1.232 GB, free: 7.863 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.9535, allocations: 3.938 kB / 1.232 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.338e-05/0.9535, allocations: 0 / 1.232 GB, free: 7.859 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.894e-05/0.9535, allocations: 4.031 kB / 1.232 GB, free: 7.855 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001113/0.9536, allocations: 125 kB / 1.232 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001556/0.9538, allocations: 230.7 kB / 1.232 GB, free: 7.484 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.67e-05/0.9538, allocations: 11.94 kB / 1.232 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 8.613e-05/0.9539, allocations: 129.5 kB / 1.232 GB, free: 7.348 MB / 0.9512 GB Notification: Performance of Backend: time 3.01e-07/0.9539, allocations: 4.062 kB / 1.232 GB, free: 7.344 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0008933/0.9548, allocations: 297.8 kB / 1.232 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0004533/0.9553, allocations: 0.6075 MB / 1.233 GB, free: 6.41 MB / 0.9512 GB Notification: Performance of Templates: time 0.006215/0.9615, allocations: 2.17 MB / 1.235 GB, free: 4.242 MB / 0.9512 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