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.001313/0.001313, allocations: 79.59 kB / 19.18 MB, free: 2.516 MB / 14.72 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.001431/0.001431, allocations: 165.4 kB / 22.46 MB, free: 5.375 MB / 14.72 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.441/1.441, allocations: 177.1 MB / 202.8 MB, free: 9.164 MB / 190.1 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.002491/0.002491, allocations: 230.6 kB / 259.4 MB, free: 464 kB / 238.1 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.137/1.137, allocations: 138.4 MB / 454.3 MB, free: 2.016 MB / 366.1 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.433e-06/1.433e-06, allocations: 0 / 0.6467 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.281e-05/2.425e-05, allocations: 2.281 kB / 0.6467 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001447/0.001472, allocations: 0.5285 MB / 0.6473 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002489/0.003961, allocations: 1.615 MB / 0.6488 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.923e-05/0.00399, allocations: 0 / 0.6488 GB, free: 2.914 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001389/0.004129, allocations: 19.91 kB / 0.6489 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.576e-05/0.004155, allocations: 11.92 kB / 0.6489 GB, free: 2.883 MB / 0.5606 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.0009524/0.005107, allocations: 263.1 kB / 0.6491 GB, free: 2.625 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.124e-05/0.005179, allocations: 27.92 kB / 0.6492 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.287e-05/0.005211, allocations: 0 / 0.6492 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.578e-05/0.005257, allocations: 15.92 kB / 0.6492 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.217e-05/0.005299, allocations: 15.97 kB / 0.6492 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.005315, allocations: 7.922 kB / 0.6492 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007201/0.006035, allocations: 427.1 kB / 0.6496 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.006089, allocations: 19.94 kB / 0.6496 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.744e-05/0.006116, allocations: 11.92 kB / 0.6496 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000488/0.006605, allocations: 327.3 kB / 0.6499 GB, free: 1.789 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.006607, allocations: 4 kB / 0.6499 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.022e-06/0.006609, allocations: 0 / 0.6499 GB, free: 1.785 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.006613, allocations: 0 / 0.6499 GB, free: 1.785 MB / 0.5606 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.0004615/0.007074, allocations: 337.5 kB / 0.6503 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.007112, allocations: 9.344 kB / 0.6503 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.219e-05/0.007144, allocations: 12.83 kB / 0.6503 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001544/0.007298, allocations: 121.7 kB / 0.6504 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.179e-05/0.00731, allocations: 384 / 0.6504 GB, free: 1.262 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.007321, allocations: 4.375 kB / 0.6504 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.562e-05/0.007417, allocations: 30.27 kB / 0.6504 GB, free: 1.223 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.007425, allocations: 4.188 kB / 0.6504 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.953e-06/0.007432, allocations: 4.375 kB / 0.6504 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.728e-06/0.007442, allocations: 3.938 kB / 0.6504 GB, free: 1.211 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.985e-05/0.007471, allocations: 15.98 kB / 0.6505 GB, free: 1.195 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001649/0.007636, allocations: 125.3 kB / 0.6506 GB, free: 1.043 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.664e-05/0.007693, allocations: 34.39 kB / 0.6506 GB, free: 1 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.371e-05/0.007717, allocations: 12.92 kB / 0.6506 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.808e-05/0.007755, allocations: 11.97 kB / 0.6506 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.133e-05/0.007786, allocations: 34.56 kB / 0.6507 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.007787, allocations: 0 / 0.6507 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001592/0.007946, allocations: 65.64 kB / 0.6507 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/0.007986, allocations: 55.34 kB / 0.6508 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.008162, allocations: 175.9 kB / 0.651 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.008178, allocations: 29.7 kB / 0.651 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.363e-05/0.008242, allocations: 104.1 kB / 0.6511 GB, free: 484 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.536e-06/0.008251, allocations: 0 / 0.6511 GB, free: 484 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.008291, allocations: 21.72 kB / 0.6511 GB, free: 456 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.00844, allocations: 322.8 kB / 0.6514 GB, free: 124 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.449e-05/0.008495, allocations: 35.98 kB / 0.6514 GB, free: 88 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.808e-05/0.008543, allocations: 43.97 kB / 0.6515 GB, free: 44 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2589/0.2674, allocations: 63.3 kB / 0.6515 GB, free: 56.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.2674, allocations: 0.6875 kB / 0.6515 GB, free: 56.71 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001855/0.2676, allocations: 125.4 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.2676, allocations: 3.688 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/0.2677, allocations: 7.922 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2677, allocations: 0.75 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.558e-05/0.2677, allocations: 0 / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.2677, allocations: 4.688 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.587e-05/0.2677, allocations: 14.86 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.064e-05/0.2677, allocations: 3.312 kB / 0.6517 GB, free: 56.68 MB / 0.5606 GB 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.0001334/0.2679, allocations: 126.8 kB / 0.6518 GB, free: 56.57 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.213e-05/0.2679, allocations: 9.109 kB / 0.6518 GB, free: 56.57 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.268, allocations: 61.03 kB / 0.6519 GB, free: 56.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.055e-06/0.268, allocations: 0 / 0.6519 GB, free: 56.54 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.268, allocations: 1.312 kB / 0.6519 GB, free: 56.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.268, allocations: 3.312 kB / 0.6519 GB, free: 56.54 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.863e-05/0.2681, allocations: 124.2 kB / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.2681, allocations: 0 / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.611e-06/0.2681, allocations: 0.7969 kB / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2681, allocations: 0 / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.2681, allocations: 3.344 kB / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2681, allocations: 0.7031 kB / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2681, allocations: 2.719 kB / 0.652 GB, free: 56.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.235e-05/0.2682, allocations: 79.28 kB / 0.6521 GB, free: 56.35 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.102e-05/0.2682, allocations: 9.359 kB / 0.6521 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.2682, allocations: 1.062 kB / 0.6521 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.278e-05/0.2682, allocations: 3.281 kB / 0.6521 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.182e-05/0.2682, allocations: 3.562 kB / 0.6521 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.2682, allocations: 0.75 kB / 0.6521 GB, free: 56.34 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 6.595e-05/0.2683, allocations: 125.3 kB / 0.6522 GB, free: 56.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.1e-08/0.2683, allocations: 1.969 kB / 0.6522 GB, free: 56.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003705/0.2686, allocations: 87.47 kB / 0.6523 GB, free: 56.27 MB / 0.5606 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.0005126/0.2692, allocations: 243.6 kB / 0.6525 GB, free: 56.18 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001345/0.2693, allocations: 93.33 kB / 0.6526 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2693, allocations: 0 / 0.6526 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.335e-05/0.2693, allocations: 12.41 kB / 0.6526 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.2695, allocations: 10.22 kB / 0.6527 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002316/0.2697, allocations: 164.8 kB / 0.6528 GB, free: 56.03 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.631e-05/0.2697, allocations: 78.3 kB / 0.6529 GB, free: 55.96 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.659e-05/0.2698, allocations: 4.625 kB / 0.6529 GB, free: 55.96 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.497e-05/0.2698, allocations: 8.5 kB / 0.6529 GB, free: 55.96 MB / 0.5606 GB Notification: Performance of SimCode: time 3.3e-07/0.2698, allocations: 1.406 kB / 0.6529 GB, free: 55.96 MB / 0.5606 GB Notification: Performance of Templates: time 0.0047/0.2745, allocations: 2.112 MB / 0.655 GB, free: 55.86 MB / 0.5606 GB " [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.986472047865391] Failed to read output from testmodel.py, exit status != 0: 0.281964972615242 0.29113291099999994 0.28230417199999996 Calling exit ...