Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001446/0.001446, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001691/0.001691, allocations: 195.9 kB / 16.26 MB, free: 6.621 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.327/1.327, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002026/0.002026, allocations: 286.8 kB / 290.4 MB, free: 2.129 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9975/0.9975, allocations: 169.2 MB / 0.4978 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 100.4 kB / 0.5947 GB, free: 28.32 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1571/0.1587, allocations: 86.98 MB / 0.6796 GB, free: 1.094 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001733/0.1605, allocations: 0.5697 MB / 0.6802 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002106/0.1626, allocations: 1.604 MB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.91e-05/0.1627, allocations: 0.5312 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001788/0.1629, allocations: 71.84 kB / 0.6818 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.469e-05/0.1629, allocations: 31.94 kB / 0.6818 GB, free: 14.81 MB / 494.1 MB [/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/BuildingSystems 2.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.0008118/0.1637, allocations: 215.6 kB / 0.682 GB, free: 14.6 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.143e-05/0.1638, allocations: 35.84 kB / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.423e-05/0.1639, allocations: 0 / 0.6821 GB, free: 14.57 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.187e-05/0.1639, allocations: 19.97 kB / 0.6821 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.018e-05/0.164, allocations: 51.89 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.183e-05/0.164, allocations: 3.984 kB / 0.6821 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004442/0.1644, allocations: 279.6 kB / 0.6824 GB, free: 14.22 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.099e-05/0.1645, allocations: 27.91 kB / 0.6824 GB, free: 14.19 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.833e-05/0.1645, allocations: 27.75 kB / 0.6825 GB, free: 14.16 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003711/0.1649, allocations: 291.5 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1649, allocations: 0 / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1649, allocations: 0 / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.1649, allocations: 0 / 0.6827 GB, free: 13.88 MB / 494.1 MB 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.0004338/0.1654, allocations: 435 kB / 0.6832 GB, free: 13.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1654, allocations: 8.031 kB / 0.6832 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.716e-05/0.1655, allocations: 16.69 kB / 0.6832 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.1656, allocations: 193.4 kB / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.336e-06/0.1656, allocations: 384 / 0.6834 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.1656, allocations: 4.359 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.466e-05/0.1657, allocations: 41.95 kB / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1657, allocations: 0 / 0.6834 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.452e-06/0.1658, allocations: 4 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.1658, allocations: 0 / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.941e-05/0.1658, allocations: 23.92 kB / 0.6834 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001801/0.166, allocations: 189.6 kB / 0.6836 GB, free: 12.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.234e-05/0.166, allocations: 22.58 kB / 0.6836 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.1661, allocations: 16.91 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.039e-05/0.1661, allocations: 4 kB / 0.6837 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.1661, allocations: 50.44 kB / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 9.237e-06/0.1661, allocations: 0 / 0.6837 GB, free: 12.73 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001361/0.1663, allocations: 73.42 kB / 0.6838 GB, free: 12.65 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.1663, allocations: 51.41 kB / 0.6838 GB, free: 12.59 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.1665, allocations: 202.9 kB / 0.684 GB, free: 12.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.1665, allocations: 25.7 kB / 0.684 GB, free: 12.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.1666, allocations: 112 kB / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.596e-06/0.1666, allocations: 0 / 0.6842 GB, free: 12.24 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.12e-05/0.1667, allocations: 33.83 kB / 0.6842 GB, free: 12.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.1668, allocations: 326.8 kB / 0.6845 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.074e-05/0.1668, allocations: 55.97 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.469e-05/0.1669, allocations: 51.98 kB / 0.6846 GB, free: 11.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.94e-05/0.167, allocations: 94.69 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.167, allocations: 0 / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001681/0.1672, allocations: 169.4 kB / 0.6848 GB, free: 11.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.1672, allocations: 7.938 kB / 0.6849 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.1672, allocations: 4 kB / 0.6849 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.478e-06/0.1672, allocations: 4.062 kB / 0.6849 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.056e-05/0.1672, allocations: 0 / 0.6849 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.666e-06/0.1672, allocations: 0 / 0.6849 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.66e-05/0.1673, allocations: 11.84 kB / 0.6849 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.1673, allocations: 4 kB / 0.6849 GB, free: 11.47 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001266/0.1674, allocations: 132.3 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.447e-05/0.1674, allocations: 11.84 kB / 0.685 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001082/0.1676, allocations: 74.17 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1676, allocations: 0 / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1676, allocations: 0 / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.1676, allocations: 0 / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001154/0.1677, allocations: 181.6 kB / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1677, allocations: 0 / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.699e-06/0.1677, allocations: 0 / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.1677, allocations: 7.938 kB / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.811e-06/0.1677, allocations: 0 / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1677, allocations: 0 / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1677, allocations: 0 / 0.6853 GB, free: 11.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.236e-05/0.1678, allocations: 92.98 kB / 0.6854 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.409e-05/0.1679, allocations: 84.95 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.1679, allocations: 7.938 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.1679, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.147e-06/0.1679, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.1679, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001041/0.168, allocations: 152.4 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1681, allocations: 4.031 kB / 0.6856 GB, free: 10.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.1684, allocations: 83.98 kB / 0.6857 GB, free: 10.55 MB / 494.1 MB 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.0004395/0.1688, allocations: 226.7 kB / 0.6859 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.169, allocations: 133.7 kB / 0.686 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.169, allocations: 0 / 0.686 GB, free: 10.21 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.98e-05/0.169, allocations: 19.92 kB / 0.686 GB, free: 10.19 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001375/0.1692, allocations: 7.938 kB / 0.686 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002997/0.1695, allocations: 237.9 kB / 0.6863 GB, free: 9.922 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.1697, allocations: 0.7002 MB / 0.687 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.619e-05/0.1697, allocations: 0 / 0.687 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.202e-05/0.1698, allocations: 11.44 kB / 0.687 GB, free: 9.184 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1698, allocations: 0 / 0.687 GB, free: 9.184 MB / 494.1 MB Notification: Performance of Templates: time 0.004723/0.1745, allocations: 2.109 MB / 0.689 GB, free: 7.074 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)