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.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",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.004335/0.004335, allocations: 101.1 kB / 15.73 MB, free: 6.062 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.001305/0.001305, allocations: 189.8 kB / 16.67 MB, free: 5.973 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.457/2.457, allocations: 482.6 MB / 0.755 GB, free: 10.63 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00158/0.001581, allocations: 67.89 kB / 1.083 GB, free: 12.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2426/0.2442, allocations: 162.3 MB / 1.242 GB, free: 9.832 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.00772/0.252, allocations: 7.354 MB / 1.249 GB, free: 2.445 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6037/0.8557, allocations: 151.8 MB / 1.397 GB, free: 14.6 MB / 1.107 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.8568, allocations: 23.81 kB / 1.397 GB, free: 14.59 MB / 1.107 GB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.8583, allocations: 430.4 kB / 1.398 GB, free: 14.26 MB / 1.107 GB Notification: Performance of NFTyping.typeBindings: time 0.002159/0.8604, allocations: 0.7552 MB / 1.398 GB, free: 13.67 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.002294/0.8627, allocations: 1.134 MB / 1.4 GB, free: 12.77 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.00224/0.865, allocations: 2.459 MB / 1.402 GB, free: 11.25 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001261/0.8663, allocations: 1.156 MB / 1.403 GB, free: 10.56 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000812/0.8671, allocations: 0.9001 MB / 1.404 GB, free: 9.996 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009649/0.8681, allocations: 0.9937 MB / 1.405 GB, free: 9.27 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0002534/0.8683, allocations: 265.3 kB / 1.405 GB, free: 9.27 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009218/0.8692, allocations: 0.645 MB / 1.406 GB, free: 9.074 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0004221/0.8697, allocations: 0.5592 MB / 1.406 GB, free: 8.605 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0008401/0.8705, allocations: 1.085 MB / 1.407 GB, free: 7.793 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.002739/0.8733, allocations: 3.174 MB / 1.411 GB, free: 5.406 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 7.244e-06/0.8733, allocations: 4 kB / 1.411 GB, free: 5.402 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.002e-06/0.8733, allocations: 3.938 kB / 1.411 GB, free: 5.398 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.728e-05/0.8733, allocations: 0 / 1.411 GB, free: 5.398 MB / 1.107 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.00371/0.877, allocations: 2.348 MB / 1.413 GB, free: 3.641 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.8771, allocations: 9.375 kB / 1.413 GB, free: 3.641 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000247/0.8773, allocations: 235.4 kB / 1.413 GB, free: 3.453 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005219/0.8825, allocations: 0.8697 MB / 1.414 GB, free: 3.051 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001503/0.8841, allocations: 1.148 MB / 1.415 GB, free: 2.113 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.219e-05/0.8841, allocations: 125.2 kB / 1.415 GB, free: 2.055 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.8843, allocations: 160.5 kB / 1.415 GB, free: 2 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00397/0.8883, allocations: 2.069 MB / 1.417 GB, free: 0.7383 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.974e-05/0.8884, allocations: 3.938 kB / 1.417 GB, free: 0.7344 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001541/0.8885, allocations: 67.44 kB / 1.417 GB, free: 0.6836 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.515e-05/0.8885, allocations: 39.97 kB / 1.417 GB, free: 0.6836 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005344/0.8939, allocations: 2.445 MB / 1.42 GB, free: 15.49 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008122/0.902, allocations: 5.918 MB / 1.426 GB, free: 10.57 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00405/0.9061, allocations: 1.714 MB / 1.427 GB, free: 8.863 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00185/0.908, allocations: 0.7972 MB / 1.428 GB, free: 8.066 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006193/0.9086, allocations: 499 kB / 1.429 GB, free: 7.484 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002227/0.9108, allocations: 1.064 MB / 1.43 GB, free: 6.402 MB / 1.123 GB Notification: Performance of pre-optimization done (n=139): time 2.434e-06/0.9108, allocations: 0 / 1.43 GB, free: 6.402 MB / 1.123 GB Notification: Performance of matching and sorting (n=139): time 0.006869/0.9177, allocations: 2.623 MB / 1.432 GB, free: 3.754 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.9178, allocations: 218.9 kB / 1.432 GB, free: 3.488 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.9189, allocations: 0.9445 MB / 1.433 GB, free: 2.523 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.919, allocations: 53.7 kB / 1.433 GB, free: 2.465 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004601/0.9195, allocations: 0.6616 MB / 1.434 GB, free: 1.793 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003501/0.9198, allocations: 475.9 kB / 1.434 GB, free: 1.324 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004043/0.9202, allocations: 250.8 kB / 1.435 GB, free: 1.074 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.9204, allocations: 353.9 kB / 1.435 GB, free: 0.7227 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001764/0.9221, allocations: 0.6741 MB / 1.436 GB, free: 48 kB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.9241, allocations: 0.8236 MB / 1.436 GB, free: 15.19 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003604/0.9277, allocations: 1.443 MB / 1.438 GB, free: 13.73 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.9277, allocations: 4 kB / 1.438 GB, free: 13.73 MB / 1.139 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.004583/0.9323, allocations: 1.801 MB / 1.44 GB, free: 11.91 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.9323, allocations: 11.94 kB / 1.44 GB, free: 11.9 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.73e-06/0.9323, allocations: 4.062 kB / 1.44 GB, free: 11.9 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005205/0.9328, allocations: 76.78 kB / 1.44 GB, free: 11.82 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001615/0.9345, allocations: 347.4 kB / 1.44 GB, free: 11.48 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/0.9363, allocations: 1.645 MB / 1.442 GB, free: 9.695 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001326/0.9377, allocations: 199 kB / 1.442 GB, free: 9.5 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.9378, allocations: 59.95 kB / 1.442 GB, free: 9.441 MB / 1.139 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.0005353/0.9384, allocations: 404.4 kB / 1.442 GB, free: 9.039 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002544/0.9386, allocations: 143.1 kB / 1.442 GB, free: 8.898 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005415/0.944, allocations: 2.214 MB / 1.445 GB, free: 6.672 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.9441, allocations: 20 kB / 1.445 GB, free: 6.652 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.9441, allocations: 3.938 kB / 1.445 GB, free: 6.648 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.412e-05/0.9441, allocations: 7.969 kB / 1.445 GB, free: 6.641 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001781/0.9459, allocations: 1.817 MB / 1.446 GB, free: 4.773 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.9459, allocations: 0 / 1.446 GB, free: 4.773 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001535/0.9474, allocations: 315.5 kB / 1.447 GB, free: 4.465 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003929/0.9478, allocations: 80.78 kB / 1.447 GB, free: 4.383 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.9479, allocations: 43.95 kB / 1.447 GB, free: 4.34 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001709/0.9496, allocations: 1.678 MB / 1.448 GB, free: 2.516 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.9497, allocations: 0 / 1.448 GB, free: 2.516 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004576/0.9542, allocations: 1.93 MB / 1.45 GB, free: 0.5586 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005302/0.9548, allocations: 447.6 kB / 1.451 GB, free: 104 kB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001945/0.955, allocations: 43.94 kB / 1.451 GB, free: 60 kB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001327/0.9563, allocations: 139.8 kB / 1.451 GB, free: 15.92 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000206/0.9565, allocations: 117.1 kB / 1.451 GB, free: 15.81 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.9567, allocations: 63.89 kB / 1.451 GB, free: 15.75 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0007833/0.9574, allocations: 0.6871 MB / 1.452 GB, free: 15.05 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9575, allocations: 3.938 kB / 1.452 GB, free: 15.05 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0009829/0.9584, allocations: 0.5143 MB / 1.452 GB, free: 14.53 MB / 1.154 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.006477/0.9649, allocations: 3.03 MB / 1.455 GB, free: 11.66 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.004187/0.9691, allocations: 1.794 MB / 1.457 GB, free: 9.852 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.9691, allocations: 0 / 1.457 GB, free: 9.852 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.002263/0.9714, allocations: 1.068 MB / 1.458 GB, free: 8.773 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001311/0.9727, allocations: 404.5 kB / 1.458 GB, free: 8.398 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.9925, allocations: 11.4 MB / 1.47 GB, free: 12.84 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.9934, allocations: 1.276 MB / 1.471 GB, free: 11.54 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.001285/0.9947, allocations: 406.5 kB / 1.471 GB, free: 11.14 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000997/0.9957, allocations: 0.6827 MB / 1.472 GB, free: 10.45 MB / 1.17 GB Notification: Performance of SimCode: time 1.783e-06/0.9957, allocations: 0 / 1.472 GB, free: 10.45 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 9.96/10.96, allocations: 35.65 MB / 1.507 GB, free: 7.18 MB / 1.201 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.37/31.32, allocations: 14.45 kB / 1.507 GB, free: 7.168 MB / 1.201 GB (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 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1)