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.00131/0.00131, allocations: 84.05 kB / 19.18 MB, free: 2.523 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.001466/0.001466, allocations: 165.1 kB / 22.46 MB, free: 5.359 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.466/1.466, 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.002503/0.002503, allocations: 229 kB / 259.4 MB, free: 472 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.067/1.067, allocations: 138.4 MB / 454.3 MB, free: 2.012 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_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 5.911e-06/5.911e-06, allocations: 3.984 kB / 0.6467 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.34e-05/2.932e-05, allocations: 5.656 kB / 0.6467 GB, free: 5.066 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001604/0.001633, allocations: 0.5285 MB / 0.6473 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002534/0.004168, allocations: 1.611 MB / 0.6488 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.866e-05/0.004196, allocations: 0 / 0.6488 GB, free: 2.906 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000179/0.004375, allocations: 63.83 kB / 0.6489 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.394e-05/0.004419, allocations: 31.84 kB / 0.6489 GB, free: 2.812 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.0009667/0.005386, allocations: 271 kB / 0.6492 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.889e-05/0.005475, allocations: 35.89 kB / 0.6492 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.783e-05/0.005513, allocations: 4 kB / 0.6492 GB, free: 2.508 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6e-05/0.005573, allocations: 23.91 kB / 0.6492 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.082e-05/0.005644, allocations: 39.94 kB / 0.6493 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.005657, allocations: 4 kB / 0.6493 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000768/0.006425, allocations: 427.2 kB / 0.6497 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.841e-05/0.006483, allocations: 27.86 kB / 0.6497 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.006511, allocations: 11.94 kB / 0.6497 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005527/0.007063, allocations: 347.1 kB / 0.6501 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.007066, allocations: 0 / 0.6501 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of FrontEnd: time 7.72e-07/0.007067, allocations: 0 / 0.6501 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.848e-06/0.007076, allocations: 4 kB / 0.6501 GB, free: 1.641 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.0004997/0.007576, allocations: 361.3 kB / 0.6504 GB, free: 1.258 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.007611, allocations: 9.344 kB / 0.6504 GB, free: 1.25 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.065e-05/0.007641, allocations: 8.891 kB / 0.6504 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.007829, allocations: 134.8 kB / 0.6506 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-06/0.007835, allocations: 4.375 kB / 0.6506 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.094e-05/0.007846, allocations: 384 / 0.6506 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.068e-05/0.007936, allocations: 46.2 kB / 0.6506 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.007944, allocations: 192 / 0.6506 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.00795, allocations: 384 / 0.6506 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.007956, allocations: 3.938 kB / 0.6506 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.291e-05/0.007989, allocations: 19.98 kB / 0.6506 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001728/0.008161, allocations: 137.2 kB / 0.6508 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.391e-05/0.008215, allocations: 30.56 kB / 0.6508 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.224e-05/0.008238, allocations: 12.92 kB / 0.6508 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.685e-05/0.008264, allocations: 8 kB / 0.6508 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.008293, allocations: 38.48 kB / 0.6508 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.092e-06/0.008294, allocations: 4 kB / 0.6509 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001566/0.008451, allocations: 61.64 kB / 0.6509 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.008497, allocations: 55.34 kB / 0.651 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002209/0.008718, allocations: 212 kB / 0.6512 GB, free: 392 kB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.801e-05/0.008736, allocations: 25.7 kB / 0.6512 GB, free: 360 kB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.17e-05/0.008808, allocations: 112.1 kB / 0.6513 GB, free: 244 kB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.143e-05/0.008819, allocations: 4 kB / 0.6513 GB, free: 240 kB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.008866, allocations: 29.83 kB / 0.6513 GB, free: 204 kB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.2459/0.2547, allocations: 326.8 kB / 0.6516 GB, free: 56.59 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.2548, allocations: 48.67 kB / 0.6517 GB, free: 56.59 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.648e-05/0.2549, allocations: 57.45 kB / 0.6517 GB, free: 56.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.255, allocations: 95.19 kB / 0.6518 GB, free: 56.58 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.255, allocations: 0 / 0.6518 GB, free: 56.58 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001749/0.2552, allocations: 161.8 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2552, allocations: 5.25 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/0.2552, allocations: 3.469 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.109e-05/0.2552, allocations: 0.7969 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.664e-05/0.2553, allocations: 1.031 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.73e-06/0.2553, allocations: 6.156 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.448e-05/0.2553, allocations: 12.05 kB / 0.652 GB, free: 56.55 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.2553, allocations: 0 / 0.652 GB, free: 56.55 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: 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.0001309/0.2554, allocations: 133.5 kB / 0.6521 GB, free: 56.44 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.32e-05/0.2554, allocations: 11.55 kB / 0.6522 GB, free: 56.44 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.2556, allocations: 69.67 kB / 0.6522 GB, free: 56.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.2556, allocations: 0 / 0.6522 GB, free: 56.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2556, allocations: 4.312 kB / 0.6522 GB, free: 56.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.2556, allocations: 0.5469 kB / 0.6522 GB, free: 56.4 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.78e-05/0.2556, allocations: 133.3 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.2556, allocations: 2.391 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-06/0.2557, allocations: 2.031 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2557, allocations: 7.344 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.121e-06/0.2557, allocations: 3.203 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2557, allocations: 0.6875 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.2557, allocations: 7.406 kB / 0.6524 GB, free: 56.28 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.739e-05/0.2557, allocations: 88.78 kB / 0.6525 GB, free: 56.21 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.124e-05/0.2557, allocations: 3.953 kB / 0.6525 GB, free: 56.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.433e-05/0.2558, allocations: 4.453 kB / 0.6525 GB, free: 56.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.487e-05/0.2558, allocations: 2.5 kB / 0.6525 GB, free: 56.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.782e-05/0.2558, allocations: 4.688 kB / 0.6525 GB, free: 56.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.2558, allocations: 0 / 0.6525 GB, free: 56.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 8.581e-05/0.2559, allocations: 151.4 kB / 0.6526 GB, free: 56.12 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.2559, allocations: 0 / 0.6526 GB, free: 56.12 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000353/0.2562, allocations: 89.17 kB / 0.6527 GB, free: 56.12 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.000513/0.2567, allocations: 245.8 kB / 0.6529 GB, free: 56.04 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001503/0.2569, allocations: 117.9 kB / 0.6531 GB, free: 56.01 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2569, allocations: 0 / 0.6531 GB, free: 56.01 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.37e-05/0.2569, allocations: 14.86 kB / 0.6531 GB, free: 56.01 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00015/0.2571, allocations: 3.922 kB / 0.6531 GB, free: 56.01 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002725/0.2573, allocations: 214.5 kB / 0.6533 GB, free: 55.88 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.059e-05/0.2574, allocations: 88.48 kB / 0.6534 GB, free: 55.8 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.672e-05/0.2574, allocations: 3.812 kB / 0.6534 GB, free: 55.8 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.456e-05/0.2574, allocations: 9.844 kB / 0.6534 GB, free: 55.8 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.2574, allocations: 0 / 0.6534 GB, free: 55.8 MB / 0.5606 GB Notification: Performance of Templates: time 0.004759/0.2622, allocations: 2.12 MB / 0.6554 GB, free: 55.7 MB / 0.5606 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: 5.7870722115039825] Failed to read output from testmodel.py, exit status != 0: 0.271252553910017 0.280610566 0.27129348000000003 Calling exit ...