Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.006525/0.006524, allocations: 100.8 kB / 15.87 MB, free: 6.312 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.001201/0.001201, allocations: 198.4 kB / 16.79 MB, free: 6.242 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.429/1.429, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.732/0.732, allocations: 122.9 MB / 413.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 57.31 kB / 0.4904 GB, free: 14.48 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1652/0.1664, allocations: 77.93 MB / 0.5665 GB, free: 0.7539 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001648/0.1681, allocations: 0.5688 MB / 0.5671 GB, free: 184 kB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002002/0.1701, allocations: 1.626 MB / 0.5686 GB, free: 14.54 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.513e-05/0.1701, allocations: 3.938 kB / 0.5687 GB, free: 14.53 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.1703, allocations: 23.92 kB / 0.5687 GB, free: 14.51 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.546e-05/0.1703, allocations: 15.92 kB / 0.5687 GB, free: 14.49 MB / 446.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.171, allocations: 191.6 kB / 0.5689 GB, free: 14.3 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.43e-05/0.171, allocations: 15.98 kB / 0.5689 GB, free: 14.29 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.83e-05/0.1711, allocations: 8 kB / 0.5689 GB, free: 14.28 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.005e-05/0.1711, allocations: 15.92 kB / 0.5689 GB, free: 14.27 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.861e-05/0.1712, allocations: 23.86 kB / 0.5689 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.1712, allocations: 0 / 0.5689 GB, free: 14.24 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000423/0.1716, allocations: 271.6 kB / 0.5692 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.714e-05/0.1717, allocations: 23.97 kB / 0.5692 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.1717, allocations: 15.81 kB / 0.5692 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003445/0.1721, allocations: 271.4 kB / 0.5695 GB, free: 13.67 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.1721, allocations: 4 kB / 0.5695 GB, free: 13.67 MB / 446.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1721, allocations: 7.938 kB / 0.5695 GB, free: 13.66 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.1721, allocations: 0 / 0.5695 GB, free: 13.66 MB / 446.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.0004084/0.1725, allocations: 399.5 kB / 0.5699 GB, free: 13.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1725, allocations: 8.031 kB / 0.5699 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.713e-05/0.1726, allocations: 8.844 kB / 0.5699 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.1727, allocations: 184.2 kB / 0.5701 GB, free: 12.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.1728, allocations: 4.375 kB / 0.5701 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.1728, allocations: 384 / 0.5701 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.451e-05/0.1729, allocations: 42 kB / 0.5701 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1729, allocations: 4 kB / 0.5701 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.1729, allocations: 0 / 0.5701 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1729, allocations: 0 / 0.5701 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.88e-05/0.1729, allocations: 19.98 kB / 0.5701 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001646/0.1731, allocations: 173.6 kB / 0.5703 GB, free: 12.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.463e-05/0.1732, allocations: 26.52 kB / 0.5703 GB, free: 12.66 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.18e-05/0.1732, allocations: 8.922 kB / 0.5703 GB, free: 12.65 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.566e-05/0.1732, allocations: 11.98 kB / 0.5704 GB, free: 12.64 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.1733, allocations: 42.5 kB / 0.5704 GB, free: 12.59 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.41e-07/0.1733, allocations: 0 / 0.5704 GB, free: 12.59 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001481/0.1734, allocations: 61.53 kB / 0.5705 GB, free: 12.52 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.248e-05/0.1735, allocations: 51.41 kB / 0.5705 GB, free: 12.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000152/0.1736, allocations: 172.4 kB / 0.5707 GB, free: 12.28 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/0.1736, allocations: 25.7 kB / 0.5707 GB, free: 12.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.781e-05/0.1737, allocations: 104 kB / 0.5708 GB, free: 12.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.818e-06/0.1737, allocations: 4.125 kB / 0.5708 GB, free: 12.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.614e-05/0.1738, allocations: 25.66 kB / 0.5708 GB, free: 12.11 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.1739, allocations: 322.8 kB / 0.5711 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.963e-05/0.1739, allocations: 35.98 kB / 0.5712 GB, free: 11.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.903e-05/0.174, allocations: 39.98 kB / 0.5712 GB, free: 11.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.595e-05/0.1741, allocations: 64.94 kB / 0.5713 GB, free: 11.64 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1741, allocations: 0 / 0.5713 GB, free: 11.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001613/0.1742, allocations: 137.4 kB / 0.5714 GB, free: 11.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1743, allocations: 10.34 kB / 0.5714 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.1743, allocations: 7.938 kB / 0.5714 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1743, allocations: 4 kB / 0.5714 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.861e-05/0.1743, allocations: 4 kB / 0.5714 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.1743, allocations: 0 / 0.5714 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.079e-05/0.1743, allocations: 3.906 kB / 0.5714 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-06/0.1744, allocations: 4 kB / 0.5714 GB, free: 11.47 MB / 446.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: 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.0001282/0.1745, allocations: 117.8 kB / 0.5715 GB, free: 11.35 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.392e-05/0.1745, allocations: 15.83 kB / 0.5716 GB, free: 11.33 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001071/0.1746, allocations: 61.56 kB / 0.5716 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1746, allocations: 0 / 0.5716 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1747, allocations: 0 / 0.5716 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1747, allocations: 3.984 kB / 0.5716 GB, free: 11.26 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001169/0.1748, allocations: 177.5 kB / 0.5718 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1748, allocations: 0 / 0.5718 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.147e-06/0.1748, allocations: 4 kB / 0.5718 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.1748, allocations: 3.938 kB / 0.5718 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.903e-06/0.1748, allocations: 0 / 0.5718 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1748, allocations: 0 / 0.5718 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1748, allocations: 4.031 kB / 0.5718 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.594e-05/0.1749, allocations: 77.03 kB / 0.5719 GB, free: 10.93 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.175, allocations: 96.88 kB / 0.572 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.204e-05/0.175, allocations: 0 / 0.572 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.115e-05/0.175, allocations: 0 / 0.572 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.139e-05/0.175, allocations: 0 / 0.572 GB, free: 10.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-06/0.175, allocations: 0 / 0.572 GB, free: 10.82 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.909e-05/0.1751, allocations: 127.5 kB / 0.5721 GB, free: 10.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1751, allocations: 0 / 0.5721 GB, free: 10.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003098/0.1754, allocations: 83.98 kB / 0.5722 GB, free: 10.62 MB / 446.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.0004706/0.1759, allocations: 233.6 kB / 0.5724 GB, free: 10.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001575/0.1761, allocations: 101.7 kB / 0.5725 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1761, allocations: 0 / 0.5725 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.69e-05/0.1761, allocations: 15.98 kB / 0.5725 GB, free: 10.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001433/0.1763, allocations: 2.344 kB / 0.5725 GB, free: 10.28 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002736/0.1765, allocations: 183.2 kB / 0.5727 GB, free: 10.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002464/0.1768, allocations: 0.6926 MB / 0.5733 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.034e-05/0.1768, allocations: 4 kB / 0.5734 GB, free: 9.352 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.472e-05/0.1768, allocations: 7.438 kB / 0.5734 GB, free: 9.344 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1768, allocations: 0 / 0.5734 GB, free: 9.344 MB / 446.1 MB Notification: Performance of Templates: time 0.004794/0.1816, allocations: 2.08 MB / 0.5754 GB, free: 7.262 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)