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.00111/0.001111, allocations: 114.4 kB / 17.04 MB, free: 6.074 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.001211/0.001211, allocations: 195 kB / 17.98 MB, free: 5.16 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.299/1.299, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7001/0.7001, allocations: 115.1 MB / 406.9 MB, free: 6.406 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 64.12 kB / 494.8 MB, free: 15.94 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3312, allocations: 76.14 MB / 0.5576 GB, free: 36.73 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001636/0.3329, allocations: 0.5066 MB / 0.5581 GB, free: 36.45 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.3347, allocations: 1.6 MB / 0.5596 GB, free: 35.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.573e-05/0.3348, allocations: 0.5 kB / 0.5596 GB, free: 35.32 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.3349, allocations: 28.08 kB / 0.5596 GB, free: 35.31 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.947e-05/0.3349, allocations: 8.266 kB / 0.5597 GB, free: 35.31 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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.0008155/0.3357, allocations: 245.5 kB / 0.5599 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.737e-05/0.3358, allocations: 20.66 kB / 0.5599 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.05e-05/0.3359, allocations: 12.11 kB / 0.5599 GB, free: 35.2 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.978e-05/0.3359, allocations: 17.47 kB / 0.5599 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.336, allocations: 15.73 kB / 0.56 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.336, allocations: 2 kB / 0.56 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005426/0.3365, allocations: 331.2 kB / 0.5603 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.711e-05/0.3366, allocations: 17.95 kB / 0.5603 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.493e-05/0.3366, allocations: 18.69 kB / 0.5603 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003935/0.337, allocations: 279.9 kB / 0.5606 GB, free: 34.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.337, allocations: 1.344 kB / 0.5606 GB, free: 34.99 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.337, allocations: 0 / 0.5606 GB, free: 34.99 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.337, allocations: 1.125 kB / 0.5606 GB, free: 34.99 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.0003664/0.3374, allocations: 407.2 kB / 0.561 GB, free: 34.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.273e-05/0.3374, allocations: 10.56 kB / 0.561 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.3375, allocations: 6.875 kB / 0.561 GB, free: 34.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.3376, allocations: 184.7 kB / 0.5612 GB, free: 34.38 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.886e-06/0.3376, allocations: 4.594 kB / 0.5612 GB, free: 34.38 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.3376, allocations: 1.562 kB / 0.5612 GB, free: 34.38 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.178e-05/0.3377, allocations: 44.23 kB / 0.5612 GB, free: 34.34 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.3377, allocations: 0.75 kB / 0.5612 GB, free: 34.34 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.3377, allocations: 0 / 0.5612 GB, free: 34.34 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3378, allocations: 2.719 kB / 0.5612 GB, free: 34.34 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.978e-05/0.3378, allocations: 24.41 kB / 0.5612 GB, free: 34.34 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001272/0.3379, allocations: 173.9 kB / 0.5614 GB, free: 34.14 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.981e-05/0.338, allocations: 27.23 kB / 0.5614 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.14e-05/0.338, allocations: 14.28 kB / 0.5614 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.338, allocations: 4.828 kB / 0.5614 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.321e-05/0.3381, allocations: 36.31 kB / 0.5615 GB, free: 34.06 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.3381, allocations: 0 / 0.5615 GB, free: 34.06 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001315/0.3382, allocations: 66.86 kB / 0.5615 GB, free: 34.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.908e-05/0.3382, allocations: 53.12 kB / 0.5616 GB, free: 33.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.3384, allocations: 175.8 kB / 0.5618 GB, free: 33.84 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-06/0.3384, allocations: 25.7 kB / 0.5618 GB, free: 33.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.592e-05/0.3384, allocations: 94.81 kB / 0.5619 GB, free: 33.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.237e-06/0.3384, allocations: 0.5625 kB / 0.5619 GB, free: 33.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.795e-05/0.3385, allocations: 26.56 kB / 0.5619 GB, free: 33.7 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.98e-05/0.3385, allocations: 322.2 kB / 0.5622 GB, free: 33.38 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.471e-05/0.3386, allocations: 37.45 kB / 0.5622 GB, free: 33.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.347e-05/0.3386, allocations: 42.86 kB / 0.5623 GB, free: 33.37 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.941e-05/0.3387, allocations: 67.67 kB / 0.5623 GB, free: 33.35 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.3387, allocations: 3.938 kB / 0.5623 GB, free: 33.34 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001386/0.3389, allocations: 128.7 kB / 0.5625 GB, free: 33.29 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.3389, allocations: 9.891 kB / 0.5625 GB, free: 33.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.876e-05/0.3389, allocations: 6.75 kB / 0.5625 GB, free: 33.29 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.3389, allocations: 5.75 kB / 0.5625 GB, free: 33.28 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.191e-05/0.339, allocations: 0 / 0.5625 GB, free: 33.28 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.339, allocations: 1.844 kB / 0.5625 GB, free: 33.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.237e-05/0.339, allocations: 6.875 kB / 0.5625 GB, free: 33.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.339, allocations: 1.469 kB / 0.5625 GB, free: 33.28 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.0001046/0.3391, allocations: 122.6 kB / 0.5626 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.3391, allocations: 10.28 kB / 0.5626 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.652e-05/0.3392, allocations: 63.78 kB / 0.5627 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-06/0.3393, allocations: 1.625 kB / 0.5627 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3393, allocations: 0 / 0.5627 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3393, allocations: 2.812 kB / 0.5627 GB, free: 33.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.441e-05/0.3394, allocations: 168.6 kB / 0.5629 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3394, allocations: 2.312 kB / 0.5629 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.348e-06/0.3394, allocations: 1.562 kB / 0.5629 GB, free: 32.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3394, allocations: 4.688 kB / 0.5629 GB, free: 32.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.3394, allocations: 0 / 0.5629 GB, free: 32.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.3394, allocations: 1.438 kB / 0.5629 GB, free: 32.91 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.3394, allocations: 4.406 kB / 0.5629 GB, free: 32.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.142e-05/0.3395, allocations: 76.97 kB / 0.5629 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.309e-05/0.3395, allocations: 88.19 kB / 0.563 GB, free: 32.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.229e-05/0.3395, allocations: 8.625 kB / 0.563 GB, free: 32.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.249e-05/0.3395, allocations: 1.469 kB / 0.563 GB, free: 32.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.45e-05/0.3396, allocations: 0.5625 kB / 0.563 GB, free: 32.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.908e-06/0.3396, allocations: 8.016 kB / 0.563 GB, free: 32.73 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.042e-05/0.3396, allocations: 121.7 kB / 0.5632 GB, free: 32.65 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3396, allocations: 0 / 0.5632 GB, free: 32.65 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.34, allocations: 88.72 kB / 0.5632 GB, free: 32.63 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.0004272/0.3404, allocations: 222.5 kB / 0.5635 GB, free: 32.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001642/0.3406, allocations: 99.48 kB / 0.5636 GB, free: 32.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3406, allocations: 0.9688 kB / 0.5636 GB, free: 32.48 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.638e-05/0.3406, allocations: 9.328 kB / 0.5636 GB, free: 32.48 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001403/0.3408, allocations: 10.91 kB / 0.5636 GB, free: 32.47 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002274/0.341, allocations: 165.3 kB / 0.5637 GB, free: 32.34 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.3411, allocations: 0.6937 MB / 0.5644 GB, free: 31.65 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.778e-05/0.3412, allocations: 2.219 kB / 0.5644 GB, free: 31.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.3412, allocations: 9.031 kB / 0.5644 GB, free: 31.64 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3412, allocations: 0.6562 kB / 0.5644 GB, free: 31.64 MB / 446.1 MB Notification: Performance of Templates: time 0.005526/0.3467, allocations: 2.089 MB / 0.5665 GB, free: 31.54 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 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)