Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00155/0.00155, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9887/0.9887, allocations: 177.2 MB / 203.8 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.462/2.462, allocations: 438.8 MB / 0.6827 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.214e-05/2.37e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001731/0.001755, allocations: 0.5717 MB / 0.8391 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.002309/0.004064, allocations: 1.664 MB / 0.8408 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.004099, allocations: 0 / 0.8408 GB, free: 11.98 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.0001975/0.004296, allocations: 63.83 kB / 0.8408 GB, free: 11.91 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 3.75e-05/0.004334, allocations: 23.97 kB / 0.8408 GB, free: 11.89 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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'. Notification: Performance of NFTyping.typeClassSections: time 0.0007767/0.005111, allocations: 262.9 kB / 0.8411 GB, free: 11.63 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 8.911e-05/0.0052, allocations: 35.91 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.403e-05/0.005234, allocations: 3.938 kB / 0.8411 GB, free: 11.59 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 5.374e-05/0.005287, allocations: 23.95 kB / 0.8412 GB, free: 11.57 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.653e-05/0.005344, allocations: 31.97 kB / 0.8412 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.269e-05/0.005357, allocations: 0 / 0.8412 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007295/0.006086, allocations: 487 kB / 0.8417 GB, free: 11.06 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 5.614e-05/0.006142, allocations: 27.92 kB / 0.8417 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.12e-05/0.006163, allocations: 11.94 kB / 0.8417 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.006589, allocations: 363 kB / 0.842 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.006592, allocations: 0 / 0.842 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of FrontEnd: time 8.41e-07/0.006593, allocations: 0 / 0.842 GB, free: 10.67 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.086e-06/0.006596, allocations: 0 / 0.842 GB, free: 10.67 MB / 0.8073 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.0003287/0.006924, allocations: 331.9 kB / 0.8424 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.006961, allocations: 16.62 kB / 0.8424 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.006989, allocations: 4.922 kB / 0.8424 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.007218, allocations: 146.3 kB / 0.8425 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.794e-06/0.007226, allocations: 384 / 0.8425 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.211e-06/0.007232, allocations: 384 / 0.8425 GB, free: 10.13 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.026e-05/0.007292, allocations: 29.09 kB / 0.8425 GB, free: 10.1 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.007301, allocations: 8.172 kB / 0.8425 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.019e-06/0.007306, allocations: 384 / 0.8425 GB, free: 10.09 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.007314, allocations: 7.875 kB / 0.8426 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.636e-06/0.007323, allocations: 0 / 0.8426 GB, free: 10.08 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.769e-05/0.007421, allocations: 74.66 kB / 0.8426 GB, free: 9.992 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 3.493e-05/0.007456, allocations: 26.61 kB / 0.8427 GB, free: 9.957 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.096e-05/0.007467, allocations: 4.859 kB / 0.8427 GB, free: 9.949 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.007499, allocations: 8.047 kB / 0.8427 GB, free: 9.941 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.007522, allocations: 34.55 kB / 0.8427 GB, free: 9.898 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.007523, allocations: 4 kB / 0.8427 GB, free: 9.895 MB / 0.8073 GB Notification: Performance of matching and sorting (n=1): time 8.751e-05/0.007611, allocations: 33.64 kB / 0.8427 GB, free: 9.855 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.00764, allocations: 55.41 kB / 0.8428 GB, free: 9.789 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001352/0.007776, allocations: 187.5 kB / 0.843 GB, free: 9.594 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.035e-05/0.007786, allocations: 29.7 kB / 0.843 GB, free: 9.559 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.925e-05/0.007825, allocations: 100.2 kB / 0.8431 GB, free: 9.457 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 9.568e-06/0.007835, allocations: 0 / 0.8431 GB, free: 9.457 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.007876, allocations: 33.67 kB / 0.8431 GB, free: 9.418 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.808e-05/0.007964, allocations: 326.8 kB / 0.8434 GB, free: 9.09 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.528e-05/0.007989, allocations: 14.83 kB / 0.8434 GB, free: 9.074 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.721e-05/0.008007, allocations: 11.38 kB / 0.8435 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.528e-05/0.008052, allocations: 35.61 kB / 0.8435 GB, free: 9.027 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.008054, allocations: 0 / 0.8435 GB, free: 9.027 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16) (initialization): time 9.202e-05/0.008146, allocations: 69.62 kB / 0.8436 GB, free: 8.953 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.00816, allocations: 8 kB / 0.8436 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/0.008174, allocations: 3.984 kB / 0.8436 GB, free: 8.941 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.008186, allocations: 4.062 kB / 0.8436 GB, free: 8.938 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.308e-05/0.008199, allocations: 4 kB / 0.8436 GB, free: 8.934 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.008203, allocations: 3.984 kB / 0.8436 GB, free: 8.93 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.835e-05/0.008232, allocations: 19.78 kB / 0.8436 GB, free: 8.91 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.008239, allocations: 0 / 0.8436 GB, free: 8.91 MB / 0.8073 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 7.267e-05/0.008312, allocations: 112.7 kB / 0.8437 GB, free: 8.789 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.263e-05/0.008325, allocations: 7.984 kB / 0.8437 GB, free: 8.781 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.621e-05/0.008401, allocations: 50.08 kB / 0.8438 GB, free: 8.727 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.008403, allocations: 4.031 kB / 0.8438 GB, free: 8.723 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.008404, allocations: 4 kB / 0.8438 GB, free: 8.719 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.008406, allocations: 0 / 0.8438 GB, free: 8.719 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.449e-05/0.008481, allocations: 81.81 kB / 0.8438 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.008482, allocations: 0 / 0.8438 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.837e-06/0.008485, allocations: 0 / 0.8438 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.008487, allocations: 0 / 0.8438 GB, free: 8.621 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.008493, allocations: 4 kB / 0.8439 GB, free: 8.617 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.008494, allocations: 0 / 0.8439 GB, free: 8.617 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.008495, allocations: 0 / 0.8439 GB, free: 8.617 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.932e-05/0.008554, allocations: 78.64 kB / 0.8439 GB, free: 8.52 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/0.008567, allocations: 11.94 kB / 0.8439 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.008579, allocations: 4 kB / 0.8439 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.27e-05/0.008591, allocations: 0 / 0.8439 GB, free: 8.504 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.134e-05/0.008603, allocations: 3.984 kB / 0.8439 GB, free: 8.5 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.174e-06/0.008605, allocations: 0 / 0.8439 GB, free: 8.5 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 5.287e-05/0.008658, allocations: 46 kB / 0.844 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.008658, allocations: 0 / 0.844 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002896/0.008947, allocations: 91.8 kB / 0.8441 GB, free: 8.363 MB / 0.8073 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.0005294/0.009477, allocations: 256.8 kB / 0.8443 GB, free: 8.141 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0001131/0.00959, allocations: 70.52 kB / 0.8444 GB, free: 8.062 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.009593, allocations: 0 / 0.8444 GB, free: 8.062 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 8.156e-06/0.009601, allocations: 8.859 kB / 0.8444 GB, free: 8.051 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.163e-05/0.009673, allocations: 3.938 kB / 0.8444 GB, free: 8.047 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.009945, allocations: 194.9 kB / 0.8446 GB, free: 7.824 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.062e-05/0.009986, allocations: 63.34 kB / 0.8446 GB, free: 7.742 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.338e-05/0.01001, allocations: 4 kB / 0.8447 GB, free: 7.738 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.41e-05/0.01004, allocations: 51.36 kB / 0.8447 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of SimCode: time 7.61e-07/0.01004, allocations: 0 / 0.8447 GB, free: 7.688 MB / 0.8073 GB Notification: Performance of Templates: time 0.006016/0.01606, allocations: 2.611 MB / 0.8473 GB, free: 5.082 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.316310876980424]