Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.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: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001141/0.001141, allocations: 102 kB / 16.27 MB, free: 5.93 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.001104/0.001104, allocations: 187.7 kB / 17.2 MB, free: 5.574 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.152/1.152, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7035/0.7035, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 63.91 kB / 0.4912 GB, free: 7.336 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2558/0.257, allocations: 77.92 MB / 0.5673 GB, free: 32.79 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001313/0.2583, allocations: 0.5049 MB / 0.5678 GB, free: 32.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2598, allocations: 1.605 MB / 0.5693 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.458e-05/0.2598, allocations: 1.969 kB / 0.5693 GB, free: 31.36 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001391/0.2599, allocations: 62.89 kB / 0.5694 GB, free: 31.35 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.124e-05/0.26, allocations: 35.12 kB / 0.5694 GB, free: 31.34 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.0006195/0.2606, allocations: 244 kB / 0.5697 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.866e-05/0.2607, allocations: 30.58 kB / 0.5697 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.206e-05/0.2607, allocations: 3.656 kB / 0.5697 GB, free: 31.25 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.802e-05/0.2607, allocations: 25.41 kB / 0.5697 GB, free: 31.24 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.275e-05/0.2608, allocations: 39.2 kB / 0.5698 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.939e-06/0.2608, allocations: 3.938 kB / 0.5698 GB, free: 31.23 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003725/0.2612, allocations: 287.7 kB / 0.57 GB, free: 31.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.105e-05/0.2612, allocations: 31.12 kB / 0.5701 GB, free: 31.13 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.215e-05/0.2613, allocations: 25.31 kB / 0.5701 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000317/0.2616, allocations: 288.3 kB / 0.5704 GB, free: 31.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.2616, allocations: 1.406 kB / 0.5704 GB, free: 31.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2616, allocations: 0 / 0.5704 GB, free: 31.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.2616, allocations: 0 / 0.5704 GB, free: 31.03 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.0002816/0.2619, allocations: 442 kB / 0.5708 GB, free: 30.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.753e-05/0.2619, allocations: 10.28 kB / 0.5708 GB, free: 30.61 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.585e-05/0.2619, allocations: 31.31 kB / 0.5708 GB, free: 30.57 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.131e-05/0.262, allocations: 8.75 kB / 0.5708 GB, free: 30.56 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.265e-05/0.2621, allocations: 191 kB / 0.571 GB, free: 30.35 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.24e-06/0.2621, allocations: 8.359 kB / 0.571 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.117e-06/0.2621, allocations: 3.5 kB / 0.571 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.229e-05/0.2622, allocations: 41.27 kB / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.851e-06/0.2622, allocations: 0 / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-06/0.2622, allocations: 2.188 kB / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-06/0.2622, allocations: 1.125 kB / 0.5711 GB, free: 30.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.603e-05/0.2622, allocations: 22.94 kB / 0.5711 GB, free: 30.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.2623, allocations: 189.6 kB / 0.5713 GB, free: 30.1 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.686e-05/0.2624, allocations: 29.09 kB / 0.5713 GB, free: 30.07 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.735e-05/0.2624, allocations: 15.45 kB / 0.5713 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.2624, allocations: 7.062 kB / 0.5713 GB, free: 30.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.028e-05/0.2624, allocations: 37.12 kB / 0.5714 GB, free: 30.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.2624, allocations: 0.5 kB / 0.5714 GB, free: 30.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001062/0.2626, allocations: 70.23 kB / 0.5714 GB, free: 29.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.351e-05/0.2626, allocations: 55.34 kB / 0.5715 GB, free: 29.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/0.2627, allocations: 207 kB / 0.5717 GB, free: 29.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.991e-06/0.2627, allocations: 26.27 kB / 0.5717 GB, free: 29.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.2628, allocations: 106.8 kB / 0.5718 GB, free: 29.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.624e-06/0.2628, allocations: 5.531 kB / 0.5718 GB, free: 29.66 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.233e-05/0.2628, allocations: 32.42 kB / 0.5718 GB, free: 29.63 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.731e-05/0.2629, allocations: 323.7 kB / 0.5722 GB, free: 29.32 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.96e-05/0.2629, allocations: 55.31 kB / 0.5722 GB, free: 29.31 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.054e-05/0.263, allocations: 53.91 kB / 0.5723 GB, free: 29.3 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.31e-05/0.263, allocations: 95.7 kB / 0.5723 GB, free: 29.27 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.263, allocations: 0 / 0.5723 GB, free: 29.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001355/0.2632, allocations: 169.5 kB / 0.5725 GB, free: 29.21 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.989e-06/0.2632, allocations: 8.469 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/0.2632, allocations: 4.719 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.357e-06/0.2632, allocations: 0 / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.566e-06/0.2632, allocations: 1.188 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.2633, allocations: 0.6562 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.2633, allocations: 10.84 kB / 0.5725 GB, free: 29.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.2633, allocations: 2.672 kB / 0.5725 GB, free: 29.2 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: 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 8.066e-05/0.2634, allocations: 129.5 kB / 0.5727 GB, free: 29.08 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.214e-05/0.2634, allocations: 16.31 kB / 0.5727 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.792e-05/0.2635, allocations: 67.86 kB / 0.5727 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.2635, allocations: 2.688 kB / 0.5727 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.2635, allocations: 0 / 0.5727 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.533e-06/0.2635, allocations: 0.6562 kB / 0.5727 GB, free: 29.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.498e-05/0.2636, allocations: 183.1 kB / 0.5729 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.2636, allocations: 1.25 kB / 0.5729 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.977e-06/0.2636, allocations: 3.938 kB / 0.5729 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.2636, allocations: 2.094 kB / 0.5729 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.068e-06/0.2636, allocations: 0.5 kB / 0.5729 GB, free: 28.83 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.2636, allocations: 6.594 kB / 0.5729 GB, free: 28.82 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.2636, allocations: 0 / 0.5729 GB, free: 28.82 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.355e-05/0.2637, allocations: 81.91 kB / 0.573 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.861e-05/0.2637, allocations: 93.56 kB / 0.5731 GB, free: 28.65 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.153e-05/0.2637, allocations: 5.719 kB / 0.5731 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.168e-05/0.2637, allocations: 0.875 kB / 0.5731 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.15e-05/0.2637, allocations: 5.703 kB / 0.5731 GB, free: 28.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.2637, allocations: 2.578 kB / 0.5731 GB, free: 28.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.466e-05/0.2638, allocations: 149.7 kB / 0.5733 GB, free: 28.55 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2638, allocations: 0 / 0.5733 GB, free: 28.55 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002647/0.2641, allocations: 89.53 kB / 0.5733 GB, free: 28.54 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.0004551/0.2646, allocations: 0.7461 MB / 0.5741 GB, free: 27.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001286/0.2647, allocations: 123.4 kB / 0.5742 GB, free: 27.85 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2647, allocations: 0.8438 kB / 0.5742 GB, free: 27.85 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.295e-05/0.2647, allocations: 16.12 kB / 0.5742 GB, free: 27.85 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.2648, allocations: 5.719 kB / 0.5742 GB, free: 27.84 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.266, allocations: 1.805 MB / 0.576 GB, free: 26.59 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.872e-05/0.2661, allocations: 0.7046 MB / 0.5767 GB, free: 25.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.419e-05/0.2661, allocations: 6.031 kB / 0.5767 GB, free: 25.89 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.572e-05/0.2661, allocations: 27.91 kB / 0.5767 GB, free: 25.87 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2661, allocations: 0 / 0.5767 GB, free: 25.87 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.834/3.1, allocations: 3.814 MB / 0.5804 GB, free: 24.92 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.2/13.3, allocations: 13.72 kB / 0.5804 GB, free: 24.91 MB / 446.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)