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.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.0007624/0.0007624, allocations: 76.55 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007357/0.0007357, allocations: 181.9 kB / 23.22 MB, free: 1.348 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 0.8083/0.8083, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.001336/0.001336, allocations: 239.2 kB / 260.2 MB, free: 13.02 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 0.6806/0.6806, allocations: 138.4 MB / 455.1 MB, free: 29.99 MB / 410.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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 0.6475 GB, free: 1.406 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.6e-05/1.74e-05, allocations: 2.281 kB / 0.6475 GB, free: 1.402 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.0009561/0.0009735, allocations: 0.5315 MB / 0.648 GB, free: 0.8711 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2754/0.2764, allocations: 1.594 MB / 0.6496 GB, free: 56.29 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.412e-05/0.2764, allocations: 0 / 0.6496 GB, free: 56.29 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0002138/0.2766, allocations: 70.41 kB / 0.6496 GB, free: 56.28 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 3.475e-05/0.2767, allocations: 32.33 kB / 0.6497 GB, free: 56.28 MB / 0.5573 GB [/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.0008273/0.2775, allocations: 265 kB / 0.6499 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 8.625e-05/0.2776, allocations: 33.06 kB / 0.6499 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.2776, allocations: 9.844 kB / 0.6499 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.729e-05/0.2777, allocations: 18.48 kB / 0.65 GB, free: 56.25 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 7.008e-05/0.2778, allocations: 44.64 kB / 0.65 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.2778, allocations: 0.5938 kB / 0.65 GB, free: 56.24 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005772/0.2783, allocations: 428.4 kB / 0.6504 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 6.42e-05/0.2784, allocations: 27.81 kB / 0.6504 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 2.277e-05/0.2784, allocations: 9.75 kB / 0.6505 GB, free: 56.21 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003953/0.2788, allocations: 353.1 kB / 0.6508 GB, free: 56.17 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2788, allocations: 0.8438 kB / 0.6508 GB, free: 56.17 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2788, allocations: 0 / 0.6508 GB, free: 56.17 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.2788, allocations: 1 kB / 0.6508 GB, free: 56.17 MB / 0.5573 GB 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.0003216/0.2792, allocations: 357 kB / 0.6511 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.2792, allocations: 12.78 kB / 0.6511 GB, free: 55.86 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.54e-05/0.2792, allocations: 12.72 kB / 0.6512 GB, free: 55.85 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.2793, allocations: 140.6 kB / 0.6513 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.056e-06/0.2794, allocations: 384 / 0.6513 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.235e-06/0.2794, allocations: 1.031 kB / 0.6513 GB, free: 55.7 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.777e-05/0.2795, allocations: 39.95 kB / 0.6513 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.2795, allocations: 192 / 0.6513 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.2795, allocations: 4.844 kB / 0.6513 GB, free: 55.67 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2795, allocations: 3.938 kB / 0.6513 GB, free: 55.66 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.752e-05/0.2795, allocations: 23.39 kB / 0.6514 GB, free: 55.66 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001132/0.2796, allocations: 131.8 kB / 0.6515 GB, free: 55.54 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 3.912e-05/0.2797, allocations: 30.45 kB / 0.6515 GB, free: 55.52 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.821e-05/0.2797, allocations: 14.14 kB / 0.6515 GB, free: 55.51 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.2797, allocations: 7.359 kB / 0.6515 GB, free: 55.51 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.517e-05/0.2797, allocations: 34.09 kB / 0.6516 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.2797, allocations: 0.5 kB / 0.6516 GB, free: 55.47 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.0001355/0.2799, allocations: 70.12 kB / 0.6516 GB, free: 55.43 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.135e-05/0.2799, allocations: 64.81 kB / 0.6517 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001372/0.28, allocations: 216.2 kB / 0.6519 GB, free: 55.25 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.352e-06/0.28, allocations: 25.7 kB / 0.6519 GB, free: 55.22 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.574e-05/0.2801, allocations: 107.7 kB / 0.652 GB, free: 55.13 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 1.094e-05/0.2801, allocations: 4.109 kB / 0.652 GB, free: 55.13 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.2801, allocations: 28.91 kB / 0.6521 GB, free: 55.12 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 4.025e-05/0.2801, allocations: 328.1 kB / 0.6524 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.253e-05/0.2802, allocations: 53.91 kB / 0.6524 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.708e-05/0.2802, allocations: 55.48 kB / 0.6525 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.304e-05/0.2803, allocations: 88.03 kB / 0.6526 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2803, allocations: 3.281 kB / 0.6526 GB, free: 54.8 MB / 0.5573 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001217/0.2804, allocations: 162.9 kB / 0.6527 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2804, allocations: 4.578 kB / 0.6527 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.2805, allocations: 2.75 kB / 0.6527 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.2805, allocations: 1.688 kB / 0.6527 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-05/0.2805, allocations: 0.8906 kB / 0.6527 GB, free: 54.76 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.2805, allocations: 3.938 kB / 0.6527 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.039e-05/0.2805, allocations: 15.25 kB / 0.6527 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.773e-06/0.2805, allocations: 3.875 kB / 0.6528 GB, free: 54.74 MB / 0.5573 GB 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.0001267/0.2806, allocations: 137 kB / 0.6529 GB, free: 54.63 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.362e-06/0.2806, allocations: 7.453 kB / 0.6529 GB, free: 54.62 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.2808, allocations: 67.97 kB / 0.653 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.2808, allocations: 0.7969 kB / 0.653 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.2808, allocations: 7.625 kB / 0.653 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2808, allocations: 0 / 0.653 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.31e-05/0.2808, allocations: 132.4 kB / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.2808, allocations: 1.625 kB / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.032e-06/0.2808, allocations: 5.562 kB / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.2808, allocations: 0 / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.2808, allocations: 1.875 kB / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.2808, allocations: 0 / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.2808, allocations: 1.906 kB / 0.6531 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.98e-05/0.2809, allocations: 90.98 kB / 0.6532 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 1.172e-05/0.2809, allocations: 12.27 kB / 0.6532 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.2809, allocations: 0 / 0.6532 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.568e-06/0.2809, allocations: 1.656 kB / 0.6532 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.214e-05/0.281, allocations: 0.6094 kB / 0.6532 GB, free: 54.38 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.281, allocations: 6.141 kB / 0.6532 GB, free: 54.37 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 7.298e-05/0.281, allocations: 150 kB / 0.6534 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of sort global known variables: time 6e-08/0.281, allocations: 1.875 kB / 0.6534 GB, free: 54.29 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0002635/0.2813, allocations: 89.06 kB / 0.6534 GB, free: 54.28 MB / 0.5573 GB 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.0004172/0.2817, allocations: 240.4 kB / 0.6537 GB, free: 54.18 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001449/0.2819, allocations: 114.5 kB / 0.6538 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2819, allocations: 1.062 kB / 0.6538 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 9.888e-06/0.2819, allocations: 11.72 kB / 0.6538 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.282, allocations: 15.22 kB / 0.6538 GB, free: 54.14 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002834/0.2823, allocations: 241.8 kB / 0.654 GB, free: 53.96 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.573e-05/0.2823, allocations: 89.39 kB / 0.6541 GB, free: 53.89 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.65e-05/0.2823, allocations: 13.97 kB / 0.6541 GB, free: 53.89 MB / 0.5573 GB Notification: Performance of SimCode: time 5.11e-07/0.2823, allocations: 0 / 0.6541 GB, free: 53.89 MB / 0.5573 GB Notification: Performance of Templates: time 0.003726/0.2861, allocations: 2.426 MB / 0.6565 GB, free: 53.72 MB / 0.5573 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.669025429524481] Failed to read output from testmodel.py, exit status != 0: 0.29124267492443323 0.298790398 0.018475032000000002 Calling exit ...