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: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.0006885/0.0006886, 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.0007049/0.000705, 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.174/1.174, allocations: 223.3 MB / 240.6 MB, free: 5.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6051/0.6051, allocations: 113.7 MB / 405.4 MB, free: 4.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002641/0.0002641, allocations: 9.188 kB / 493.1 MB, free: 8.582 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1163, allocations: 77.11 MB / 0.5569 GB, free: 11.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0004768/0.1168, allocations: 242.3 kB / 0.5571 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.1184, allocations: 1.543 MB / 0.5586 GB, free: 9.883 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.46e-05/0.1185, allocations: 0 / 0.5586 GB, free: 9.883 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.1186, allocations: 15.97 kB / 0.5586 GB, free: 9.867 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.215e-05/0.1186, allocations: 11.94 kB / 0.5586 GB, free: 9.855 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.1192, allocations: 189.4 kB / 0.5588 GB, free: 9.672 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 3.935e-05/0.1192, allocations: 19.92 kB / 0.5588 GB, free: 9.652 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.3e-05/0.1192, allocations: 4 kB / 0.5588 GB, free: 9.648 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.317e-05/0.1193, allocations: 15.97 kB / 0.5589 GB, free: 9.633 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.165e-05/0.1193, allocations: 15.92 kB / 0.5589 GB, free: 9.617 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.416e-06/0.1193, allocations: 0 / 0.5589 GB, free: 9.617 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003597/0.1197, allocations: 251.6 kB / 0.5591 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.23e-05/0.1197, allocations: 23.91 kB / 0.5591 GB, free: 9.348 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 1.946e-05/0.1198, allocations: 29.64 kB / 0.5592 GB, free: 9.312 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002265/0.12, allocations: 199.6 kB / 0.5594 GB, free: 9.117 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.12, allocations: 0 / 0.5594 GB, free: 9.117 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.12, allocations: 0 / 0.5594 GB, free: 9.117 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.066e-06/0.12, allocations: 3.938 kB / 0.5594 GB, free: 9.113 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.0003108/0.1203, allocations: 395.4 kB / 0.5597 GB, free: 8.68 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.1204, allocations: 8.031 kB / 0.5597 GB, free: 8.672 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.452e-05/0.1204, allocations: 30.56 kB / 0.5598 GB, free: 8.633 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.065e-05/0.1204, allocations: 11.91 kB / 0.5598 GB, free: 8.621 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.1206, allocations: 186.8 kB / 0.56 GB, free: 8.398 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.122e-06/0.1206, allocations: 0 / 0.56 GB, free: 8.398 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-06/0.1206, allocations: 0 / 0.56 GB, free: 8.398 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.336e-05/0.1207, allocations: 41.64 kB / 0.56 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.39e-06/0.1207, allocations: 4 kB / 0.56 GB, free: 8.348 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.859e-06/0.1207, allocations: 0 / 0.56 GB, free: 8.348 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.926e-06/0.1207, allocations: 0 / 0.56 GB, free: 8.348 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.523e-05/0.1207, allocations: 19.94 kB / 0.56 GB, free: 8.328 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000133/0.1209, allocations: 169.7 kB / 0.5602 GB, free: 8.113 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.482e-05/0.1209, allocations: 34.55 kB / 0.5602 GB, free: 8.07 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.185e-05/0.1209, allocations: 8.922 kB / 0.5602 GB, free: 8.059 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.756e-05/0.121, allocations: 8 kB / 0.5602 GB, free: 8.051 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/0.121, allocations: 34.56 kB / 0.5603 GB, free: 8.008 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.121, allocations: 0 / 0.5603 GB, free: 8.008 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001107/0.1211, allocations: 69.47 kB / 0.5603 GB, free: 7.934 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.467e-05/0.1211, allocations: 51.41 kB / 0.5604 GB, free: 7.871 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.1213, allocations: 172.9 kB / 0.5606 GB, free: 7.695 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.077e-05/0.1213, allocations: 29.7 kB / 0.5606 GB, free: 7.66 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.665e-05/0.1213, allocations: 88.14 kB / 0.5607 GB, free: 7.57 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.925e-06/0.1213, allocations: 12.03 kB / 0.5607 GB, free: 7.559 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.1214, allocations: 0 / 0.5607 GB, free: 7.559 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.933e-05/0.1214, allocations: 318.8 kB / 0.561 GB, free: 7.238 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.482e-05/0.1215, allocations: 43.98 kB / 0.561 GB, free: 7.195 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.491e-05/0.1215, allocations: 35.98 kB / 0.5611 GB, free: 7.16 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.625e-05/0.1216, allocations: 47.97 kB / 0.5611 GB, free: 7.113 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1216, allocations: 0 / 0.5611 GB, free: 7.113 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001298/0.1217, allocations: 121.5 kB / 0.5612 GB, free: 6.988 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.788e-06/0.1217, allocations: 7.938 kB / 0.5612 GB, free: 6.98 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.1218, allocations: 4 kB / 0.5612 GB, free: 6.977 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.178e-05/0.1218, allocations: 8.016 kB / 0.5612 GB, free: 6.969 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.048e-05/0.1218, allocations: 3.984 kB / 0.5612 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.1218, allocations: 0 / 0.5612 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.021e-05/0.1218, allocations: 7.906 kB / 0.5612 GB, free: 6.957 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.032e-06/0.1218, allocations: 0 / 0.5612 GB, free: 6.957 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: 9 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],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.000101/0.1219, allocations: 130.4 kB / 0.5614 GB, free: 6.82 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.936e-06/0.122, allocations: 3.906 kB / 0.5614 GB, free: 6.816 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.408e-05/0.122, allocations: 57.56 kB / 0.5614 GB, free: 6.75 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.205e-06/0.1221, allocations: 3.938 kB / 0.5614 GB, free: 6.746 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1221, allocations: 11.89 kB / 0.5614 GB, free: 6.734 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.1221, allocations: 3.984 kB / 0.5615 GB, free: 6.73 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.511e-05/0.1222, allocations: 169.7 kB / 0.5616 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1222, allocations: 0 / 0.5616 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.827e-06/0.1222, allocations: 0 / 0.5616 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.262e-06/0.1222, allocations: 0 / 0.5616 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-06/0.1222, allocations: 3.984 kB / 0.5616 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.1222, allocations: 0 / 0.5616 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1222, allocations: 0 / 0.5616 GB, free: 6.512 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.134e-05/0.1223, allocations: 88.95 kB / 0.5617 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.1223, allocations: 85.02 kB / 0.5618 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.956e-06/0.1223, allocations: 0 / 0.5618 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.075e-05/0.1224, allocations: 0 / 0.5618 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.998e-06/0.1224, allocations: 0 / 0.5618 GB, free: 6.305 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.1224, allocations: 0 / 0.5618 GB, free: 6.305 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.183e-05/0.1225, allocations: 134.8 kB / 0.5619 GB, free: 6.176 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1225, allocations: 4.031 kB / 0.5619 GB, free: 6.172 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002676/0.1227, allocations: 79.98 kB / 0.562 GB, free: 6.094 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.0005811/0.1233, allocations: 0.7415 MB / 0.5627 GB, free: 5.352 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001306/0.1235, allocations: 105.7 kB / 0.5628 GB, free: 5.242 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.1235, allocations: 0 / 0.5628 GB, free: 5.242 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.689e-05/0.1235, allocations: 11.94 kB / 0.5628 GB, free: 5.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.1236, allocations: 1.875 kB / 0.5628 GB, free: 5.23 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007233/0.1243, allocations: 0.6837 MB / 0.5635 GB, free: 4.504 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002109/0.1246, allocations: 0.6965 MB / 0.5642 GB, free: 3.781 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.462e-05/0.1246, allocations: 0 / 0.5642 GB, free: 3.781 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.427e-05/0.1246, allocations: 19.44 kB / 0.5642 GB, free: 3.762 MB / 430.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1246, allocations: 4 kB / 0.5642 GB, free: 3.758 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01181/0.1364, allocations: 3.217 MB / 0.5673 GB, free: 0.6641 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000147/0.1366, allocations: 230.4 kB / 0.5676 GB, free: 432 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.477/1.613, allocations: 0 / 0.5676 GB, free: 432 kB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) Environment - environmentSimulation: