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.0006948/0.0006948, allocations: 92.94 kB / 15.7 MB, free: 472 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.0007588/0.000759, allocations: 170.1 kB / 16.58 MB, free: 5.605 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.176/1.176, allocations: 223.3 MB / 240.6 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6104/0.6104, allocations: 113.7 MB / 405.4 MB, free: 4.578 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002473/0.0002473, allocations: 8 kB / 493.1 MB, free: 8.535 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1136, allocations: 77.12 MB / 0.5569 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0004808/0.1141, allocations: 234.3 kB / 0.5571 GB, free: 11.4 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001684/0.1158, allocations: 1.539 MB / 0.5586 GB, free: 9.844 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.305e-05/0.1158, allocations: 0 / 0.5586 GB, free: 9.844 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.116, allocations: 55.91 kB / 0.5587 GB, free: 9.789 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.966e-05/0.116, allocations: 35.89 kB / 0.5587 GB, free: 9.754 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.0005449/0.1166, allocations: 187.6 kB / 0.5589 GB, free: 9.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.176e-05/0.1166, allocations: 27.89 kB / 0.5589 GB, free: 9.543 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.295e-05/0.1167, allocations: 7.984 kB / 0.5589 GB, free: 9.535 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.666e-05/0.1167, allocations: 15.98 kB / 0.5589 GB, free: 9.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.798e-05/0.1167, allocations: 35.89 kB / 0.559 GB, free: 9.484 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.185e-05/0.1168, allocations: 4 kB / 0.559 GB, free: 9.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000357/0.1171, allocations: 255.6 kB / 0.5592 GB, free: 9.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.403e-05/0.1172, allocations: 27.92 kB / 0.5592 GB, free: 9.203 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.023e-05/0.1172, allocations: 33.64 kB / 0.5593 GB, free: 9.164 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002302/0.1174, allocations: 203.6 kB / 0.5595 GB, free: 8.965 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.1174, allocations: 0 / 0.5595 GB, free: 8.965 MB / 430.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1175, allocations: 0 / 0.5595 GB, free: 8.965 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.896e-06/0.1175, allocations: 0 / 0.5595 GB, free: 8.965 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.0003268/0.1178, allocations: 427 kB / 0.5599 GB, free: 8.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.1178, allocations: 8.031 kB / 0.5599 GB, free: 8.492 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.273e-05/0.1179, allocations: 42.5 kB / 0.5599 GB, free: 8.441 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.122e-05/0.1179, allocations: 11.89 kB / 0.5599 GB, free: 8.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.118, allocations: 174.9 kB / 0.5601 GB, free: 8.219 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.102e-06/0.118, allocations: 3.938 kB / 0.5601 GB, free: 8.215 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.118, allocations: 0 / 0.5601 GB, free: 8.215 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.292e-05/0.1181, allocations: 45.64 kB / 0.5601 GB, free: 8.164 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-06/0.1181, allocations: 0 / 0.5601 GB, free: 8.164 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.548e-06/0.1181, allocations: 0 / 0.5601 GB, free: 8.164 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.1181, allocations: 3.984 kB / 0.5601 GB, free: 8.16 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.249e-05/0.1182, allocations: 19.98 kB / 0.5602 GB, free: 8.141 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.1183, allocations: 189.5 kB / 0.5603 GB, free: 7.906 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.732e-05/0.1184, allocations: 30.5 kB / 0.5604 GB, free: 7.867 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.808e-05/0.1184, allocations: 16.92 kB / 0.5604 GB, free: 7.848 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.806e-05/0.1184, allocations: 15.97 kB / 0.5604 GB, free: 7.832 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.966e-05/0.1185, allocations: 30.56 kB / 0.5604 GB, free: 7.793 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.1185, allocations: 3.938 kB / 0.5604 GB, free: 7.789 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001158/0.1186, allocations: 69.55 kB / 0.5605 GB, free: 7.715 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.1186, allocations: 51.41 kB / 0.5606 GB, free: 7.652 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.1188, allocations: 207.8 kB / 0.5608 GB, free: 7.441 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.259e-05/0.1188, allocations: 29.7 kB / 0.5608 GB, free: 7.406 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.563e-05/0.1189, allocations: 104 kB / 0.5609 GB, free: 7.301 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.765e-06/0.1189, allocations: 0 / 0.5609 GB, free: 7.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.354e-06/0.1189, allocations: 3.938 kB / 0.5609 GB, free: 7.297 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.119, allocations: 326.8 kB / 0.5612 GB, free: 6.969 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.404e-05/0.1191, allocations: 60.09 kB / 0.5613 GB, free: 6.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.534e-05/0.1191, allocations: 53.53 kB / 0.5613 GB, free: 6.859 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.554e-05/0.1192, allocations: 59.97 kB / 0.5614 GB, free: 6.801 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1192, allocations: 0 / 0.5614 GB, free: 6.801 MB / 430.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001537/0.1193, allocations: 159 kB / 0.5615 GB, free: 6.641 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.1194, allocations: 9.875 kB / 0.5615 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.1194, allocations: 0 / 0.5615 GB, free: 6.633 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.195e-05/0.1194, allocations: 3.953 kB / 0.5615 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.528e-06/0.1194, allocations: 0 / 0.5615 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.606e-06/0.1194, allocations: 0 / 0.5615 GB, free: 6.629 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.345e-05/0.1194, allocations: 19.89 kB / 0.5615 GB, free: 6.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.1194, allocations: 0 / 0.5615 GB, free: 6.609 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.0001111/0.1196, allocations: 134.5 kB / 0.5617 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.1196, allocations: 11.75 kB / 0.5617 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.559e-05/0.1197, allocations: 66.23 kB / 0.5618 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.1197, allocations: 0 / 0.5618 GB, free: 6.387 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1197, allocations: 7.891 kB / 0.5618 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1197, allocations: 8.031 kB / 0.5618 GB, free: 6.371 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.1198, allocations: 173.7 kB / 0.5619 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1198, allocations: 4 kB / 0.5619 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.029e-06/0.1198, allocations: 4 kB / 0.5619 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1198, allocations: 0 / 0.5619 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.242e-06/0.1198, allocations: 3.984 kB / 0.5619 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1198, allocations: 0 / 0.5619 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1198, allocations: 0 / 0.5619 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.884e-05/0.1199, allocations: 96.83 kB / 0.562 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.275e-05/0.12, allocations: 85.02 kB / 0.5621 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.01e-05/0.12, allocations: 0 / 0.5621 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.178e-05/0.12, allocations: 0 / 0.5621 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.059e-05/0.12, allocations: 0 / 0.5621 GB, free: 5.926 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.013e-06/0.12, allocations: 0 / 0.5621 GB, free: 5.926 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001082/0.1201, allocations: 157.8 kB / 0.5623 GB, free: 5.773 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1201, allocations: 0 / 0.5623 GB, free: 5.773 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002628/0.1204, allocations: 79.98 kB / 0.5623 GB, free: 5.695 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.000597/0.121, allocations: 0.7569 MB / 0.5631 GB, free: 4.934 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.1212, allocations: 133.7 kB / 0.5632 GB, free: 4.797 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.1212, allocations: 0 / 0.5632 GB, free: 4.797 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.424e-05/0.1212, allocations: 11.98 kB / 0.5632 GB, free: 4.785 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.1213, allocations: 4.125 kB / 0.5632 GB, free: 4.781 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009077/0.1223, allocations: 0.903 MB / 0.5641 GB, free: 3.832 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.1225, allocations: 0.7043 MB / 0.5648 GB, free: 3.102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.505e-05/0.1225, allocations: 4 kB / 0.5648 GB, free: 3.098 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.105e-05/0.1225, allocations: 27.42 kB / 0.5648 GB, free: 3.07 MB / 430.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1226, allocations: 0 / 0.5648 GB, free: 3.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01224/0.1348, allocations: 3.589 MB / 0.5683 GB, free: 15.61 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001831/0.135, allocations: 222.5 kB / 0.5685 GB, free: 15.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.512/1.647, allocations: 3.25 kB / 0.5685 GB, free: 15.38 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/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: