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.001304/0.001304, allocations: 106.7 kB / 15.98 MB, free: 6.352 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.001331/0.001331, allocations: 191.2 kB / 16.91 MB, free: 6.195 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.364/1.364, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7583/0.7583, allocations: 115.3 MB / 406.1 MB, free: 6.461 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001344, allocations: 64.09 kB / 493.2 MB, free: 0.6211 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4901/0.4914, allocations: 76.17 MB / 0.556 GB, free: 35.54 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00213/0.4936, allocations: 0.5661 MB / 0.5566 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001962/0.4956, allocations: 1.597 MB / 0.5581 GB, free: 34.08 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.997e-05/0.4957, allocations: 0 / 0.5581 GB, free: 34.08 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001711/0.4958, allocations: 20.91 kB / 0.5581 GB, free: 34.08 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.948e-05/0.4959, allocations: 11.86 kB / 0.5582 GB, free: 34.07 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.001071/0.497, allocations: 225.9 kB / 0.5584 GB, free: 33.99 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.323e-05/0.4971, allocations: 20.8 kB / 0.5584 GB, free: 33.98 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.348e-05/0.4971, allocations: 8.812 kB / 0.5584 GB, free: 33.98 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.868e-05/0.4972, allocations: 16.84 kB / 0.5584 GB, free: 33.97 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.891e-05/0.4972, allocations: 20.84 kB / 0.5584 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.4972, allocations: 5.562 kB / 0.5584 GB, free: 33.96 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005207/0.4978, allocations: 284 kB / 0.5587 GB, free: 33.88 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.346e-05/0.4978, allocations: 18.8 kB / 0.5587 GB, free: 33.87 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.537e-05/0.4979, allocations: 15.69 kB / 0.5587 GB, free: 33.86 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003673/0.4982, allocations: 279.5 kB / 0.559 GB, free: 33.78 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.4983, allocations: 2.438 kB / 0.559 GB, free: 33.78 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4983, allocations: 0 / 0.559 GB, free: 33.78 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.4983, allocations: 0 / 0.559 GB, free: 33.78 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.0003591/0.4986, allocations: 408.6 kB / 0.5594 GB, free: 33.38 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.4987, allocations: 9.375 kB / 0.5594 GB, free: 33.38 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.62e-05/0.4987, allocations: 30.75 kB / 0.5594 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.912e-05/0.4987, allocations: 8.062 kB / 0.5594 GB, free: 33.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.4989, allocations: 185.4 kB / 0.5596 GB, free: 33.13 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.828e-06/0.4989, allocations: 6.25 kB / 0.5596 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.514e-06/0.4989, allocations: 1.531 kB / 0.5596 GB, free: 33.12 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.151e-05/0.499, allocations: 39.75 kB / 0.5597 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.499, allocations: 1.75 kB / 0.5597 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.499, allocations: 1.125 kB / 0.5597 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.4991, allocations: 1.172 kB / 0.5597 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.342e-05/0.4991, allocations: 21.7 kB / 0.5597 GB, free: 33.09 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/0.4992, allocations: 178.7 kB / 0.5599 GB, free: 32.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.475e-05/0.4993, allocations: 28.2 kB / 0.5599 GB, free: 32.86 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.268e-05/0.4993, allocations: 14.77 kB / 0.5599 GB, free: 32.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.288e-05/0.4994, allocations: 4.875 kB / 0.5599 GB, free: 32.85 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.4994, allocations: 38.3 kB / 0.5599 GB, free: 32.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.4994, allocations: 0.6875 kB / 0.5599 GB, free: 32.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001437/0.4995, allocations: 59.3 kB / 0.56 GB, free: 32.77 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.165e-05/0.4996, allocations: 52.81 kB / 0.5601 GB, free: 32.71 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.4997, allocations: 171.5 kB / 0.5602 GB, free: 32.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.949e-06/0.4997, allocations: 26.8 kB / 0.5602 GB, free: 32.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.223e-05/0.4998, allocations: 100.3 kB / 0.5603 GB, free: 32.46 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.043e-05/0.4998, allocations: 9 kB / 0.5603 GB, free: 32.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.592e-05/0.4998, allocations: 25.31 kB / 0.5604 GB, free: 32.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.685e-05/0.4999, allocations: 321.1 kB / 0.5607 GB, free: 32.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.277e-05/0.5, allocations: 40.98 kB / 0.5607 GB, free: 32.11 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.349e-05/0.5, allocations: 40.06 kB / 0.5608 GB, free: 32.11 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.451e-05/0.5001, allocations: 70.31 kB / 0.5608 GB, free: 32.08 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.5001, allocations: 0 / 0.5608 GB, free: 32.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001419/0.5003, allocations: 131.7 kB / 0.5609 GB, free: 32.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.5003, allocations: 3.938 kB / 0.561 GB, free: 32.03 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.5003, allocations: 2.438 kB / 0.561 GB, free: 32.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.5003, allocations: 1.188 kB / 0.561 GB, free: 32.03 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.253e-05/0.5003, allocations: 5.812 kB / 0.561 GB, free: 32.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.5004, allocations: 2.875 kB / 0.561 GB, free: 32.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.201e-05/0.5004, allocations: 9.281 kB / 0.561 GB, free: 32.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.5004, allocations: 3.062 kB / 0.561 GB, free: 32.02 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.0001542/0.5006, allocations: 127.2 kB / 0.5611 GB, free: 31.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.311e-05/0.5006, allocations: 12.66 kB / 0.5611 GB, free: 31.89 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.5007, allocations: 56.02 kB / 0.5612 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.5007, allocations: 2.781 kB / 0.5612 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.5007, allocations: 3.375 kB / 0.5612 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.5007, allocations: 0 / 0.5612 GB, free: 31.86 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.03e-05/0.5008, allocations: 167.2 kB / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.5008, allocations: 0 / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.784e-06/0.5008, allocations: 8.469 kB / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.5008, allocations: 0.5625 kB / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.5008, allocations: 0.9688 kB / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.5008, allocations: 0.9688 kB / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.5008, allocations: 1.062 kB / 0.5613 GB, free: 31.66 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.517e-05/0.5009, allocations: 83.7 kB / 0.5614 GB, free: 31.58 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.191e-05/0.5009, allocations: 86.39 kB / 0.5615 GB, free: 31.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.501, allocations: 2.344 kB / 0.5615 GB, free: 31.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.501, allocations: 0 / 0.5615 GB, free: 31.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.064e-05/0.501, allocations: 2.375 kB / 0.5615 GB, free: 31.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.501, allocations: 4.656 kB / 0.5615 GB, free: 31.48 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.067e-05/0.5011, allocations: 125.3 kB / 0.5616 GB, free: 31.39 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5011, allocations: 4.781 kB / 0.5616 GB, free: 31.39 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003721/0.5015, allocations: 80.22 kB / 0.5617 GB, free: 31.38 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.0006499/0.5021, allocations: 0.7411 MB / 0.5624 GB, free: 30.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.5023, allocations: 101.3 kB / 0.5625 GB, free: 30.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.5023, allocations: 1 kB / 0.5625 GB, free: 30.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.816e-05/0.5023, allocations: 10.09 kB / 0.5625 GB, free: 30.71 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.5025, allocations: 5.984 kB / 0.5625 GB, free: 30.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001195/0.5037, allocations: 1.542 MB / 0.5641 GB, free: 29.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001303/0.5038, allocations: 0.6905 MB / 0.5647 GB, free: 28.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.819e-05/0.5039, allocations: 3.453 kB / 0.5647 GB, free: 28.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.783e-05/0.5039, allocations: 23.31 kB / 0.5648 GB, free: 28.79 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.5039, allocations: 1.406 kB / 0.5648 GB, free: 28.79 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01397/0.5179, allocations: 3.374 MB / 0.568 GB, free: 28.46 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.5181, allocations: 234.7 kB / 0.5683 GB, free: 28.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.311, allocations: 4 kB / 0.5683 GB, free: 28.2 MB / 446.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/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)