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.004606/0.004606, allocations: 100.8 kB / 15.87 MB, free: 6.32 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.0009961/0.0009961, allocations: 197.5 kB / 16.79 MB, free: 6.246 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.196/1.196, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6251/0.6251, allocations: 115.4 MB / 406 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 69.31 kB / 493 MB, free: 6.734 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1197, allocations: 76.18 MB / 0.5558 GB, free: 10.75 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001496/0.1212, allocations: 0.5691 MB / 0.5564 GB, free: 10.18 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1232, allocations: 1.644 MB / 0.558 GB, free: 8.52 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.321e-05/0.1232, allocations: 0 / 0.558 GB, free: 8.52 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1234, allocations: 59.84 kB / 0.5581 GB, free: 8.461 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.357e-05/0.1235, allocations: 31.94 kB / 0.5581 GB, free: 8.43 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.0006108/0.1241, allocations: 202.6 kB / 0.5583 GB, free: 8.234 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.773e-05/0.1241, allocations: 31.91 kB / 0.5583 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.935e-05/0.1242, allocations: 0 / 0.5583 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.202e-05/0.1242, allocations: 27.89 kB / 0.5583 GB, free: 8.176 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.385e-05/0.1243, allocations: 35.91 kB / 0.5584 GB, free: 8.141 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.16e-05/0.1243, allocations: 0 / 0.5584 GB, free: 8.141 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.1247, allocations: 275.6 kB / 0.5586 GB, free: 7.871 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.826e-05/0.1248, allocations: 27.92 kB / 0.5587 GB, free: 7.844 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.988e-05/0.1248, allocations: 27.73 kB / 0.5587 GB, free: 7.816 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003453/0.1252, allocations: 291.3 kB / 0.559 GB, free: 7.531 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1252, allocations: 3.938 kB / 0.559 GB, free: 7.527 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.21e-07/0.1252, allocations: 0 / 0.559 GB, free: 7.527 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.206e-06/0.1252, allocations: 0 / 0.559 GB, free: 7.527 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.0004026/0.1256, allocations: 431.2 kB / 0.5594 GB, free: 7.059 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1256, allocations: 12.02 kB / 0.5594 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.606e-05/0.1257, allocations: 30.75 kB / 0.5594 GB, free: 7.008 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.523e-05/0.1257, allocations: 8.844 kB / 0.5594 GB, free: 7 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001431/0.1258, allocations: 200 kB / 0.5596 GB, free: 6.766 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-06/0.1258, allocations: 384 / 0.5596 GB, free: 6.766 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.046e-06/0.1259, allocations: 384 / 0.5596 GB, free: 6.766 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.881e-05/0.1259, allocations: 37.83 kB / 0.5597 GB, free: 6.723 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.55e-06/0.126, allocations: 3.938 kB / 0.5597 GB, free: 6.719 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-06/0.126, allocations: 0 / 0.5597 GB, free: 6.719 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.126, allocations: 4 kB / 0.5597 GB, free: 6.715 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.723e-05/0.126, allocations: 15.98 kB / 0.5597 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001598/0.1262, allocations: 189.6 kB / 0.5599 GB, free: 6.465 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.224e-05/0.1262, allocations: 30.58 kB / 0.5599 GB, free: 6.426 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.912e-05/0.1262, allocations: 12.92 kB / 0.5599 GB, free: 6.41 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.1263, allocations: 11.89 kB / 0.5599 GB, free: 6.398 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.1263, allocations: 38.5 kB / 0.5599 GB, free: 6.352 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 3.055e-06/0.1263, allocations: 0 / 0.5599 GB, free: 6.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001276/0.1265, allocations: 65.53 kB / 0.56 GB, free: 6.281 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.633e-05/0.1265, allocations: 55.53 kB / 0.5601 GB, free: 6.215 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.1267, allocations: 215.8 kB / 0.5603 GB, free: 5.996 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.1267, allocations: 25.7 kB / 0.5603 GB, free: 5.965 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.466e-05/0.1267, allocations: 100.1 kB / 0.5604 GB, free: 5.863 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.287e-06/0.1268, allocations: 3.906 kB / 0.5604 GB, free: 5.859 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.1268, allocations: 33.7 kB / 0.5604 GB, free: 5.82 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.1269, allocations: 322.8 kB / 0.5607 GB, free: 5.496 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.822e-05/0.127, allocations: 51.98 kB / 0.5608 GB, free: 5.445 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.107e-05/0.127, allocations: 63.97 kB / 0.5608 GB, free: 5.383 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.985e-05/0.1271, allocations: 97.7 kB / 0.5609 GB, free: 5.285 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.1271, allocations: 0 / 0.5609 GB, free: 5.285 MB / 430.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001701/0.1273, allocations: 167.1 kB / 0.5611 GB, free: 5.117 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.1273, allocations: 8 kB / 0.5611 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.1274, allocations: 0 / 0.5611 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.415e-06/0.1274, allocations: 0 / 0.5611 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.718e-06/0.1274, allocations: 0 / 0.5611 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.168e-06/0.1274, allocations: 0 / 0.5611 GB, free: 5.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.609e-05/0.1274, allocations: 11.84 kB / 0.5611 GB, free: 5.098 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1274, allocations: 64 / 0.5611 GB, free: 5.098 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 (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 0.0001161/0.1276, allocations: 133.8 kB / 0.5612 GB, free: 4.957 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.1276, allocations: 19.69 kB / 0.5613 GB, free: 4.938 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.985e-05/0.1277, allocations: 70.17 kB / 0.5613 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1277, allocations: 0 / 0.5613 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-06/0.1277, allocations: 0 / 0.5613 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1277, allocations: 0 / 0.5613 GB, free: 4.867 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.1278, allocations: 181.7 kB / 0.5615 GB, free: 4.641 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.1278, allocations: 4.031 kB / 0.5615 GB, free: 4.637 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.823e-06/0.1278, allocations: 7.938 kB / 0.5615 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.213e-06/0.1278, allocations: 0 / 0.5615 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.14e-06/0.1279, allocations: 0 / 0.5615 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.1279, allocations: 0 / 0.5615 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1279, allocations: 0 / 0.5615 GB, free: 4.629 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.015e-05/0.128, allocations: 84.95 kB / 0.5616 GB, free: 4.527 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.62e-05/0.128, allocations: 92.86 kB / 0.5617 GB, free: 4.418 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.128, allocations: 8.031 kB / 0.5617 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.349e-05/0.128, allocations: 0 / 0.5617 GB, free: 4.41 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.879e-06/0.1281, allocations: 3.984 kB / 0.5617 GB, free: 4.406 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.565e-06/0.1281, allocations: 0 / 0.5617 GB, free: 4.406 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.1282, allocations: 150.2 kB / 0.5618 GB, free: 4.262 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1282, allocations: 0 / 0.5618 GB, free: 4.262 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000315/0.1285, allocations: 87.98 kB / 0.5619 GB, free: 4.176 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 (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.0006678/0.1292, allocations: 0.7468 MB / 0.5626 GB, free: 3.426 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001623/0.1293, allocations: 129.6 kB / 0.5628 GB, free: 3.293 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1294, allocations: 4.094 kB / 0.5628 GB, free: 3.289 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.611e-05/0.1294, allocations: 8 kB / 0.5628 GB, free: 3.281 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.1295, allocations: 11.94 kB / 0.5628 GB, free: 3.27 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00151/0.1311, allocations: 1.813 MB / 0.5646 GB, free: 1.379 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.1313, allocations: 0.7083 MB / 0.5653 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.724e-05/0.1313, allocations: 3.938 kB / 0.5653 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.1314, allocations: 27.44 kB / 0.5653 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of SimCode: time 1.583e-06/0.1314, allocations: 0 / 0.5653 GB, free: 0.6133 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1499/0.2813, allocations: 3.712 MB / 0.5689 GB, free: 12.99 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002059/0.2815, allocations: 241 kB / 0.5691 GB, free: 12.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.779/2.061, allocations: 0 / 0.5691 GB, free: 12.73 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)