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.001882/0.001882, 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.002388/0.002388, allocations: 161.7 kB / 22.76 MB, free: 1.68 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.47/1.47, allocations: 177.1 MB / 203.1 MB, free: 5.262 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.002545/0.002545, allocations: 238.5 kB / 259.8 MB, free: 12.71 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.094/1.094, allocations: 138.5 MB / 454.7 MB, free: 1.441 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_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.202e-06/1.202e-06, allocations: 0 / 0.5543 GB, free: 0.8867 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.491e-05/2.611e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.8828 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001654/0.00168, allocations: 0.5247 MB / 0.5548 GB, free: 364 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002729/0.004409, allocations: 1.61 MB / 0.5564 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.803e-05/0.004438, allocations: 0 / 0.5564 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001877/0.004625, allocations: 51.92 kB / 0.5564 GB, free: 14.68 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 5.086e-05/0.004676, allocations: 39.77 kB / 0.5565 GB, free: 14.64 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.001006/0.005682, allocations: 271.1 kB / 0.5567 GB, free: 14.37 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.567e-05/0.005768, allocations: 27.91 kB / 0.5567 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.24e-05/0.0058, allocations: 4 kB / 0.5567 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.523e-05/0.005865, allocations: 31.89 kB / 0.5568 GB, free: 14.31 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.846e-05/0.005944, allocations: 39.95 kB / 0.5568 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.328e-05/0.005957, allocations: 0 / 0.5568 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008144/0.006771, allocations: 423.1 kB / 0.5572 GB, free: 13.86 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.168e-05/0.006833, allocations: 35.86 kB / 0.5572 GB, free: 13.82 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 4.039e-05/0.006873, allocations: 11.94 kB / 0.5573 GB, free: 13.81 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005689/0.007442, allocations: 351 kB / 0.5576 GB, free: 13.46 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.007447, allocations: 4 kB / 0.5576 GB, free: 13.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.007447, allocations: 0 / 0.5576 GB, free: 13.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.007451, allocations: 0 / 0.5576 GB, free: 13.46 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.000515/0.007966, allocations: 361.3 kB / 0.5579 GB, free: 13.08 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.008002, allocations: 12.75 kB / 0.558 GB, free: 13.07 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.927e-05/0.008051, allocations: 12.84 kB / 0.558 GB, free: 13.05 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.008221, allocations: 125.6 kB / 0.5581 GB, free: 12.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.008234, allocations: 12.38 kB / 0.5581 GB, free: 12.89 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.025e-05/0.008245, allocations: 4.359 kB / 0.5581 GB, free: 12.89 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.125e-05/0.008336, allocations: 38.2 kB / 0.5581 GB, free: 12.85 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.024e-06/0.008343, allocations: 192 / 0.5581 GB, free: 12.85 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.00835, allocations: 384 / 0.5581 GB, free: 12.85 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.008359, allocations: 3.938 kB / 0.5581 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.524e-05/0.008394, allocations: 19.98 kB / 0.5582 GB, free: 12.82 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.008583, allocations: 137.3 kB / 0.5583 GB, free: 12.66 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.45e-05/0.008647, allocations: 26.56 kB / 0.5583 GB, free: 12.62 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.58e-05/0.008673, allocations: 12.92 kB / 0.5583 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.495e-05/0.008708, allocations: 11.94 kB / 0.5583 GB, free: 12.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.008744, allocations: 38.55 kB / 0.5584 GB, free: 12.55 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.008745, allocations: 0 / 0.5584 GB, free: 12.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001796/0.008924, allocations: 69.59 kB / 0.5584 GB, free: 12.48 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.683e-05/0.008971, allocations: 55.34 kB / 0.5585 GB, free: 12.41 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002467/0.009218, allocations: 218.1 kB / 0.5587 GB, free: 12.19 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.899e-05/0.009237, allocations: 25.7 kB / 0.5587 GB, free: 12.16 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.838e-05/0.009315, allocations: 100.1 kB / 0.5588 GB, free: 12.05 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.651e-05/0.009332, allocations: 7.953 kB / 0.5588 GB, free: 12.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.009381, allocations: 25.7 kB / 0.5589 GB, free: 12.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.009574, allocations: 327 kB / 0.5592 GB, free: 11.69 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.389e-05/0.009658, allocations: 55.98 kB / 0.5592 GB, free: 11.63 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.79e-05/0.009726, allocations: 59.91 kB / 0.5593 GB, free: 11.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.009848, allocations: 97.59 kB / 0.5594 GB, free: 11.48 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.00985, allocations: 0 / 0.5594 GB, free: 11.48 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002206/0.01007, allocations: 157.6 kB / 0.5595 GB, free: 11.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.01008, allocations: 4 kB / 0.5595 GB, free: 11.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/0.0101, allocations: 3.984 kB / 0.5595 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.485e-05/0.01011, allocations: 4 kB / 0.5595 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.14e-05/0.01013, allocations: 0 / 0.5595 GB, free: 11.31 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.01013, allocations: 3.938 kB / 0.5595 GB, free: 11.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.991e-05/0.01016, allocations: 15.89 kB / 0.5596 GB, free: 11.29 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.193e-06/0.01017, allocations: 4 kB / 0.5596 GB, free: 11.29 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: 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.000157/0.01033, allocations: 133.8 kB / 0.5597 GB, free: 11.14 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.153e-05/0.01035, allocations: 11.91 kB / 0.5597 GB, free: 11.13 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001356/0.01049, allocations: 66.17 kB / 0.5598 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.01049, allocations: 3.984 kB / 0.5598 GB, free: 11.06 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.0105, allocations: 7.938 kB / 0.5598 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.0105, allocations: 0 / 0.5598 GB, free: 11.05 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000135/0.01063, allocations: 129.3 kB / 0.5599 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.01064, allocations: 4.031 kB / 0.5599 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.494e-06/0.01064, allocations: 3.984 kB / 0.5599 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.01065, allocations: 0 / 0.5599 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.949e-06/0.01065, allocations: 4 kB / 0.5599 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.01065, allocations: 0 / 0.5599 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.01065, allocations: 0 / 0.5599 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001199/0.01077, allocations: 96.94 kB / 0.56 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.578e-05/0.01079, allocations: 7.953 kB / 0.56 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.0108, allocations: 0 / 0.56 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.01082, allocations: 3.938 kB / 0.56 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.158e-05/0.01083, allocations: 4.031 kB / 0.56 GB, free: 10.75 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.113e-05/0.01084, allocations: 7.922 kB / 0.56 GB, free: 10.75 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001431/0.01098, allocations: 144.4 kB / 0.5602 GB, free: 10.61 MB / 490.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01098, allocations: 0 / 0.5602 GB, free: 10.61 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003664/0.01135, allocations: 87.8 kB / 0.5602 GB, free: 10.52 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.0006408/0.01199, allocations: 248.5 kB / 0.5605 GB, free: 10.3 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001965/0.01218, allocations: 113.7 kB / 0.5606 GB, free: 10.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01219, allocations: 0 / 0.5606 GB, free: 10.18 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.025e-05/0.01221, allocations: 15.94 kB / 0.5606 GB, free: 10.16 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000164/0.01237, allocations: 4 kB / 0.5606 GB, free: 10.16 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.01276, allocations: 217.2 kB / 0.5608 GB, free: 9.922 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.01287, allocations: 96.16 kB / 0.5609 GB, free: 9.809 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.023e-05/0.01289, allocations: 3.984 kB / 0.5609 GB, free: 9.805 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.486e-05/0.01291, allocations: 12.62 kB / 0.5609 GB, free: 9.789 MB / 490.7 MB Notification: Performance of SimCode: time 5.61e-07/0.01291, allocations: 0 / 0.5609 GB, free: 9.789 MB / 490.7 MB Notification: Performance of Templates: time 0.006296/0.01921, allocations: 2.129 MB / 0.563 GB, free: 7.664 MB / 490.7 MB " [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: 5.59740694204811]