Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007982/0.0007982, allocations: 79.69 kB / 19.25 MB, free: 0.6211 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008622/0.0008622, allocations: 162 kB / 22.56 MB, free: 1.965 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9127/0.9127, allocations: 177.1 MB / 202.9 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo): time 0.544/0.544, allocations: 110.2 MB / 369.6 MB, free: 12.61 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:44:3-56:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:58:3-65:19:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:67:3-72:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/BoundaryConditions/Scenarios/CombiTimeTable.mo:74:3-79:20:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package BuildSysPro with version 3.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.703e-06/1.703e-06, allocations: 0 / 0.5474 GB, free: 9.785 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.714e-05, allocations: 2.281 kB / 0.5474 GB, free: 9.781 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0009773/0.0009944, allocations: 0.5207 MB / 0.5479 GB, free: 9.258 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001577/0.002572, allocations: 1.614 MB / 0.5495 GB, free: 7.625 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.403e-05/0.002606, allocations: 4 kB / 0.5495 GB, free: 7.621 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.002737, allocations: 23.91 kB / 0.5495 GB, free: 7.598 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 1.783e-05/0.002755, allocations: 7.984 kB / 0.5496 GB, free: 7.59 MB / 0.5105 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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/BuildSysPro 3.7.0/IBPSA/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.0006446/0.0034, allocations: 267 kB / 0.5498 GB, free: 7.328 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 6.727e-05/0.003467, allocations: 19.92 kB / 0.5498 GB, free: 7.309 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 3.532e-05/0.003502, allocations: 0 / 0.5498 GB, free: 7.309 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 3.878e-05/0.003541, allocations: 23.97 kB / 0.5499 GB, free: 7.285 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 3.612e-05/0.003577, allocations: 15.97 kB / 0.5499 GB, free: 7.27 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 1.204e-05/0.003589, allocations: 0 / 0.5499 GB, free: 7.27 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004375/0.004027, allocations: 427.1 kB / 0.5503 GB, free: 6.852 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 4.388e-05/0.004071, allocations: 15.94 kB / 0.5503 GB, free: 6.836 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 1.712e-05/0.004088, allocations: 4 kB / 0.5503 GB, free: 6.832 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0002969/0.004385, allocations: 343.1 kB / 0.5506 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.014e-06/0.004387, allocations: 0 / 0.5506 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of FrontEnd: time 8.11e-07/0.004387, allocations: 0 / 0.5506 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 6.792e-06/0.004394, allocations: 0 / 0.5506 GB, free: 6.496 MB / 0.5105 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.0002901/0.004684, allocations: 341.6 kB / 0.5509 GB, free: 6.133 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.004718, allocations: 12.62 kB / 0.551 GB, free: 6.121 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.487e-05/0.004743, allocations: 30.75 kB / 0.551 GB, free: 6.082 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.996e-05/0.004763, allocations: 4.891 kB / 0.551 GB, free: 6.078 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.004869, allocations: 125.5 kB / 0.5511 GB, free: 5.93 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.877e-06/0.004878, allocations: 8.375 kB / 0.5511 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.004886, allocations: 384 / 0.5511 GB, free: 5.922 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.696e-05/0.004963, allocations: 42.14 kB / 0.5512 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.00497, allocations: 192 / 0.5512 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.004976, allocations: 4.125 kB / 0.5512 GB, free: 5.871 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.00498, allocations: 4 kB / 0.5512 GB, free: 5.867 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.256e-05/0.005003, allocations: 15.98 kB / 0.5512 GB, free: 5.852 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001158/0.005119, allocations: 148.8 kB / 0.5513 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 3.647e-05/0.005155, allocations: 22.58 kB / 0.5513 GB, free: 5.633 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.631e-05/0.005172, allocations: 12.91 kB / 0.5514 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 3.163e-05/0.005203, allocations: 11.98 kB / 0.5514 GB, free: 5.605 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.576e-05/0.005219, allocations: 34.5 kB / 0.5514 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=1): time 7.11e-07/0.00522, allocations: 0 / 0.5514 GB, free: 5.562 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1): time 0.0001236/0.005343, allocations: 65.58 kB / 0.5515 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.453e-05/0.005368, allocations: 51.53 kB / 0.5515 GB, free: 5.43 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.00547, allocations: 181.3 kB / 0.5517 GB, free: 5.246 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.867e-06/0.005479, allocations: 25.7 kB / 0.5517 GB, free: 5.215 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 3.711e-05/0.005516, allocations: 96.12 kB / 0.5518 GB, free: 5.117 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 8.286e-06/0.005525, allocations: 3.953 kB / 0.5518 GB, free: 5.113 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.005552, allocations: 25.7 kB / 0.5518 GB, free: 5.082 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.855e-05/0.005621, allocations: 318.8 kB / 0.5521 GB, free: 4.762 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.713e-05/0.005658, allocations: 43.91 kB / 0.5522 GB, free: 4.719 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.879e-05/0.005687, allocations: 47.92 kB / 0.5522 GB, free: 4.672 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.259e-05/0.00574, allocations: 64.89 kB / 0.5523 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.005741, allocations: 0 / 0.5523 GB, free: 4.605 MB / 0.5105 GB Notification: Performance of matching and sorting (n=12) (initialization): time 8.873e-05/0.00583, allocations: 129.6 kB / 0.5524 GB, free: 4.473 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.00584, allocations: 4 kB / 0.5524 GB, free: 4.469 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.00585, allocations: 4 kB / 0.5524 GB, free: 4.465 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.005861, allocations: 7.938 kB / 0.5524 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.039e-05/0.005871, allocations: 0 / 0.5524 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.005876, allocations: 3.984 kB / 0.5524 GB, free: 4.453 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.696e-05/0.005893, allocations: 11.89 kB / 0.5524 GB, free: 4.441 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.005899, allocations: 0 / 0.5524 GB, free: 4.441 MB / 0.5105 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 7.697e-05/0.005976, allocations: 121.8 kB / 0.5526 GB, free: 4.312 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.131e-06/0.005983, allocations: 7.953 kB / 0.5526 GB, free: 4.305 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.639e-05/0.006059, allocations: 65.41 kB / 0.5526 GB, free: 4.23 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.774e-06/0.006061, allocations: 3.938 kB / 0.5526 GB, free: 4.227 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.155e-06/0.006064, allocations: 4 kB / 0.5526 GB, free: 4.223 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-06/0.006066, allocations: 0 / 0.5526 GB, free: 4.223 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.835e-05/0.006135, allocations: 140.7 kB / 0.5528 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.006136, allocations: 0 / 0.5528 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-06/0.006139, allocations: 0 / 0.5528 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.00614, allocations: 0 / 0.5528 GB, free: 4.043 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.3e-06/0.006145, allocations: 4 kB / 0.5528 GB, free: 4.039 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.006147, allocations: 3.938 kB / 0.5528 GB, free: 4.035 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.006147, allocations: 4.031 kB / 0.5528 GB, free: 4.031 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.873e-05/0.006196, allocations: 81 kB / 0.5529 GB, free: 3.934 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.095e-06/0.006204, allocations: 11.95 kB / 0.5529 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.824e-06/0.006212, allocations: 0 / 0.5529 GB, free: 3.922 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.643e-06/0.006219, allocations: 3.938 kB / 0.5529 GB, free: 3.918 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.005e-05/0.006229, allocations: 0 / 0.5529 GB, free: 3.918 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-06/0.00623, allocations: 0 / 0.5529 GB, free: 3.918 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.999e-05/0.00629, allocations: 126.5 kB / 0.553 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.00629, allocations: 0 / 0.553 GB, free: 3.797 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002011/0.006491, allocations: 83.86 kB / 0.5531 GB, free: 3.715 MB / 0.5105 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.0005494/0.007041, allocations: 0.7626 MB / 0.5538 GB, free: 2.949 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0001174/0.007158, allocations: 101.6 kB / 0.5539 GB, free: 2.844 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.233e-06/0.007159, allocations: 0 / 0.5539 GB, free: 2.844 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 7.484e-06/0.007167, allocations: 12.09 kB / 0.5539 GB, free: 2.832 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001137/0.00728, allocations: 10.28 kB / 0.5539 GB, free: 2.824 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008791/0.008159, allocations: 1.546 MB / 0.5554 GB, free: 1.195 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.653e-05/0.008206, allocations: 79.31 kB / 0.5555 GB, free: 1.098 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 1.966e-05/0.008226, allocations: 0 / 0.5555 GB, free: 1.098 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.648e-05/0.008252, allocations: 16.5 kB / 0.5555 GB, free: 1.082 MB / 0.5105 GB Notification: Performance of SimCode: time 3e-07/0.008252, allocations: 4 kB / 0.5555 GB, free: 1.078 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.02475, allocations: 4.151 MB / 0.5596 GB, free: 13.07 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.907/6.931, allocations: 5.375 kB / 0.5596 GB, free: 13.06 MB / 0.5261 GB " [Timeout remaining time 653] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.470148490741849] Failed to read output from testmodel.py, exit status != 0: 7.014321755617857 7.026196502 7.019179539 Calling exit ...