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.001437/0.001438, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.001596/0.001596, allocations: 193.2 kB / 17.34 MB, free: 5.742 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.379/1.379, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7274/0.7274, allocations: 115.3 MB / 406.5 MB, free: 6.191 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001475, allocations: 67.88 kB / 0.5572 GB, free: 32.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.148/0.1495, allocations: 76.18 MB / 0.6316 GB, free: 4.93 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001604/0.1511, allocations: 0.5029 MB / 0.632 GB, free: 4.43 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.1533, allocations: 1.614 MB / 0.6336 GB, free: 2.797 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.213e-05/0.1533, allocations: 0 / 0.6336 GB, free: 2.797 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001308/0.1535, allocations: 19.91 kB / 0.6336 GB, free: 2.777 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 2.874e-05/0.1535, allocations: 15.92 kB / 0.6337 GB, free: 2.762 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.0009263/0.1545, allocations: 239.3 kB / 0.6339 GB, free: 2.527 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.575e-05/0.1545, allocations: 27.91 kB / 0.6339 GB, free: 2.5 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.189e-05/0.1546, allocations: 4 kB / 0.6339 GB, free: 2.496 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.386e-05/0.1546, allocations: 11.92 kB / 0.6339 GB, free: 2.484 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.971e-05/0.1547, allocations: 15.92 kB / 0.6339 GB, free: 2.469 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.048e-05/0.1547, allocations: 0 / 0.6339 GB, free: 2.469 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005705/0.1553, allocations: 343.4 kB / 0.6343 GB, free: 2.133 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.048e-05/0.1553, allocations: 11.98 kB / 0.6343 GB, free: 2.121 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.976e-05/0.1554, allocations: 23.81 kB / 0.6343 GB, free: 2.098 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000468/0.1558, allocations: 271.4 kB / 0.6346 GB, free: 1.832 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.1558, allocations: 4 kB / 0.6346 GB, free: 1.828 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1559, allocations: 4 kB / 0.6346 GB, free: 1.824 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.1559, allocations: 0 / 0.6346 GB, free: 1.824 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.0005171/0.1564, allocations: 406.8 kB / 0.635 GB, free: 1.383 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.1564, allocations: 8.031 kB / 0.635 GB, free: 1.375 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.682e-05/0.1565, allocations: 30.75 kB / 0.635 GB, free: 1.336 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.1565, allocations: 12.78 kB / 0.635 GB, free: 1.324 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.1567, allocations: 186.2 kB / 0.6352 GB, free: 1.105 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.1567, allocations: 4.375 kB / 0.6352 GB, free: 1.102 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.667e-06/0.1567, allocations: 4.375 kB / 0.6352 GB, free: 1.098 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.911e-05/0.1568, allocations: 37.83 kB / 0.6352 GB, free: 1.055 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.1569, allocations: 0 / 0.6352 GB, free: 1.055 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.1569, allocations: 3.984 kB / 0.6352 GB, free: 1.051 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.1569, allocations: 0 / 0.6352 GB, free: 1.051 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.072e-05/0.1569, allocations: 12 kB / 0.6352 GB, free: 1.039 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001801/0.1571, allocations: 181.5 kB / 0.6354 GB, free: 0.8125 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.668e-05/0.1572, allocations: 22.52 kB / 0.6354 GB, free: 0.7812 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.574e-05/0.1572, allocations: 24.91 kB / 0.6355 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.1572, allocations: 4 kB / 0.6355 GB, free: 0.75 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.1573, allocations: 38.5 kB / 0.6355 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1573, allocations: 0 / 0.6355 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001628/0.1574, allocations: 61.58 kB / 0.6356 GB, free: 0.6367 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.1575, allocations: 55.34 kB / 0.6356 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.1576, allocations: 168.2 kB / 0.6358 GB, free: 404 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.287e-05/0.1577, allocations: 33.69 kB / 0.6358 GB, free: 364 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.192e-05/0.1577, allocations: 92.14 kB / 0.6359 GB, free: 268 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.203e-05/0.1577, allocations: 7.906 kB / 0.6359 GB, free: 260 kB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.97e-05/0.1578, allocations: 25.7 kB / 0.6359 GB, free: 228 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.1579, allocations: 322.8 kB / 0.6362 GB, free: 15.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.737e-05/0.158, allocations: 39.98 kB / 0.6363 GB, free: 15.86 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.432e-05/0.158, allocations: 35.98 kB / 0.6363 GB, free: 15.82 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.464e-05/0.1581, allocations: 76.86 kB / 0.6364 GB, free: 15.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1581, allocations: 4.031 kB / 0.6364 GB, free: 15.74 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001545/0.1583, allocations: 125.5 kB / 0.6365 GB, free: 15.61 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.32e-05/0.1583, allocations: 4 kB / 0.6365 GB, free: 15.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.1583, allocations: 7.922 kB / 0.6365 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.1584, allocations: 0 / 0.6365 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.022e-05/0.1584, allocations: 8 kB / 0.6365 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.1584, allocations: 3.938 kB / 0.6365 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.748e-05/0.1584, allocations: 7.844 kB / 0.6365 GB, free: 15.58 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.077e-05/0.1584, allocations: 0 / 0.6365 GB, free: 15.58 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: 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.0001502/0.1586, allocations: 125.9 kB / 0.6367 GB, free: 15.45 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.778e-05/0.1586, allocations: 15.84 kB / 0.6367 GB, free: 15.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001168/0.1587, allocations: 57.55 kB / 0.6367 GB, free: 15.37 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1588, allocations: 0 / 0.6367 GB, free: 15.37 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.1588, allocations: 3.984 kB / 0.6367 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.1588, allocations: 0 / 0.6367 GB, free: 15.36 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001119/0.1589, allocations: 165.7 kB / 0.6369 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1589, allocations: 0 / 0.6369 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.749e-06/0.1589, allocations: 7.922 kB / 0.6369 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1589, allocations: 11.97 kB / 0.6369 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.251e-06/0.1589, allocations: 0 / 0.6369 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1589, allocations: 0 / 0.6369 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1589, allocations: 0 / 0.6369 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.153e-05/0.159, allocations: 77.03 kB / 0.637 GB, free: 15.04 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.548e-05/0.1591, allocations: 84.95 kB / 0.6371 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.1591, allocations: 4 kB / 0.6371 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.674e-05/0.1591, allocations: 7.969 kB / 0.6371 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.013e-05/0.1591, allocations: 3.938 kB / 0.6371 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.278e-06/0.1591, allocations: 3.984 kB / 0.6371 GB, free: 14.92 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.911e-05/0.1592, allocations: 119.9 kB / 0.6372 GB, free: 14.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1592, allocations: 0 / 0.6372 GB, free: 14.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003491/0.1596, allocations: 87.98 kB / 0.6373 GB, free: 14.71 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.0007059/0.1603, allocations: 0.7352 MB / 0.638 GB, free: 13.97 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001692/0.1605, allocations: 101.7 kB / 0.6381 GB, free: 13.87 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1605, allocations: 0 / 0.6381 GB, free: 13.87 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.551e-05/0.1605, allocations: 16.03 kB / 0.6381 GB, free: 13.85 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.1607, allocations: 1.719 kB / 0.6381 GB, free: 13.85 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001509/0.1622, allocations: 1.54 MB / 0.6396 GB, free: 12.23 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.1625, allocations: 0.6924 MB / 0.6403 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.819e-05/0.1626, allocations: 7.984 kB / 0.6403 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.192e-05/0.1626, allocations: 15.44 kB / 0.6403 GB, free: 11.49 MB / 494.1 MB Notification: Performance of SimCode: time 8.52e-07/0.1626, allocations: 0 / 0.6403 GB, free: 11.49 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.1829, allocations: 3.486 MB / 0.6437 GB, free: 8.086 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.751/7.934, allocations: 4.734 kB / 0.6437 GB, free: 8.086 MB / 494.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)