Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.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.001383/0.001383, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.001598/0.001598, allocations: 157.7 kB / 22.75 MB, free: 1.684 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 1.445/1.445, allocations: 177.1 MB / 203.1 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002657/0.002657, allocations: 235.8 kB / 259.8 MB, free: 12.84 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.08/1.08, allocations: 138.4 MB / 454.7 MB, free: 1.445 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 0.5543 GB, free: 0.8711 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.296e-05/2.439e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.8672 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00158/0.001605, allocations: 0.517 MB / 0.5548 GB, free: 356 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002785/0.00439, allocations: 1.603 MB / 0.5564 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.004425, allocations: 7.938 kB / 0.5564 GB, free: 14.72 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001378/0.004563, allocations: 15.97 kB / 0.5564 GB, free: 14.7 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.477e-05/0.004588, allocations: 7.984 kB / 0.5564 GB, free: 14.7 MB / 490.7 MB [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 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.00101/0.005598, allocations: 267 kB / 0.5566 GB, free: 14.43 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.657e-05/0.005675, allocations: 31.89 kB / 0.5567 GB, free: 14.4 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.084e-05/0.005706, allocations: 0 / 0.5567 GB, free: 14.4 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.573e-05/0.005751, allocations: 11.98 kB / 0.5567 GB, free: 14.39 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.07e-05/0.005792, allocations: 15.92 kB / 0.5567 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.507e-05/0.005807, allocations: 4 kB / 0.5567 GB, free: 14.37 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008106/0.006618, allocations: 435.1 kB / 0.5571 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.006668, allocations: 19.92 kB / 0.5571 GB, free: 13.93 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 3.107e-05/0.006699, allocations: 7.938 kB / 0.5571 GB, free: 13.92 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005674/0.007267, allocations: 335.1 kB / 0.5575 GB, free: 13.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.007269, allocations: 0 / 0.5575 GB, free: 13.59 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.007269, allocations: 0 / 0.5575 GB, free: 13.59 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.276e-06/0.007273, allocations: 0 / 0.5575 GB, free: 13.59 MB / 490.7 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.0004735/0.007746, allocations: 337.5 kB / 0.5578 GB, free: 13.23 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.503e-05/0.007781, allocations: 12.75 kB / 0.5578 GB, free: 13.22 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.007823, allocations: 8.844 kB / 0.5578 GB, free: 13.21 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001631/0.007986, allocations: 126.7 kB / 0.5579 GB, free: 13.06 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.008, allocations: 12.36 kB / 0.5579 GB, free: 13.05 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.915e-06/0.008008, allocations: 384 / 0.5579 GB, free: 13.05 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.012e-05/0.008098, allocations: 38.27 kB / 0.558 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.008105, allocations: 192 / 0.558 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.673e-06/0.008112, allocations: 384 / 0.558 GB, free: 13.01 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.008117, allocations: 3.938 kB / 0.558 GB, free: 13 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.25e-05/0.00815, allocations: 19.92 kB / 0.558 GB, free: 12.98 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.008319, allocations: 121.3 kB / 0.5581 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.383e-05/0.008372, allocations: 26.56 kB / 0.5581 GB, free: 12.8 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.284e-05/0.008395, allocations: 8.922 kB / 0.5582 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.008432, allocations: 15.98 kB / 0.5582 GB, free: 12.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.008463, allocations: 30.56 kB / 0.5582 GB, free: 12.73 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.008464, allocations: 0 / 0.5582 GB, free: 12.73 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001612/0.008625, allocations: 65.58 kB / 0.5583 GB, free: 12.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.745e-05/0.008673, allocations: 55.34 kB / 0.5583 GB, free: 12.6 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.008864, allocations: 178.7 kB / 0.5585 GB, free: 12.42 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.008882, allocations: 25.7 kB / 0.5585 GB, free: 12.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.351e-05/0.008955, allocations: 96.12 kB / 0.5586 GB, free: 12.29 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.109e-05/0.008966, allocations: 3.953 kB / 0.5586 GB, free: 12.29 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.009011, allocations: 21.72 kB / 0.5586 GB, free: 12.26 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002014/0.009213, allocations: 327 kB / 0.5589 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.866e-05/0.009281, allocations: 35.98 kB / 0.559 GB, free: 11.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.693e-05/0.009338, allocations: 43.98 kB / 0.559 GB, free: 11.85 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.009451, allocations: 68.77 kB / 0.5591 GB, free: 11.78 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.009453, allocations: 0 / 0.5591 GB, free: 11.78 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001797/0.009633, allocations: 121.6 kB / 0.5592 GB, free: 11.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.009648, allocations: 8 kB / 0.5592 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.009661, allocations: 0 / 0.5592 GB, free: 11.65 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.009676, allocations: 3.938 kB / 0.5592 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.097e-05/0.009687, allocations: 0 / 0.5592 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.009697, allocations: 7.938 kB / 0.5592 GB, free: 11.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.931e-05/0.009726, allocations: 19.95 kB / 0.5592 GB, free: 11.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.009733, allocations: 0 / 0.5592 GB, free: 11.62 MB / 490.7 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.0001545/0.009888, allocations: 121.8 kB / 0.5593 GB, free: 11.49 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.675e-05/0.009905, allocations: 7.953 kB / 0.5594 GB, free: 11.48 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001407/0.01005, allocations: 65.42 kB / 0.5594 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.01005, allocations: 0 / 0.5594 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.01005, allocations: 3.938 kB / 0.5594 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.01006, allocations: 0 / 0.5594 GB, free: 11.41 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.01018, allocations: 121.3 kB / 0.5595 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.01018, allocations: 4.031 kB / 0.5595 GB, free: 11.26 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.394e-06/0.01018, allocations: 4 kB / 0.5595 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01019, allocations: 0 / 0.5595 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.498e-06/0.01019, allocations: 0 / 0.5595 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.01019, allocations: 0 / 0.5595 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.01019, allocations: 0 / 0.5595 GB, free: 11.25 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001122/0.01031, allocations: 84.98 kB / 0.5596 GB, free: 11.15 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.374e-05/0.01032, allocations: 7.953 kB / 0.5596 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.01033, allocations: 3.938 kB / 0.5596 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.229e-05/0.01034, allocations: 0 / 0.5596 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.333e-05/0.01036, allocations: 8.016 kB / 0.5596 GB, free: 11.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-06/0.01036, allocations: 7.938 kB / 0.5596 GB, free: 11.12 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.01047, allocations: 119.2 kB / 0.5598 GB, free: 11.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01047, allocations: 0 / 0.5598 GB, free: 11.01 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003628/0.01084, allocations: 83.8 kB / 0.5598 GB, free: 10.93 MB / 490.7 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.0006616/0.0115, allocations: 264.5 kB / 0.5601 GB, free: 10.69 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.01167, allocations: 89.67 kB / 0.5602 GB, free: 10.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01167, allocations: 0 / 0.5602 GB, free: 10.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.67e-05/0.01169, allocations: 8 kB / 0.5602 GB, free: 10.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001526/0.01184, allocations: 7.984 kB / 0.5602 GB, free: 10.58 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003184/0.01216, allocations: 172.7 kB / 0.5604 GB, free: 10.38 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.938e-05/0.01225, allocations: 83.25 kB / 0.5604 GB, free: 10.28 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.642e-05/0.01226, allocations: 0 / 0.5604 GB, free: 10.28 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.403e-05/0.01229, allocations: 12.62 kB / 0.5605 GB, free: 10.27 MB / 490.7 MB Notification: Performance of SimCode: time 3.5e-07/0.01229, allocations: 0 / 0.5605 GB, free: 10.27 MB / 490.7 MB Notification: Performance of Templates: time 0.005931/0.01822, allocations: 2.114 MB / 0.5625 GB, free: 8.156 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.4005624850979075]