Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001481/0.001487, allocations: 105.6 kB / 16.52 MB, free: 6.727 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.001498/0.001498, allocations: 195.2 kB / 17.45 MB, free: 6.051 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.405/1.405, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7231/0.7231, allocations: 115.3 MB / 406.6 MB, free: 6.531 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 63.91 kB / 493.5 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4197/0.4212, allocations: 76.18 MB / 0.5564 GB, free: 35.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001613/0.4228, allocations: 0.5676 MB / 0.5569 GB, free: 35.32 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001813/0.4247, allocations: 1.63 MB / 0.5585 GB, free: 34.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.94e-05/0.4247, allocations: 3.938 kB / 0.5585 GB, free: 34.17 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.4249, allocations: 68.84 kB / 0.5586 GB, free: 34.16 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.579e-05/0.425, allocations: 28.2 kB / 0.5586 GB, free: 34.16 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.0006818/0.4256, allocations: 200.2 kB / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.807e-05/0.4257, allocations: 30.12 kB / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.618e-05/0.4258, allocations: 2.562 kB / 0.5588 GB, free: 34.07 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.677e-05/0.4259, allocations: 23.5 kB / 0.5589 GB, free: 34.06 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.515e-05/0.4259, allocations: 41.06 kB / 0.5589 GB, free: 34.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.5e-05/0.426, allocations: 1.344 kB / 0.5589 GB, free: 34.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005091/0.4265, allocations: 272.4 kB / 0.5592 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.7e-05/0.4266, allocations: 28.91 kB / 0.5592 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 4.216e-05/0.4266, allocations: 28.83 kB / 0.5592 GB, free: 33.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003273/0.4269, allocations: 203.8 kB / 0.5594 GB, free: 33.89 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4269, allocations: 0 / 0.5594 GB, free: 33.89 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.427, allocations: 0 / 0.5594 GB, free: 33.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.114e-05/0.427, allocations: 1.969 kB / 0.5594 GB, free: 33.89 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.0004845/0.4275, allocations: 427 kB / 0.5598 GB, free: 33.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.4275, allocations: 14.72 kB / 0.5598 GB, free: 33.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.744e-05/0.4276, allocations: 12.75 kB / 0.5598 GB, free: 33.47 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.4277, allocations: 189.5 kB / 0.56 GB, free: 33.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.821e-06/0.4277, allocations: 0.875 kB / 0.56 GB, free: 33.26 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.4277, allocations: 6.531 kB / 0.56 GB, free: 33.25 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.339e-05/0.4278, allocations: 42.7 kB / 0.5601 GB, free: 33.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.4278, allocations: 1.344 kB / 0.5601 GB, free: 33.22 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.335e-06/0.4279, allocations: 0 / 0.5601 GB, free: 33.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.4279, allocations: 4.594 kB / 0.5601 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.225e-05/0.4279, allocations: 22.05 kB / 0.5601 GB, free: 33.21 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001451/0.4281, allocations: 184.1 kB / 0.5603 GB, free: 33.01 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.065e-05/0.4281, allocations: 25.55 kB / 0.5603 GB, free: 32.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.386e-05/0.4281, allocations: 14.86 kB / 0.5603 GB, free: 32.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.658e-05/0.4282, allocations: 7.734 kB / 0.5603 GB, free: 32.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.662e-05/0.4282, allocations: 37.12 kB / 0.5604 GB, free: 32.94 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4282, allocations: 1.031 kB / 0.5604 GB, free: 32.94 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001535/0.4284, allocations: 75.81 kB / 0.5604 GB, free: 32.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.956e-05/0.4284, allocations: 54 kB / 0.5605 GB, free: 32.83 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001827/0.4286, allocations: 209.3 kB / 0.5607 GB, free: 32.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.925e-06/0.4286, allocations: 30.17 kB / 0.5607 GB, free: 32.67 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.4286, allocations: 106.3 kB / 0.5608 GB, free: 32.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.026e-05/0.4287, allocations: 1.219 kB / 0.5608 GB, free: 32.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.142e-05/0.4287, allocations: 28.52 kB / 0.5608 GB, free: 32.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.772e-05/0.4288, allocations: 327.8 kB / 0.5611 GB, free: 32.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.505e-05/0.4288, allocations: 56.19 kB / 0.5612 GB, free: 32.22 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.544e-05/0.4289, allocations: 57.98 kB / 0.5613 GB, free: 32.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.429, allocations: 95.45 kB / 0.5613 GB, free: 32.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.429, allocations: 4.938 kB / 0.5614 GB, free: 32.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000173/0.4292, allocations: 162.2 kB / 0.5615 GB, free: 32.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.4292, allocations: 9.812 kB / 0.5615 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.4293, allocations: 5.203 kB / 0.5615 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.4293, allocations: 0 / 0.5615 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.454e-05/0.4293, allocations: 5.188 kB / 0.5615 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/0.4293, allocations: 4.484 kB / 0.5615 GB, free: 32.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.659e-05/0.4293, allocations: 11.81 kB / 0.5615 GB, free: 32.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.4294, allocations: 1.188 kB / 0.5615 GB, free: 32.1 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: 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.0001212/0.4295, allocations: 133.3 kB / 0.5617 GB, free: 31.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.421e-05/0.4295, allocations: 13.55 kB / 0.5617 GB, free: 31.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.4296, allocations: 68.34 kB / 0.5617 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-06/0.4296, allocations: 1.641 kB / 0.5617 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.4296, allocations: 2.25 kB / 0.5618 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4296, allocations: 1.656 kB / 0.5618 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.484e-05/0.4297, allocations: 181.9 kB / 0.5619 GB, free: 31.74 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4297, allocations: 0 / 0.5619 GB, free: 31.74 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.749e-06/0.4297, allocations: 4.688 kB / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.4298, allocations: 5.312 kB / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.4298, allocations: 1.219 kB / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.4298, allocations: 0 / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4298, allocations: 1.781 kB / 0.5619 GB, free: 31.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.713e-05/0.4299, allocations: 83.56 kB / 0.562 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.964e-05/0.4299, allocations: 92.91 kB / 0.5621 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.4299, allocations: 3.938 kB / 0.5621 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.436e-05/0.4299, allocations: 2.344 kB / 0.5621 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/0.43, allocations: 0.6562 kB / 0.5621 GB, free: 31.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.827e-06/0.43, allocations: 1.594 kB / 0.5621 GB, free: 31.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.4301, allocations: 146.9 kB / 0.5623 GB, free: 31.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4301, allocations: 0.7188 kB / 0.5623 GB, free: 31.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003904/0.4305, allocations: 89.58 kB / 0.5623 GB, free: 31.45 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.0005416/0.4311, allocations: 229.3 kB / 0.5626 GB, free: 31.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002179/0.4313, allocations: 125.1 kB / 0.5627 GB, free: 31.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4313, allocations: 1.812 kB / 0.5627 GB, free: 31.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.073e-05/0.4313, allocations: 16.44 kB / 0.5627 GB, free: 31.28 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001508/0.4315, allocations: 6.469 kB / 0.5627 GB, free: 31.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000325/0.4318, allocations: 256.1 kB / 0.5629 GB, free: 31.08 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.432, allocations: 0.7034 MB / 0.5636 GB, free: 30.38 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.588e-05/0.432, allocations: 9.5 kB / 0.5636 GB, free: 30.38 MB / 446.1 MB Notification: Performance of SimCode: time 2.9e-07/0.432, allocations: 0 / 0.5636 GB, free: 30.38 MB / 446.1 MB Notification: Performance of Templates: time 0.005088/0.4371, allocations: 2.37 MB / 0.566 GB, free: 30.25 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)