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.001619/0.001619, allocations: 97.2 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 177.7 kB / 16.57 MB, free: 6.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.722/2.722, allocations: 223.2 MB / 240.5 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.134/1.134, allocations: 113.7 MB / 405.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005373/0.0005374, allocations: 8 kB / 493 MB, free: 8.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2513/0.2519, allocations: 77.11 MB / 0.5567 GB, free: 11.69 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001029/0.253, allocations: 242.3 kB / 0.5569 GB, free: 11.46 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004135/0.2571, allocations: 1.539 MB / 0.5584 GB, free: 9.902 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.148e-05/0.2572, allocations: 0 / 0.5584 GB, free: 9.902 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002681/0.2575, allocations: 59.83 kB / 0.5585 GB, free: 9.844 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.098e-05/0.2576, allocations: 27.95 kB / 0.5585 GB, free: 9.816 MB / 430.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.2589, allocations: 183.5 kB / 0.5587 GB, free: 9.637 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000101/0.259, allocations: 31.89 kB / 0.5587 GB, free: 9.605 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.168e-05/0.259, allocations: 4 kB / 0.5587 GB, free: 9.602 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.352e-05/0.2591, allocations: 15.97 kB / 0.5588 GB, free: 9.586 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.221e-05/0.2592, allocations: 35.89 kB / 0.5588 GB, free: 9.551 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.2592, allocations: 0 / 0.5588 GB, free: 9.551 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006498/0.2599, allocations: 219.7 kB / 0.559 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 8.263e-05/0.26, allocations: 31.91 kB / 0.559 GB, free: 9.305 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.82e-05/0.2601, allocations: 29.64 kB / 0.5591 GB, free: 9.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00049/0.2606, allocations: 211.6 kB / 0.5593 GB, free: 9.062 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.2606, allocations: 0 / 0.5593 GB, free: 9.062 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2606, allocations: 0 / 0.5593 GB, free: 9.062 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2606, allocations: 3.938 kB / 0.5593 GB, free: 9.059 MB / 430.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.0008026/0.2614, allocations: 419.1 kB / 0.5597 GB, free: 8.602 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.2615, allocations: 8.031 kB / 0.5597 GB, free: 8.594 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.941e-05/0.2616, allocations: 34.56 kB / 0.5597 GB, free: 8.551 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.391e-05/0.2616, allocations: 7.906 kB / 0.5597 GB, free: 8.543 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002764/0.2619, allocations: 190.8 kB / 0.5599 GB, free: 8.316 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.262, allocations: 4 kB / 0.5599 GB, free: 8.312 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.235e-05/0.262, allocations: 0 / 0.5599 GB, free: 8.312 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001343/0.2621, allocations: 41.64 kB / 0.5599 GB, free: 8.266 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.27e-05/0.2622, allocations: 0 / 0.5599 GB, free: 8.266 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.836e-06/0.2622, allocations: 3.938 kB / 0.5599 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.2622, allocations: 0 / 0.5599 GB, free: 8.262 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.238e-05/0.2623, allocations: 19.98 kB / 0.56 GB, free: 8.242 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000319/0.2626, allocations: 189.5 kB / 0.5601 GB, free: 8.008 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.04e-05/0.2627, allocations: 30.52 kB / 0.5602 GB, free: 7.969 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.094e-05/0.2628, allocations: 8.047 kB / 0.5602 GB, free: 7.961 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/0.2628, allocations: 38.56 kB / 0.5602 GB, free: 7.914 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.653e-06/0.2628, allocations: 0 / 0.5602 GB, free: 7.914 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002057/0.263, allocations: 65.55 kB / 0.5603 GB, free: 7.844 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.041e-05/0.2631, allocations: 51.41 kB / 0.5603 GB, free: 7.781 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002221/0.2633, allocations: 207.8 kB / 0.5605 GB, free: 7.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.544e-05/0.2634, allocations: 29.83 kB / 0.5606 GB, free: 7.535 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.239e-05/0.2634, allocations: 108 kB / 0.5607 GB, free: 7.426 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.068e-05/0.2634, allocations: 0 / 0.5607 GB, free: 7.426 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.2635, allocations: 0 / 0.5607 GB, free: 7.426 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.2636, allocations: 326.8 kB / 0.561 GB, free: 7.098 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.829e-05/0.2637, allocations: 59.91 kB / 0.561 GB, free: 7.039 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.816e-05/0.2637, allocations: 51.98 kB / 0.5611 GB, free: 6.988 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.955e-05/0.2638, allocations: 63.91 kB / 0.5611 GB, free: 6.926 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.2638, allocations: 0 / 0.5611 GB, free: 6.926 MB / 430.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002087/0.264, allocations: 161.5 kB / 0.5613 GB, free: 6.762 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.2641, allocations: 6.344 kB / 0.5613 GB, free: 6.758 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.2641, allocations: 8 kB / 0.5613 GB, free: 6.75 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.2641, allocations: 0 / 0.5613 GB, free: 6.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.092e-05/0.2641, allocations: 7.938 kB / 0.5613 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.2642, allocations: 0 / 0.5613 GB, free: 6.742 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.008e-05/0.2642, allocations: 11.89 kB / 0.5613 GB, free: 6.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.388e-06/0.2642, allocations: 0 / 0.5613 GB, free: 6.73 MB / 430.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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001742/0.2644, allocations: 130.8 kB / 0.5614 GB, free: 6.594 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.73e-05/0.2644, allocations: 15.81 kB / 0.5615 GB, free: 6.578 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001316/0.2646, allocations: 66.17 kB / 0.5615 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2646, allocations: 0 / 0.5615 GB, free: 6.508 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2646, allocations: 7.891 kB / 0.5615 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.2646, allocations: 0 / 0.5615 GB, free: 6.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.2647, allocations: 181.7 kB / 0.5617 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2648, allocations: 0 / 0.5617 GB, free: 6.273 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.232e-06/0.2648, allocations: 7.922 kB / 0.5617 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2648, allocations: 0 / 0.5617 GB, free: 6.266 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-06/0.2648, allocations: 4.031 kB / 0.5617 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2648, allocations: 4 kB / 0.5617 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2648, allocations: 0 / 0.5617 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001074/0.2649, allocations: 88.83 kB / 0.5618 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.902e-05/0.265, allocations: 85.02 kB / 0.5619 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.265, allocations: 0 / 0.5619 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.394e-05/0.265, allocations: 0 / 0.5619 GB, free: 6.051 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.057e-05/0.265, allocations: 12.02 kB / 0.5619 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-06/0.265, allocations: 0 / 0.5619 GB, free: 6.039 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.2652, allocations: 145.9 kB / 0.562 GB, free: 5.898 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2652, allocations: 0 / 0.562 GB, free: 5.898 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003426/0.2655, allocations: 91.94 kB / 0.5621 GB, free: 5.809 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008755/0.2664, allocations: 0.7461 MB / 0.5629 GB, free: 5.059 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.2667, allocations: 125.6 kB / 0.563 GB, free: 4.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.2667, allocations: 4 kB / 0.563 GB, free: 4.926 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.604e-05/0.2667, allocations: 11.98 kB / 0.563 GB, free: 4.914 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001083/0.2668, allocations: 12.25 kB / 0.563 GB, free: 4.902 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007277/0.2675, allocations: 462 kB / 0.5634 GB, free: 4.402 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.2679, allocations: 0.7082 MB / 0.5641 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.898e-05/0.2679, allocations: 0 / 0.5641 GB, free: 3.668 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.851e-05/0.2679, allocations: 27.42 kB / 0.5642 GB, free: 3.641 MB / 430.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2679, allocations: 3.938 kB / 0.5642 GB, free: 3.637 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1145/0.3825, allocations: 3.453 MB / 0.5675 GB, free: 324 kB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003765/0.3829, allocations: 216.6 kB / 0.5677 GB, free: 76 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.209/3.592, allocations: 4 kB / 0.5677 GB, free: 72 kB / 430.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/linux/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) Environment - environmentSimulation: