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.000808/0.000808, 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.0007969/0.0007969, 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.8454/0.8454, 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.001369/0.001369, allocations: 229.5 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.6625/0.6625, allocations: 138.4 MB / 455.1 MB, free: 29.93 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_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.223e-06/1.223e-06, allocations: 0 / 0.6475 GB, free: 1.391 MB / 0.5573 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.278e-05, allocations: 5.375 kB / 0.6475 GB, free: 1.387 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.0009468/0.0009696, allocations: 0.5169 MB / 0.648 GB, free: 0.8672 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2535/0.2545, allocations: 1.595 MB / 0.6496 GB, free: 56.18 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.116e-05/0.2545, allocations: 0.5938 kB / 0.6496 GB, free: 56.18 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.2547, allocations: 21.89 kB / 0.6496 GB, free: 56.18 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 2.356e-05/0.2547, allocations: 11.31 kB / 0.6496 GB, free: 56.18 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.0007814/0.2555, allocations: 270.9 kB / 0.6498 GB, free: 56.16 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 6.93e-05/0.2556, allocations: 22.62 kB / 0.6499 GB, free: 56.16 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 3.93e-05/0.2556, allocations: 3.219 kB / 0.6499 GB, free: 56.16 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 4.309e-05/0.2556, allocations: 16.03 kB / 0.6499 GB, free: 56.16 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 3.985e-05/0.2557, allocations: 23 kB / 0.6499 GB, free: 56.15 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.2557, allocations: 0.7812 kB / 0.6499 GB, free: 56.15 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000514/0.2562, allocations: 429.3 kB / 0.6503 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 5.218e-05/0.2563, allocations: 15.39 kB / 0.6503 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 1.96e-05/0.2563, allocations: 13 kB / 0.6503 GB, free: 56.12 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0003633/0.2566, allocations: 337 kB / 0.6507 GB, free: 56.08 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.2567, allocations: 1.062 kB / 0.6507 GB, free: 56.08 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.322e-06/0.2567, allocations: 0.5312 kB / 0.6507 GB, free: 56.08 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 4.669e-06/0.2567, allocations: 0.9062 kB / 0.6507 GB, free: 56.08 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.0002942/0.257, allocations: 338.1 kB / 0.651 GB, free: 55.78 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.257, allocations: 12.16 kB / 0.651 GB, free: 55.78 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.257, allocations: 9.391 kB / 0.651 GB, free: 55.77 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.599e-05/0.2571, allocations: 117 kB / 0.6511 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.225e-06/0.2571, allocations: 2.031 kB / 0.6511 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.358e-06/0.2571, allocations: 2.5 kB / 0.6511 GB, free: 55.64 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.108e-05/0.2572, allocations: 37.69 kB / 0.6512 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.2572, allocations: 1.062 kB / 0.6512 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-06/0.2572, allocations: 384 / 0.6512 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.877e-06/0.2572, allocations: 5.531 kB / 0.6512 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.659e-05/0.2573, allocations: 18.92 kB / 0.6512 GB, free: 55.61 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001025/0.2574, allocations: 129.5 kB / 0.6513 GB, free: 55.48 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 3.415e-05/0.2574, allocations: 32.62 kB / 0.6513 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.575e-05/0.2574, allocations: 15.45 kB / 0.6514 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 3.296e-05/0.2574, allocations: 7.641 kB / 0.6514 GB, free: 55.45 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.201e-05/0.2575, allocations: 32.25 kB / 0.6514 GB, free: 55.41 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=1): time 5.61e-07/0.2575, allocations: 3.938 kB / 0.6514 GB, free: 55.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=1): time 0.0001207/0.2576, allocations: 62.36 kB / 0.6515 GB, free: 55.36 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.97e-05/0.2576, allocations: 63.84 kB / 0.6515 GB, free: 55.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.551e-05/0.2577, allocations: 170 kB / 0.6517 GB, free: 55.2 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 7.664e-06/0.2577, allocations: 27.58 kB / 0.6517 GB, free: 55.17 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/0.2577, allocations: 101.9 kB / 0.6518 GB, free: 55.08 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 8.777e-06/0.2577, allocations: 0 / 0.6518 GB, free: 55.08 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.759e-05/0.2578, allocations: 25.42 kB / 0.6518 GB, free: 55.06 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 3.528e-05/0.2578, allocations: 322 kB / 0.6521 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.769e-05/0.2578, allocations: 39.92 kB / 0.6522 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.187e-05/0.2579, allocations: 38.27 kB / 0.6522 GB, free: 54.75 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.978e-05/0.2579, allocations: 73.97 kB / 0.6523 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2579, allocations: 0 / 0.6523 GB, free: 54.74 MB / 0.5573 GB Notification: Performance of matching and sorting (n=12) (initialization): time 9.432e-05/0.258, allocations: 128.6 kB / 0.6524 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.258, allocations: 5.688 kB / 0.6524 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.211e-05/0.2581, allocations: 3.094 kB / 0.6524 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.2581, allocations: 0 / 0.6524 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-05/0.2581, allocations: 3.109 kB / 0.6524 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.2581, allocations: 3.938 kB / 0.6524 GB, free: 54.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.465e-05/0.2581, allocations: 6.359 kB / 0.6524 GB, free: 54.69 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-06/0.2581, allocations: 2.281 kB / 0.6524 GB, free: 54.69 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: 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 9.543e-05/0.2582, allocations: 126.7 kB / 0.6525 GB, free: 54.58 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-06/0.2582, allocations: 11.17 kB / 0.6526 GB, free: 54.57 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.018e-05/0.2583, allocations: 60.95 kB / 0.6526 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.2583, allocations: 0 / 0.6526 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2583, allocations: 3.938 kB / 0.6526 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.796e-06/0.2583, allocations: 2.094 kB / 0.6526 GB, free: 54.53 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.633e-05/0.2583, allocations: 120.5 kB / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.2583, allocations: 4.859 kB / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-06/0.2583, allocations: 1.219 kB / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.2583, allocations: 5 kB / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.2583, allocations: 0 / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2583, allocations: 2.125 kB / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.91e-07/0.2584, allocations: 0 / 0.6527 GB, free: 54.41 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.156e-05/0.2584, allocations: 85.83 kB / 0.6528 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.134e-06/0.2584, allocations: 6.531 kB / 0.6528 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.456e-06/0.2584, allocations: 0.875 kB / 0.6528 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.941e-06/0.2584, allocations: 1.625 kB / 0.6528 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.2584, allocations: 1.438 kB / 0.6528 GB, free: 54.33 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-06/0.2584, allocations: 5.594 kB / 0.6528 GB, free: 54.32 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 4.864e-05/0.2585, allocations: 122.2 kB / 0.653 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of sort global known variables: time 5e-08/0.2585, allocations: 3.531 kB / 0.653 GB, free: 54.25 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0001999/0.2587, allocations: 88.19 kB / 0.653 GB, free: 54.24 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.0003707/0.259, allocations: 241.1 kB / 0.6533 GB, free: 54.13 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0001173/0.2592, allocations: 95.17 kB / 0.6534 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2592, allocations: 3.938 kB / 0.6534 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 9.719e-06/0.2592, allocations: 13.5 kB / 0.6534 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001072/0.2593, allocations: 2.969 kB / 0.6534 GB, free: 54.1 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002079/0.2595, allocations: 196.1 kB / 0.6536 GB, free: 53.94 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.635e-05/0.2595, allocations: 85.36 kB / 0.6537 GB, free: 53.87 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.376e-05/0.2595, allocations: 11.67 kB / 0.6537 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of SimCode: time 2.5e-07/0.2596, allocations: 0 / 0.6537 GB, free: 53.86 MB / 0.5573 GB Notification: Performance of Templates: time 0.00328/0.2628, allocations: 2.295 MB / 0.6559 GB, free: 53.71 MB / 0.5573 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: 6.19171782489866] Failed to read output from testmodel.py, exit status != 0: 0.2678725104779005 0.274905024 0.016827345 Calling exit ...