Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.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.0007322/0.0007322, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.0008206/0.0008206, allocations: 170.3 kB / 22.46 MB, free: 2.105 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.8867/0.8867, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.5508/0.5508, allocations: 110.2 MB / 369.4 MB, free: 12.64 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_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 0.5472 GB, free: 8.828 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.269e-05/1.439e-05, allocations: 2.281 kB / 0.5472 GB, free: 8.824 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001044/0.001058, allocations: 0.5207 MB / 0.5477 GB, free: 8.301 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.001794/0.002852, allocations: 1.61 MB / 0.5493 GB, free: 6.672 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.228e-05/0.002884, allocations: 3.938 kB / 0.5493 GB, free: 6.668 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.003054, allocations: 59.89 kB / 0.5494 GB, free: 6.609 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 2.339e-05/0.003077, allocations: 23.97 kB / 0.5494 GB, free: 6.586 MB / 474.7 MB [/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.0006365/0.003714, allocations: 281.4 kB / 0.5497 GB, free: 6.312 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 6.898e-05/0.003783, allocations: 31.89 kB / 0.5497 GB, free: 6.281 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.524e-05/0.003818, allocations: 7.938 kB / 0.5497 GB, free: 6.273 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.281e-05/0.003861, allocations: 23.97 kB / 0.5497 GB, free: 6.25 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.089e-05/0.003912, allocations: 43.88 kB / 0.5498 GB, free: 6.207 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.003924, allocations: 4 kB / 0.5498 GB, free: 6.203 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004444/0.004368, allocations: 419.2 kB / 0.5502 GB, free: 5.793 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 5.328e-05/0.004421, allocations: 27.92 kB / 0.5502 GB, free: 5.766 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 2.307e-05/0.004444, allocations: 19.94 kB / 0.5502 GB, free: 5.746 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003288/0.004773, allocations: 347.1 kB / 0.5505 GB, free: 5.406 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.746e-06/0.004776, allocations: 3.984 kB / 0.5506 GB, free: 5.402 MB / 474.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004777, allocations: 0 / 0.5506 GB, free: 5.402 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.004781, allocations: 0 / 0.5506 GB, free: 5.402 MB / 474.7 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.0003371/0.005118, allocations: 365.3 kB / 0.5509 GB, free: 5.016 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.005153, allocations: 8.031 kB / 0.5509 GB, free: 5.008 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.72e-05/0.005181, allocations: 38.69 kB / 0.5509 GB, free: 4.961 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.005206, allocations: 12.84 kB / 0.551 GB, free: 4.949 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.005329, allocations: 127.4 kB / 0.5511 GB, free: 4.801 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-06/0.005338, allocations: 8.359 kB / 0.5511 GB, free: 4.793 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.845e-06/0.005346, allocations: 4.375 kB / 0.5511 GB, free: 4.789 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.591e-05/0.005432, allocations: 34.27 kB / 0.5511 GB, free: 4.75 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-06/0.005438, allocations: 192 / 0.5511 GB, free: 4.75 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.907e-06/0.005447, allocations: 8.125 kB / 0.5511 GB, free: 4.742 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.005451, allocations: 0 / 0.5511 GB, free: 4.742 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.717e-05/0.005478, allocations: 23.92 kB / 0.5512 GB, free: 4.719 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001305/0.005608, allocations: 152.7 kB / 0.5513 GB, free: 4.527 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.836e-05/0.005647, allocations: 34.55 kB / 0.5513 GB, free: 4.484 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.005664, allocations: 12.92 kB / 0.5513 GB, free: 4.469 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.005696, allocations: 11.98 kB / 0.5514 GB, free: 4.457 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.832e-05/0.005714, allocations: 34.56 kB / 0.5514 GB, free: 4.414 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 6.21e-07/0.005714, allocations: 0 / 0.5514 GB, free: 4.414 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001234/0.005838, allocations: 73.47 kB / 0.5515 GB, free: 4.336 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/0.005863, allocations: 51.41 kB / 0.5515 GB, free: 4.273 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.005991, allocations: 214.2 kB / 0.5517 GB, free: 4.055 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-06/0.005999, allocations: 25.7 kB / 0.5517 GB, free: 4.023 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.006042, allocations: 104.1 kB / 0.5518 GB, free: 3.918 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.021e-05/0.006052, allocations: 7.953 kB / 0.5518 GB, free: 3.91 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/0.006083, allocations: 29.7 kB / 0.5519 GB, free: 3.875 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 7.588e-05/0.006159, allocations: 327 kB / 0.5522 GB, free: 3.547 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.441e-05/0.006203, allocations: 51.98 kB / 0.5522 GB, free: 3.496 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.509e-05/0.006238, allocations: 55.97 kB / 0.5523 GB, free: 3.441 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.585e-05/0.006304, allocations: 90.09 kB / 0.5524 GB, free: 3.352 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.006306, allocations: 0 / 0.5524 GB, free: 3.352 MB / 474.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001181/0.006424, allocations: 163.6 kB / 0.5525 GB, free: 3.188 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.006438, allocations: 11.98 kB / 0.5525 GB, free: 3.176 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.00645, allocations: 0 / 0.5525 GB, free: 3.176 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.00646, allocations: 3.938 kB / 0.5525 GB, free: 3.172 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.878e-06/0.00647, allocations: 0 / 0.5525 GB, free: 3.172 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.006474, allocations: 0 / 0.5525 GB, free: 3.172 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.72e-05/0.006491, allocations: 19.91 kB / 0.5526 GB, free: 3.152 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.006498, allocations: 4 kB / 0.5526 GB, free: 3.148 MB / 474.7 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 8.906e-05/0.006587, allocations: 133.8 kB / 0.5527 GB, free: 3.008 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.442e-06/0.006594, allocations: 7.953 kB / 0.5527 GB, free: 3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.526e-05/0.006669, allocations: 62.12 kB / 0.5528 GB, free: 2.934 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.006672, allocations: 7.938 kB / 0.5528 GB, free: 2.926 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.006676, allocations: 0 / 0.5528 GB, free: 2.926 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.006679, allocations: 0 / 0.5528 GB, free: 2.926 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.751e-05/0.006756, allocations: 160.7 kB / 0.5529 GB, free: 2.727 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.11e-07/0.006756, allocations: 4.031 kB / 0.5529 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-06/0.006759, allocations: 0 / 0.5529 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.006761, allocations: 0 / 0.5529 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.789e-06/0.006765, allocations: 0 / 0.5529 GB, free: 2.723 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.006767, allocations: 3.938 kB / 0.5529 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.006768, allocations: 0 / 0.5529 GB, free: 2.719 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.177e-05/0.006819, allocations: 81.03 kB / 0.553 GB, free: 2.621 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.774e-06/0.006827, allocations: 7.953 kB / 0.553 GB, free: 2.613 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.648e-06/0.006837, allocations: 3.984 kB / 0.553 GB, free: 2.609 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.528e-06/0.006846, allocations: 11.94 kB / 0.553 GB, free: 2.598 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-06/0.006856, allocations: 4.031 kB / 0.553 GB, free: 2.594 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-06/0.006857, allocations: 0 / 0.553 GB, free: 2.594 MB / 474.7 MB Notification: Performance of sorting global known variables: time 7.152e-05/0.006929, allocations: 152.3 kB / 0.5532 GB, free: 2.445 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.006929, allocations: 3.938 kB / 0.5532 GB, free: 2.441 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002026/0.007132, allocations: 83.81 kB / 0.5533 GB, free: 2.359 MB / 474.7 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.000515/0.007647, allocations: 0.7681 MB / 0.554 GB, free: 1.59 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.007774, allocations: 113.7 kB / 0.5541 GB, free: 1.473 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.007776, allocations: 0 / 0.5541 GB, free: 1.473 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.17e-05/0.007788, allocations: 19.92 kB / 0.5541 GB, free: 1.453 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001057/0.007893, allocations: 6.516 kB / 0.5541 GB, free: 1.449 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.009013, allocations: 1.827 MB / 0.5559 GB, free: 15.54 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.512e-05/0.009068, allocations: 96.28 kB / 0.556 GB, free: 15.42 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.542e-05/0.009083, allocations: 4.156 kB / 0.556 GB, free: 15.42 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.112e-05/0.009114, allocations: 32.42 kB / 0.5561 GB, free: 15.39 MB / 490.7 MB Notification: Performance of SimCode: time 4.61e-07/0.009115, allocations: 0 / 0.5561 GB, free: 15.39 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0168/0.02592, allocations: 4.552 MB / 0.5605 GB, free: 10.97 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.962/6.987, allocations: 6.688 kB / 0.5605 GB, free: 10.96 MB / 490.7 MB " [Timeout remaining time 653] (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.351282437331975] Failed to read output from testmodel.py, exit status != 0: 7.066938968375325 7.076632129 7.069910853 Calling exit ...