Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 105.5 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001896/0.001896, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002491/0.002491, allocations: 284 kB / 303 MB, free: 9.5 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.23/1.23, allocations: 180.9 MB / 0.5261 GB, free: 14.78 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002818/0.002818, allocations: 105.9 kB / 0.7247 GB, free: 40.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1536/0.1564, allocations: 94.16 MB / 0.8167 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001645/0.1581, allocations: 0.5142 MB / 0.8172 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002368/0.1604, allocations: 1.628 MB / 0.8188 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.837e-05/0.1605, allocations: 0 / 0.8188 GB, free: 3.328 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.1606, allocations: 23.91 kB / 0.8188 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.416e-05/0.1606, allocations: 7.984 kB / 0.8188 GB, free: 3.297 MB / 0.5606 GB [/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/BuildingSystems 2.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.0009016/0.1615, allocations: 236.3 kB / 0.819 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.081e-05/0.1616, allocations: 23.97 kB / 0.8191 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.1617, allocations: 11.98 kB / 0.8191 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.976e-05/0.1617, allocations: 7.938 kB / 0.8191 GB, free: 3.023 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.421e-05/0.1617, allocations: 23.91 kB / 0.8191 GB, free: 3 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.1617, allocations: 0 / 0.8191 GB, free: 3 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006041/0.1624, allocations: 371.3 kB / 0.8195 GB, free: 2.637 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.059e-05/0.1624, allocations: 19.92 kB / 0.8195 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.1624, allocations: 15.88 kB / 0.8195 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000412/0.1629, allocations: 283.4 kB / 0.8198 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1629, allocations: 0 / 0.8198 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.673e-06/0.1629, allocations: 0 / 0.8198 GB, free: 2.324 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.1629, allocations: 4 kB / 0.8198 GB, free: 2.32 MB / 0.5606 GB 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.0004759/0.1633, allocations: 406.7 kB / 0.8202 GB, free: 1.875 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.1634, allocations: 8.031 kB / 0.8202 GB, free: 1.867 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.1634, allocations: 30.75 kB / 0.8202 GB, free: 1.828 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.98e-05/0.1635, allocations: 16.78 kB / 0.8202 GB, free: 1.812 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001882/0.1636, allocations: 190.7 kB / 0.8204 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.947e-06/0.1637, allocations: 384 / 0.8204 GB, free: 1.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.467e-06/0.1637, allocations: 4.375 kB / 0.8204 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.762e-05/0.1638, allocations: 41.81 kB / 0.8204 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1638, allocations: 4 kB / 0.8204 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.532e-06/0.1638, allocations: 0 / 0.8204 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.1638, allocations: 0 / 0.8204 GB, free: 1.535 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.402e-05/0.1638, allocations: 23.92 kB / 0.8205 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001795/0.164, allocations: 165.7 kB / 0.8206 GB, free: 1.301 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.931e-05/0.164, allocations: 26.56 kB / 0.8206 GB, free: 1.266 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.42e-05/0.1641, allocations: 16.92 kB / 0.8207 GB, free: 1.246 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.284e-05/0.1641, allocations: 4 kB / 0.8207 GB, free: 1.242 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.041e-05/0.1641, allocations: 42.48 kB / 0.8207 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1641, allocations: 0 / 0.8207 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001487/0.1643, allocations: 61.58 kB / 0.8208 GB, free: 1.125 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.1643, allocations: 51.41 kB / 0.8208 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001597/0.1645, allocations: 176 kB / 0.821 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.1645, allocations: 25.7 kB / 0.821 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.851e-05/0.1646, allocations: 92.14 kB / 0.8211 GB, free: 0.7578 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.065e-05/0.1646, allocations: 8.078 kB / 0.8211 GB, free: 0.75 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.049e-05/0.1646, allocations: 25.7 kB / 0.8211 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1647, allocations: 322.8 kB / 0.8214 GB, free: 404 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.679e-05/0.1648, allocations: 39.98 kB / 0.8215 GB, free: 364 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.434e-05/0.1649, allocations: 35.98 kB / 0.8215 GB, free: 328 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.779e-05/0.1649, allocations: 72.81 kB / 0.8216 GB, free: 252 kB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.1649, allocations: 0 / 0.8216 GB, free: 252 kB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001626/0.1651, allocations: 137.4 kB / 0.8217 GB, free: 108 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.1651, allocations: 4.062 kB / 0.8217 GB, free: 104 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.1651, allocations: 8 kB / 0.8217 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.1651, allocations: 0 / 0.8217 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.156e-05/0.1652, allocations: 0 / 0.8217 GB, free: 96 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.1652, allocations: 3.938 kB / 0.8217 GB, free: 92 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.663e-05/0.1652, allocations: 11.89 kB / 0.8217 GB, free: 80 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.835e-06/0.1652, allocations: 0 / 0.8217 GB, free: 80 kB / 0.5606 GB 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.0001781/0.1654, allocations: 125.8 kB / 0.8219 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.1654, allocations: 7.891 kB / 0.8219 GB, free: 15.94 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.1655, allocations: 65.48 kB / 0.8219 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1655, allocations: 0 / 0.8219 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.1655, allocations: 0 / 0.8219 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1655, allocations: 0 / 0.8219 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000138/0.1656, allocations: 173.7 kB / 0.8221 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1656, allocations: 0 / 0.8221 GB, free: 15.65 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.883e-06/0.1656, allocations: 3.938 kB / 0.8221 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-06/0.1656, allocations: 0 / 0.8221 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.19e-06/0.1657, allocations: 3.938 kB / 0.8221 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1657, allocations: 0 / 0.8221 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1657, allocations: 4.031 kB / 0.8221 GB, free: 15.64 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.34e-05/0.1657, allocations: 77.08 kB / 0.8222 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 5.232e-05/0.1658, allocations: 89 kB / 0.8223 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.673e-05/0.1658, allocations: 7.984 kB / 0.8223 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.148e-05/0.1658, allocations: 0 / 0.8223 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.147e-05/0.1658, allocations: 3.938 kB / 0.8223 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.094e-06/0.1658, allocations: 0 / 0.8223 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.123e-05/0.1659, allocations: 125.9 kB / 0.8224 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1659, allocations: 0 / 0.8224 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003484/0.1663, allocations: 87.8 kB / 0.8225 GB, free: 15.22 MB / 0.5762 GB 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.0008481/0.1671, allocations: 0.748 MB / 0.8232 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001795/0.1673, allocations: 89.67 kB / 0.8233 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1673, allocations: 3.938 kB / 0.8233 GB, free: 14.37 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.741e-05/0.1673, allocations: 11.98 kB / 0.8233 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001505/0.1675, allocations: 4 kB / 0.8233 GB, free: 14.36 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001524/0.169, allocations: 1.535 MB / 0.8248 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.1693, allocations: 0.704 MB / 0.8255 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.057e-05/0.1694, allocations: 0 / 0.8255 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.565e-05/0.1694, allocations: 19.38 kB / 0.8255 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of SimCode: time 4.91e-07/0.1694, allocations: 0 / 0.8255 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.1971, allocations: 3.532 MB / 0.829 GB, free: 8.57 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.975/8.172, allocations: 5.219 kB / 0.829 GB, free: 8.57 MB / 0.5762 GB " [Timeout remaining time 652] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.258783986791968] Failed to read output from testmodel.py, exit status != 0: 8.24173166276887 8.256799516 8.090981131 Calling exit ...