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.001177/0.001177, allocations: 110 kB / 16.41 MB, free: 6.484 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.001208/0.001208, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7587/0.7587, allocations: 115.3 MB / 406.5 MB, free: 6.242 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 59.03 kB / 0.5572 GB, free: 32.6 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1489, allocations: 76.19 MB / 0.6316 GB, free: 4.984 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.002098/0.151, allocations: 0.4931 MB / 0.632 GB, free: 4.492 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003214/0.1543, allocations: 1.61 MB / 0.6336 GB, free: 2.863 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.027e-05/0.1544, allocations: 0 / 0.6336 GB, free: 2.863 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.1546, allocations: 59.84 kB / 0.6337 GB, free: 2.805 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 5.476e-05/0.1547, allocations: 31.95 kB / 0.6337 GB, free: 2.773 MB / 478.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.001186/0.1559, allocations: 243.3 kB / 0.6339 GB, free: 2.535 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.1561, allocations: 35.91 kB / 0.634 GB, free: 2.5 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.803e-05/0.1562, allocations: 3.938 kB / 0.634 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.811e-05/0.1562, allocations: 27.89 kB / 0.634 GB, free: 2.469 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.045e-05/0.1563, allocations: 35.91 kB / 0.634 GB, free: 2.434 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.769e-05/0.1563, allocations: 4 kB / 0.634 GB, free: 2.43 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008122/0.1572, allocations: 339.5 kB / 0.6344 GB, free: 2.098 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 8.427e-05/0.1573, allocations: 27.92 kB / 0.6344 GB, free: 2.07 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 5.178e-05/0.1573, allocations: 19.75 kB / 0.6344 GB, free: 2.051 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005941/0.1579, allocations: 303.3 kB / 0.6347 GB, free: 1.754 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.1579, allocations: 0 / 0.6347 GB, free: 1.754 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.1579, allocations: 0 / 0.6347 GB, free: 1.754 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.158, allocations: 0 / 0.6347 GB, free: 1.754 MB / 478.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.0007118/0.1587, allocations: 430.5 kB / 0.6351 GB, free: 1.289 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.1587, allocations: 12.03 kB / 0.6351 GB, free: 1.277 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.923e-05/0.1588, allocations: 30.75 kB / 0.6351 GB, free: 1.238 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.44e-05/0.1588, allocations: 8.844 kB / 0.6352 GB, free: 1.23 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002087/0.1591, allocations: 192.7 kB / 0.6353 GB, free: 1.004 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.166e-05/0.1591, allocations: 4.375 kB / 0.6353 GB, free: 1 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.1591, allocations: 4.375 kB / 0.6353 GB, free: 0.9961 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.1592, allocations: 41.81 kB / 0.6354 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.1592, allocations: 3.938 kB / 0.6354 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.1592, allocations: 0 / 0.6354 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.1593, allocations: 0 / 0.6354 GB, free: 0.9453 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.022e-05/0.1593, allocations: 19.98 kB / 0.6354 GB, free: 0.9258 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002125/0.1595, allocations: 189.6 kB / 0.6356 GB, free: 0.6914 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.232e-05/0.1596, allocations: 26.58 kB / 0.6356 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.1596, allocations: 16.91 kB / 0.6356 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.681e-05/0.1597, allocations: 7.906 kB / 0.6356 GB, free: 0.6289 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.358e-05/0.1597, allocations: 34.5 kB / 0.6357 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 2.705e-06/0.1597, allocations: 0 / 0.6357 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.000187/0.1599, allocations: 77.52 kB / 0.6357 GB, free: 0.5039 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.1599, allocations: 51.41 kB / 0.6358 GB, free: 452 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002468/0.1602, allocations: 214.9 kB / 0.636 GB, free: 224 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001789/0.1604, allocations: 25.7 kB / 0.636 GB, free: 192 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.077e-05/0.1605, allocations: 104.1 kB / 0.6361 GB, free: 84 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.228e-05/0.1605, allocations: 3.906 kB / 0.6361 GB, free: 80 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/0.1605, allocations: 29.7 kB / 0.6362 GB, free: 44 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002583/0.1608, allocations: 326.8 kB / 0.6365 GB, free: 15.71 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.57e-05/0.1609, allocations: 55.97 kB / 0.6365 GB, free: 15.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.314e-05/0.161, allocations: 51.98 kB / 0.6366 GB, free: 15.61 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.1612, allocations: 103.4 kB / 0.6367 GB, free: 15.51 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1612, allocations: 0 / 0.6367 GB, free: 15.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002477/0.1614, allocations: 165.4 kB / 0.6368 GB, free: 15.34 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.1614, allocations: 4 kB / 0.6368 GB, free: 15.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.634e-05/0.1615, allocations: 4 kB / 0.6368 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.1615, allocations: 0 / 0.6368 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.854e-05/0.1615, allocations: 3.984 kB / 0.6368 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.1615, allocations: 0 / 0.6368 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.686e-05/0.1616, allocations: 7.906 kB / 0.6368 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.707e-06/0.1616, allocations: 0 / 0.6368 GB, free: 15.32 MB / 494.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.0002009/0.1618, allocations: 133.9 kB / 0.637 GB, free: 15.18 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.209e-05/0.1618, allocations: 15.75 kB / 0.637 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001378/0.162, allocations: 74.11 kB / 0.6371 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.162, allocations: 0 / 0.6371 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.162, allocations: 3.984 kB / 0.6371 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.162, allocations: 0 / 0.6371 GB, free: 15.08 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002394/0.1623, allocations: 177.7 kB / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1623, allocations: 0 / 0.6372 GB, free: 14.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.177e-06/0.1623, allocations: 11.95 kB / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.1623, allocations: 0 / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.81e-06/0.1623, allocations: 0 / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.1623, allocations: 4 kB / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.1623, allocations: 0 / 0.6372 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.1624, allocations: 80.97 kB / 0.6373 GB, free: 14.74 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.075e-05/0.1625, allocations: 92.86 kB / 0.6374 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.1625, allocations: 0 / 0.6374 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.932e-05/0.1626, allocations: 4.031 kB / 0.6374 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.743e-05/0.1626, allocations: 7.984 kB / 0.6374 GB, free: 14.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-06/0.1626, allocations: 0 / 0.6374 GB, free: 14.62 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001424/0.1627, allocations: 144.4 kB / 0.6376 GB, free: 14.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1627, allocations: 4 kB / 0.6376 GB, free: 14.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004536/0.1632, allocations: 83.98 kB / 0.6376 GB, free: 14.39 MB / 494.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.0008989/0.1641, allocations: 0.7468 MB / 0.6384 GB, free: 13.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002233/0.1643, allocations: 133.6 kB / 0.6385 GB, free: 13.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.1644, allocations: 96 / 0.6385 GB, free: 13.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.492e-05/0.1644, allocations: 15.98 kB / 0.6385 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002038/0.1646, allocations: 9.812 kB / 0.6385 GB, free: 13.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.1665, allocations: 1.807 MB / 0.6403 GB, free: 11.58 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002417/0.1668, allocations: 0.7118 MB / 0.641 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.937e-05/0.1668, allocations: 0 / 0.641 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.1669, allocations: 27.42 kB / 0.641 GB, free: 10.82 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1669, allocations: 0 / 0.641 GB, free: 10.82 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02005/0.1869, allocations: 3.877 MB / 0.6448 GB, free: 7.023 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.962/8.149, allocations: 10.41 kB / 0.6448 GB, free: 7.016 MB / 494.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)