Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.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.001204/0.001204, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 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.001352/0.001352, allocations: 217.8 kB / 23.03 MB, free: 4.922 MB / 14.72 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 1.407/1.407, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.117/3.117, allocations: 0.5003 GB / 0.8062 GB, free: 28.22 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 62.53 kB / 1.17 GB, free: 19.53 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3176/0.3195, allocations: 179 MB / 1.345 GB, free: 15.92 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.009608/0.3291, allocations: 6.534 MB / 1.352 GB, free: 9.348 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.1768/0.5058, allocations: 133.7 MB / 1.482 GB, free: 3.109 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.5074, allocations: 31.75 kB / 1.482 GB, free: 3.078 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.001789/0.5092, allocations: 424.8 kB / 1.483 GB, free: 2.66 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 0.002813/0.512, allocations: 0.7975 MB / 1.483 GB, free: 1.863 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.002844/0.5148, allocations: 1.157 MB / 1.485 GB, free: 0.7109 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 0.003424/0.5182, allocations: 2.486 MB / 1.487 GB, free: 14.21 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001323/0.5196, allocations: 0.7706 MB / 1.488 GB, free: 13.39 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001287/0.5209, allocations: 0.9541 MB / 1.489 GB, free: 12.44 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001272/0.5221, allocations: 0.9999 MB / 1.49 GB, free: 11.43 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.0003776/0.5225, allocations: 268 kB / 1.49 GB, free: 11.17 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.5237, allocations: 0.6597 MB / 1.491 GB, free: 10.51 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.0005387/0.5243, allocations: 0.5726 MB / 1.491 GB, free: 9.938 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.0009289/0.5252, allocations: 0.8828 MB / 1.492 GB, free: 9.051 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.003731/0.5289, allocations: 3.238 MB / 1.495 GB, free: 5.801 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.5289, allocations: 0 / 1.495 GB, free: 5.801 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.733e-06/0.5289, allocations: 0 / 1.495 GB, free: 5.801 MB / 1.186 GB Notification: Performance of Transformations before backend: time 4.351e-05/0.529, allocations: 0 / 1.495 GB, free: 5.801 MB / 1.186 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 415 * Number of variables: 415 Notification: Performance of Generate backend data structure: time 0.004802/0.5338, allocations: 2.299 MB / 1.497 GB, free: 3.457 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.5338, allocations: 8.031 kB / 1.497 GB, free: 3.449 MB / 1.186 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.04e-05/0.5339, allocations: 43.45 kB / 1.497 GB, free: 3.406 MB / 1.186 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000305/0.5342, allocations: 236.7 kB / 1.498 GB, free: 3.164 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01737/0.5516, allocations: 2.54 MB / 1.5 GB, free: 0.6211 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00286/0.5544, allocations: 1.143 MB / 1.501 GB, free: 15.44 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.5546, allocations: 123.2 kB / 1.501 GB, free: 15.32 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003579/0.5549, allocations: 160 kB / 1.502 GB, free: 15.16 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01074/0.5656, allocations: 3.249 MB / 1.505 GB, free: 11.79 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.112e-05/0.5657, allocations: 0 / 1.505 GB, free: 11.79 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002594/0.566, allocations: 68 kB / 1.505 GB, free: 11.73 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.905e-05/0.566, allocations: 36 kB / 1.505 GB, free: 11.69 MB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01535/0.5813, allocations: 4.157 MB / 1.509 GB, free: 7.527 MB / 1.201 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01718/0.5985, allocations: 7.182 MB / 1.516 GB, free: 15.66 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008659/0.6072, allocations: 2.464 MB / 1.518 GB, free: 13.18 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006289/0.6135, allocations: 1.583 MB / 1.52 GB, free: 11.59 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001601/0.6136, allocations: 37.28 kB / 1.52 GB, free: 11.56 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007238/0.6209, allocations: 2.058 MB / 1.522 GB, free: 9.457 MB / 1.217 GB Notification: Performance of pre-optimization done (n=139): time 5.139e-06/0.6209, allocations: 0 / 1.522 GB, free: 9.457 MB / 1.217 GB Notification: Performance of matching and sorting (n=139): time 0.01978/0.6407, allocations: 4.955 MB / 1.527 GB, free: 4.492 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000153/0.6408, allocations: 226.9 kB / 1.527 GB, free: 4.223 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00152/0.6423, allocations: 0.9732 MB / 1.528 GB, free: 3.23 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0002765/0.6426, allocations: 57.69 kB / 1.528 GB, free: 3.168 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006338/0.6432, allocations: 0.6734 MB / 1.529 GB, free: 2.484 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005137/0.6437, allocations: 464 kB / 1.529 GB, free: 2.027 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005953/0.6443, allocations: 262.7 kB / 1.529 GB, free: 1.766 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.0001783/0.6445, allocations: 361.8 kB / 1.53 GB, free: 1.406 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006064/0.6506, allocations: 1.521 MB / 1.531 GB, free: 15.88 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006224/0.6568, allocations: 1.833 MB / 1.533 GB, free: 13.98 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/0.6684, allocations: 2.845 MB / 1.536 GB, free: 11.12 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.6684, allocations: 0 / 1.536 GB, free: 11.12 MB / 1.232 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.01335/0.6818, allocations: 3.355 MB / 1.539 GB, free: 7.75 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 2.979e-05/0.6818, allocations: 8 kB / 1.539 GB, free: 7.742 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.6818, allocations: 4.062 kB / 1.539 GB, free: 7.738 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006559/0.6825, allocations: 92.7 kB / 1.539 GB, free: 7.645 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003895/0.6864, allocations: 0.6476 MB / 1.54 GB, free: 6.996 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002262/0.6886, allocations: 1.527 MB / 1.541 GB, free: 5.348 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003849/0.6925, allocations: 0.5088 MB / 1.542 GB, free: 4.84 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002133/0.6927, allocations: 59.94 kB / 1.542 GB, free: 4.781 MB / 1.232 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 23 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,pumCon.hys.y,$PRE.pumCon.hys.y,pumCon.HDirTil.incAng.decAng.tNext,$PRE.pumCon.HDirTil.incAng.decAng.tNext,pumCon.HDifTilIso.incAng.decAng.tNext,$PRE.pumCon.HDifTilIso.incAng.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0009281/0.6936, allocations: 404.1 kB / 1.542 GB, free: 4.379 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000371/0.694, allocations: 139.1 kB / 1.542 GB, free: 4.242 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01427/0.7082, allocations: 3.838 MB / 1.546 GB, free: 400 kB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/0.7083, allocations: 23.92 kB / 1.546 GB, free: 376 kB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7083, allocations: 0 / 1.546 GB, free: 376 kB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.7083, allocations: 3.984 kB / 1.546 GB, free: 372 kB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0035/0.7118, allocations: 2.392 MB / 1.548 GB, free: 13.62 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.7118, allocations: 0 / 1.548 GB, free: 13.62 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003807/0.7156, allocations: 0.6243 MB / 1.549 GB, free: 13 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004772/0.7161, allocations: 76.72 kB / 1.549 GB, free: 12.92 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.7163, allocations: 47.95 kB / 1.549 GB, free: 12.87 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002063/0.7184, allocations: 1.559 MB / 1.551 GB, free: 11.19 MB / 1.248 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.7184, allocations: 0 / 1.551 GB, free: 11.19 MB / 1.248 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01344/0.7318, allocations: 3.495 MB / 1.554 GB, free: 7.672 MB / 1.248 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001168/0.733, allocations: 426.4 kB / 1.554 GB, free: 7.254 MB / 1.248 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003518/0.7333, allocations: 43.94 kB / 1.554 GB, free: 7.211 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003318/0.7366, allocations: 455.6 kB / 1.555 GB, free: 6.766 MB / 1.248 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002589/0.7369, allocations: 125 kB / 1.555 GB, free: 6.641 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001806/0.7371, allocations: 68 kB / 1.555 GB, free: 6.574 MB / 1.248 GB Notification: Performance of sorting global known variables: time 0.001127/0.7382, allocations: 0.7072 MB / 1.556 GB, free: 5.859 MB / 1.248 GB Notification: Performance of sort global known variables: time 1e-07/0.7382, allocations: 0 / 1.556 GB, free: 5.859 MB / 1.248 GB Notification: Performance of remove unused functions: time 0.001426/0.7396, allocations: 0.5377 MB / 1.556 GB, free: 5.32 MB / 1.248 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,pumCon.hys.y,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 8 (pumCon.hys.y,pumCon.HDifTilIso.incAng.decAng.tNext,pumCon.HDirTil.incAng.decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (155): * Single equations (assignments): 147 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01559/0.7552, allocations: 4.61 MB / 1.561 GB, free: 0.8867 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.01311/0.7683, allocations: 3.426 MB / 1.564 GB, free: 13.45 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.7683, allocations: 4 kB / 1.564 GB, free: 13.44 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.006686/0.775, allocations: 1.837 MB / 1.566 GB, free: 11.59 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001798/0.7768, allocations: 390.9 kB / 1.566 GB, free: 11.23 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05163/0.8285, allocations: 16.52 MB / 1.582 GB, free: 10.55 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009144/0.8294, allocations: 0.7061 MB / 1.583 GB, free: 9.805 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.002285/0.8317, allocations: 454.5 kB / 1.584 GB, free: 9.355 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001508/0.8332, allocations: 0.6983 MB / 1.584 GB, free: 8.656 MB / 1.279 GB Notification: Performance of SimCode: time 9.11e-07/0.8332, allocations: 0 / 1.584 GB, free: 8.656 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6824/1.516, allocations: 41.14 MB / 1.624 GB, free: 258.1 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.49/17.01, allocations: 1.344 kB / 1.624 GB, free: 258.1 MB / 1.295 GB " [Timeout remaining time 283] (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 23.641155668068677] Failed to read output from testmodel.py, exit status != 0: 17.29424525599461 17.30836578 16.776505422 Calling exit ...