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.0009436/0.0009437, allocations: 99.12 kB / 16.02 MB, free: 80 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.001048/0.001048, allocations: 183.6 kB / 16.92 MB, free: 6.754 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.339/1.339, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6787/0.6787, allocations: 115.5 MB / 407.6 MB, free: 2.703 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002994/0.0002995, allocations: 9.062 kB / 495.9 MB, free: 6.297 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1391/0.1394, allocations: 77.53 MB / 0.56 GB, free: 8.969 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0006349/0.1401, allocations: 242.3 kB / 0.5603 GB, free: 8.73 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00209/0.1422, allocations: 1.609 MB / 0.5618 GB, free: 7.105 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.338e-05/0.1422, allocations: 3.938 kB / 0.5618 GB, free: 7.102 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.1424, allocations: 19.97 kB / 0.5619 GB, free: 7.082 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.573e-05/0.1424, allocations: 15.92 kB / 0.5619 GB, free: 7.066 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.0006737/0.1431, allocations: 194.7 kB / 0.5621 GB, free: 6.879 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.579e-05/0.1431, allocations: 23.97 kB / 0.5621 GB, free: 6.855 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.511e-05/0.1432, allocations: 4 kB / 0.5621 GB, free: 6.852 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.962e-05/0.1432, allocations: 11.92 kB / 0.5621 GB, free: 6.84 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.045e-05/0.1433, allocations: 15.92 kB / 0.5621 GB, free: 6.824 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.322e-05/0.1433, allocations: 8 kB / 0.5621 GB, free: 6.816 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004375/0.1437, allocations: 275.6 kB / 0.5624 GB, free: 6.547 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.1438, allocations: 19.92 kB / 0.5624 GB, free: 6.527 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.129e-05/0.1439, allocations: 45.52 kB / 0.5624 GB, free: 6.477 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.1442, allocations: 267.4 kB / 0.5627 GB, free: 6.215 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1443, allocations: 0 / 0.5627 GB, free: 6.215 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.1443, allocations: 3.938 kB / 0.5627 GB, free: 6.211 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1443, allocations: 0 / 0.5627 GB, free: 6.211 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.0004172/0.1447, allocations: 401.3 kB / 0.5631 GB, free: 5.773 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.1447, allocations: 12.03 kB / 0.5631 GB, free: 5.762 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.393e-05/0.1448, allocations: 34.75 kB / 0.5631 GB, free: 5.719 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.1448, allocations: 8.844 kB / 0.5631 GB, free: 5.711 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.145, allocations: 185.8 kB / 0.5633 GB, free: 5.492 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.236e-06/0.145, allocations: 4.312 kB / 0.5633 GB, free: 5.488 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.083e-06/0.145, allocations: 384 / 0.5633 GB, free: 5.488 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.975e-05/0.1451, allocations: 41.77 kB / 0.5634 GB, free: 5.441 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.829e-06/0.1451, allocations: 0 / 0.5634 GB, free: 5.441 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.31e-06/0.1451, allocations: 0 / 0.5634 GB, free: 5.441 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.467e-06/0.1451, allocations: 0 / 0.5634 GB, free: 5.441 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.682e-05/0.1452, allocations: 23.92 kB / 0.5634 GB, free: 5.418 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001787/0.1453, allocations: 173.7 kB / 0.5635 GB, free: 5.199 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.109e-05/0.1454, allocations: 26.58 kB / 0.5636 GB, free: 5.164 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.114e-05/0.1454, allocations: 12.91 kB / 0.5636 GB, free: 5.148 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.266e-05/0.1455, allocations: 4 kB / 0.5636 GB, free: 5.145 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.404e-05/0.1455, allocations: 38.5 kB / 0.5636 GB, free: 5.098 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1455, allocations: 4 kB / 0.5636 GB, free: 5.094 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.000144/0.1457, allocations: 65.52 kB / 0.5637 GB, free: 5.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.1457, allocations: 51.41 kB / 0.5637 GB, free: 4.961 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.1459, allocations: 165.8 kB / 0.5639 GB, free: 4.793 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.1459, allocations: 33.7 kB / 0.5639 GB, free: 4.754 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.252e-05/0.1459, allocations: 92.12 kB / 0.564 GB, free: 4.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.875e-06/0.146, allocations: 0 / 0.564 GB, free: 4.66 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/0.146, allocations: 21.7 kB / 0.564 GB, free: 4.633 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.1462, allocations: 326.9 kB / 0.5644 GB, free: 4.305 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.598e-05/0.1463, allocations: 43.97 kB / 0.5644 GB, free: 4.262 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.723e-05/0.1463, allocations: 35.98 kB / 0.5644 GB, free: 4.227 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001269/0.1465, allocations: 68.45 kB / 0.5645 GB, free: 4.16 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1465, allocations: 0 / 0.5645 GB, free: 4.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000145/0.1466, allocations: 133.4 kB / 0.5646 GB, free: 4.023 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.1466, allocations: 6.188 kB / 0.5646 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.1467, allocations: 0 / 0.5646 GB, free: 4.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.057e-06/0.1467, allocations: 4 kB / 0.5646 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.669e-06/0.1467, allocations: 0 / 0.5646 GB, free: 4.016 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.1467, allocations: 8.047 kB / 0.5646 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.322e-05/0.1467, allocations: 7.844 kB / 0.5646 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.1467, allocations: 4 kB / 0.5646 GB, free: 3.996 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 (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.000137/0.1469, allocations: 121.8 kB / 0.5648 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.242e-05/0.1469, allocations: 15.84 kB / 0.5648 GB, free: 3.852 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001029/0.147, allocations: 57.5 kB / 0.5648 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.147, allocations: 0 / 0.5648 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.147, allocations: 4.031 kB / 0.5648 GB, free: 3.785 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.147, allocations: 0 / 0.5648 GB, free: 3.785 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001159/0.1472, allocations: 173.7 kB / 0.565 GB, free: 3.566 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.1472, allocations: 4 kB / 0.565 GB, free: 3.562 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.961e-06/0.1472, allocations: 3.938 kB / 0.565 GB, free: 3.559 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1472, allocations: 3.984 kB / 0.565 GB, free: 3.555 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.058e-06/0.1472, allocations: 0 / 0.565 GB, free: 3.555 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1472, allocations: 3.938 kB / 0.565 GB, free: 3.551 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1472, allocations: 3.984 kB / 0.565 GB, free: 3.547 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001031/0.1473, allocations: 81.03 kB / 0.5651 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.748e-05/0.1474, allocations: 88.95 kB / 0.5652 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.1474, allocations: 0 / 0.5652 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.133e-05/0.1474, allocations: 0 / 0.5652 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.739e-06/0.1474, allocations: 0 / 0.5652 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-06/0.1474, allocations: 0 / 0.5652 GB, free: 3.344 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.1476, allocations: 123.2 kB / 0.5653 GB, free: 3.223 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1476, allocations: 3.938 kB / 0.5653 GB, free: 3.219 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003025/0.1479, allocations: 87.98 kB / 0.5654 GB, free: 3.133 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.0006669/0.1485, allocations: 0.7327 MB / 0.5661 GB, free: 2.395 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.1487, allocations: 105.7 kB / 0.5662 GB, free: 2.285 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1487, allocations: 0 / 0.5662 GB, free: 2.285 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.423e-05/0.1487, allocations: 11.94 kB / 0.5662 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.1489, allocations: 0 / 0.5662 GB, free: 2.273 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001545/0.1504, allocations: 1.543 MB / 0.5677 GB, free: 0.6523 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003901/0.1508, allocations: 0.6965 MB / 0.5684 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.883e-05/0.1509, allocations: 4 kB / 0.5684 GB, free: 15.93 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.11e-05/0.1509, allocations: 15.44 kB / 0.5684 GB, free: 15.91 MB / 446.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1509, allocations: 0 / 0.5684 GB, free: 15.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01371/0.1646, allocations: 3.232 MB / 0.5716 GB, free: 12.8 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/0.1648, allocations: 237 kB / 0.5718 GB, free: 12.55 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.209, allocations: 0 / 0.5718 GB, free: 12.55 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)