Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 102.7 kB / 16.27 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 189.8 kB / 17.2 MB, free: 5.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7529/0.7529, allocations: 122.9 MB / 413.9 MB, free: 15.76 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002104/0.002104, allocations: 63.84 kB / 0.4911 GB, free: 7.391 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.491/0.4932, allocations: 77.93 MB / 0.5672 GB, free: 32.59 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00194/0.4952, allocations: 0.5127 MB / 0.5677 GB, free: 32.29 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.4975, allocations: 1.593 MB / 0.5693 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.09e-05/0.4975, allocations: 1.469 kB / 0.5693 GB, free: 31.16 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001685/0.4977, allocations: 25.3 kB / 0.5693 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.93e-05/0.4977, allocations: 16.58 kB / 0.5693 GB, free: 31.14 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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/IBPSA 4.0.0-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.0009588/0.4987, allocations: 243.9 kB / 0.5695 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.545e-05/0.4988, allocations: 24.39 kB / 0.5696 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.766e-05/0.4988, allocations: 3.531 kB / 0.5696 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.424e-05/0.4989, allocations: 16.36 kB / 0.5696 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.214e-05/0.4989, allocations: 9.562 kB / 0.5696 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.366e-05/0.4989, allocations: 0.9688 kB / 0.5696 GB, free: 31.04 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005502/0.4995, allocations: 290 kB / 0.5699 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.371e-05/0.4996, allocations: 21.5 kB / 0.5699 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.176e-05/0.4996, allocations: 23.72 kB / 0.5699 GB, free: 30.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004493/0.5001, allocations: 275.8 kB / 0.5702 GB, free: 30.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.5001, allocations: 0.9062 kB / 0.5702 GB, free: 30.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5001, allocations: 1.156 kB / 0.5702 GB, free: 30.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.5001, allocations: 1 kB / 0.5702 GB, free: 30.84 MB / 446.1 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.0004344/0.5005, allocations: 403.5 kB / 0.5706 GB, free: 30.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.5006, allocations: 10.06 kB / 0.5706 GB, free: 30.45 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.863e-05/0.5006, allocations: 9.094 kB / 0.5706 GB, free: 30.44 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001614/0.5008, allocations: 185.1 kB / 0.5708 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.753e-06/0.5008, allocations: 384 / 0.5708 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.526e-05/0.5008, allocations: 2.141 kB / 0.5708 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001223/0.501, allocations: 46.19 kB / 0.5708 GB, free: 30.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.501, allocations: 3.938 kB / 0.5708 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/0.501, allocations: 0 / 0.5708 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.501, allocations: 1.125 kB / 0.5708 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.905e-05/0.501, allocations: 16.91 kB / 0.5708 GB, free: 30.19 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001708/0.5012, allocations: 177.8 kB / 0.571 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.967e-05/0.5013, allocations: 23.88 kB / 0.571 GB, free: 29.96 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.45e-05/0.5013, allocations: 18.2 kB / 0.571 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.053e-05/0.5013, allocations: 14.25 kB / 0.571 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.702e-05/0.5014, allocations: 37.66 kB / 0.5711 GB, free: 29.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.5014, allocations: 0 / 0.5711 GB, free: 29.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001716/0.5016, allocations: 61.83 kB / 0.5711 GB, free: 29.87 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.298e-05/0.5016, allocations: 51.41 kB / 0.5712 GB, free: 29.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001614/0.5018, allocations: 163.9 kB / 0.5713 GB, free: 29.69 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.5018, allocations: 26.89 kB / 0.5714 GB, free: 29.66 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.249e-05/0.5018, allocations: 97.7 kB / 0.5715 GB, free: 29.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.362e-05/0.5018, allocations: 2.438 kB / 0.5715 GB, free: 29.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.071e-05/0.5019, allocations: 25.47 kB / 0.5715 GB, free: 29.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.479e-05/0.502, allocations: 322.2 kB / 0.5718 GB, free: 29.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.648e-05/0.502, allocations: 49.69 kB / 0.5718 GB, free: 29.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.478e-05/0.5021, allocations: 41.48 kB / 0.5719 GB, free: 29.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001034/0.5022, allocations: 69.23 kB / 0.572 GB, free: 29.19 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.5022, allocations: 0 / 0.572 GB, free: 29.19 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001682/0.5024, allocations: 124 kB / 0.5721 GB, free: 29.14 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.5024, allocations: 10.69 kB / 0.5721 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.5024, allocations: 1.594 kB / 0.5721 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.5025, allocations: 0.875 kB / 0.5721 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.467e-05/0.5025, allocations: 0.75 kB / 0.5721 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.5025, allocations: 2.625 kB / 0.5721 GB, free: 29.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.322e-05/0.5025, allocations: 9.438 kB / 0.5721 GB, free: 29.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-06/0.5025, allocations: 2.859 kB / 0.5721 GB, free: 29.13 MB / 446.1 MB 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.0001261/0.5027, allocations: 128.9 kB / 0.5722 GB, free: 29.01 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.304e-05/0.5027, allocations: 10.66 kB / 0.5722 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001069/0.5028, allocations: 58.73 kB / 0.5723 GB, free: 28.96 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.5028, allocations: 1.656 kB / 0.5723 GB, free: 28.96 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5028, allocations: 1.281 kB / 0.5723 GB, free: 28.96 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.5028, allocations: 0 / 0.5723 GB, free: 28.96 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.643e-05/0.5029, allocations: 171 kB / 0.5725 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.5029, allocations: 0 / 0.5725 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-06/0.5029, allocations: 1.969 kB / 0.5725 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.5029, allocations: 5.219 kB / 0.5725 GB, free: 28.77 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.5029, allocations: 4.516 kB / 0.5725 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.5029, allocations: 0 / 0.5725 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.503, allocations: 3.75 kB / 0.5725 GB, free: 28.76 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.37e-05/0.503, allocations: 82.28 kB / 0.5725 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.234e-05/0.5031, allocations: 86.92 kB / 0.5726 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.5031, allocations: 1.281 kB / 0.5726 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.138e-05/0.5031, allocations: 1.625 kB / 0.5726 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.707e-05/0.5031, allocations: 2.578 kB / 0.5726 GB, free: 28.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.5031, allocations: 2.125 kB / 0.5726 GB, free: 28.59 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.739e-05/0.5032, allocations: 122.3 kB / 0.5728 GB, free: 28.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5032, allocations: 0 / 0.5728 GB, free: 28.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004232/0.5037, allocations: 88.59 kB / 0.5728 GB, free: 28.49 MB / 446.1 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.000496/0.5042, allocations: 224.4 kB / 0.5731 GB, free: 28.37 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001976/0.5044, allocations: 103.2 kB / 0.5732 GB, free: 28.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5044, allocations: 6.125 kB / 0.5732 GB, free: 28.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.66e-05/0.5044, allocations: 10.41 kB / 0.5732 GB, free: 28.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.5046, allocations: 5.109 kB / 0.5732 GB, free: 28.32 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000314/0.5049, allocations: 163.8 kB / 0.5733 GB, free: 28.19 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.5051, allocations: 0.6926 MB / 0.574 GB, free: 27.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.14e-05/0.5051, allocations: 2.141 kB / 0.574 GB, free: 27.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.488e-05/0.5051, allocations: 9.5 kB / 0.574 GB, free: 27.49 MB / 446.1 MB Notification: Performance of SimCode: time 2.41e-07/0.5051, allocations: 0 / 0.574 GB, free: 27.49 MB / 446.1 MB Notification: Performance of Templates: time 0.006419/0.5115, allocations: 2.091 MB / 0.5761 GB, free: 27.36 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)