Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001445/0.001445, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001539/0.001539, allocations: 210.9 kB / 22.24 MB, free: 5.242 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.377/1.377, allocations: 230.6 MB / 256 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.032/3.032, allocations: 0.4892 GB / 0.7943 GB, free: 35.53 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController,fileNamePrefix="Buildings_12_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController",fmuType="me",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.001939/0.001939, allocations: 64.77 kB / 1.153 GB, free: 25.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2948/0.2968, allocations: 176.1 MB / 1.325 GB, free: 2.434 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.009674/0.3064, allocations: 6.56 MB / 1.331 GB, free: 11.84 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.1701/0.4766, allocations: 133.8 MB / 1.462 GB, free: 5.527 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00124/0.4778, allocations: 27.81 kB / 1.462 GB, free: 5.5 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.4795, allocations: 428.7 kB / 1.463 GB, free: 5.078 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 0.002599/0.4821, allocations: 0.7884 MB / 1.463 GB, free: 4.289 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.002657/0.4847, allocations: 1.155 MB / 1.464 GB, free: 3.141 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 0.003257/0.488, allocations: 2.478 MB / 1.467 GB, free: 0.6562 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001506/0.4895, allocations: 0.7432 MB / 1.468 GB, free: 15.86 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001373/0.4909, allocations: 0.9502 MB / 1.469 GB, free: 14.91 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.4923, allocations: 0.8866 MB / 1.469 GB, free: 14.02 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 0.0005315/0.4929, allocations: 268 kB / 1.47 GB, free: 13.75 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001462/0.4943, allocations: 0.6519 MB / 1.47 GB, free: 13.1 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 0.0006902/0.495, allocations: 0.5764 MB / 1.471 GB, free: 12.52 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.4964, allocations: 0.8789 MB / 1.472 GB, free: 11.64 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.004269/0.5006, allocations: 3.235 MB / 1.475 GB, free: 8.395 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5006, allocations: 0 / 1.475 GB, free: 8.395 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5006, allocations: 4 kB / 1.475 GB, free: 8.391 MB / 1.17 GB Notification: Performance of Transformations before backend: time 8.482e-05/0.5007, allocations: 0 / 1.475 GB, free: 8.391 MB / 1.17 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.00502/0.5057, allocations: 2.297 MB / 1.477 GB, free: 6.051 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.5058, allocations: 12.03 kB / 1.477 GB, free: 6.039 MB / 1.17 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002921/0.5061, allocations: 232.7 kB / 1.477 GB, free: 5.801 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007667/0.5137, allocations: 1.014 MB / 1.478 GB, free: 4.785 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002594/0.5163, allocations: 1.093 MB / 1.479 GB, free: 3.656 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001258/0.5165, allocations: 123.3 kB / 1.48 GB, free: 3.535 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002771/0.5167, allocations: 156 kB / 1.48 GB, free: 3.383 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004959/0.5217, allocations: 2.34 MB / 1.482 GB, free: 0.9219 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.5217, allocations: 0 / 1.482 GB, free: 0.9219 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001737/0.5219, allocations: 72 kB / 1.482 GB, free: 0.8516 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.499e-05/0.5219, allocations: 40 kB / 1.482 GB, free: 0.8125 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006125/0.5281, allocations: 2.405 MB / 1.484 GB, free: 14.4 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009726/0.5378, allocations: 4.635 MB / 1.489 GB, free: 9.691 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004391/0.5422, allocations: 1.612 MB / 1.491 GB, free: 8.07 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001993/0.5442, allocations: 0.7318 MB / 1.491 GB, free: 7.336 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005207/0.5447, allocations: 93.59 kB / 1.491 GB, free: 7.246 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002624/0.5473, allocations: 1.183 MB / 1.492 GB, free: 6.016 MB / 1.186 GB Notification: Performance of pre-optimization done (n=139): time 3.386e-06/0.5473, allocations: 0 / 1.492 GB, free: 6.016 MB / 1.186 GB Notification: Performance of matching and sorting (n=139): time 0.007816/0.5551, allocations: 2.544 MB / 1.495 GB, free: 3.465 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.5553, allocations: 222.9 kB / 1.495 GB, free: 3.199 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.5567, allocations: 0.9732 MB / 1.496 GB, free: 2.207 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.5568, allocations: 53.7 kB / 1.496 GB, free: 2.148 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 0.000644/0.5575, allocations: 0.6734 MB / 1.497 GB, free: 1.465 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004389/0.5579, allocations: 472 kB / 1.497 GB, free: 1 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004548/0.5583, allocations: 254.8 kB / 1.498 GB, free: 0.7422 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001815/0.5585, allocations: 357.9 kB / 1.498 GB, free: 396 kB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001983/0.5605, allocations: 0.6702 MB / 1.499 GB, free: 15.72 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.5628, allocations: 0.9743 MB / 1.499 GB, free: 14.67 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004173/0.567, allocations: 1.447 MB / 1.501 GB, free: 13.21 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/0.567, allocations: 0 / 1.501 GB, free: 13.21 MB / 1.201 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005467/0.5724, allocations: 1.797 MB / 1.503 GB, free: 11.41 MB / 1.201 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.5725, allocations: 4 kB / 1.503 GB, free: 11.4 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.5725, allocations: 4 kB / 1.503 GB, free: 11.4 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006103/0.5731, allocations: 88.77 kB / 1.503 GB, free: 11.31 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001813/0.5749, allocations: 339.5 kB / 1.503 GB, free: 10.98 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00235/0.5772, allocations: 1.54 MB / 1.505 GB, free: 9.316 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001675/0.5789, allocations: 204.8 kB / 1.505 GB, free: 9.117 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/0.5791, allocations: 59.94 kB / 1.505 GB, free: 9.059 MB / 1.201 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.0008565/0.5799, allocations: 398 kB / 1.505 GB, free: 8.66 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003769/0.5803, allocations: 143 kB / 1.505 GB, free: 8.52 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0063/0.5866, allocations: 2.226 MB / 1.508 GB, free: 6.277 MB / 1.201 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.532e-05/0.5866, allocations: 16 kB / 1.508 GB, free: 6.262 MB / 1.201 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.5866, allocations: 3.938 kB / 1.508 GB, free: 6.258 MB / 1.201 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.5867, allocations: 7.969 kB / 1.508 GB, free: 6.25 MB / 1.201 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002274/0.5889, allocations: 1.473 MB / 1.509 GB, free: 4.734 MB / 1.201 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.334e-06/0.5889, allocations: 3.938 kB / 1.509 GB, free: 4.73 MB / 1.201 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001725/0.5907, allocations: 315.6 kB / 1.509 GB, free: 4.422 MB / 1.201 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004424/0.5911, allocations: 76.72 kB / 1.509 GB, free: 4.344 MB / 1.201 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001424/0.5912, allocations: 51.95 kB / 1.509 GB, free: 4.293 MB / 1.201 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.5933, allocations: 1.559 MB / 1.511 GB, free: 2.617 MB / 1.201 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.5933, allocations: 0 / 1.511 GB, free: 2.617 MB / 1.201 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005336/0.5986, allocations: 1.93 MB / 1.513 GB, free: 0.668 MB / 1.201 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009104/0.5995, allocations: 374.4 kB / 1.513 GB, free: 308 kB / 1.201 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002602/0.5998, allocations: 39.94 kB / 1.513 GB, free: 268 kB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.6013, allocations: 139.8 kB / 1.513 GB, free: 128 kB / 1.201 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002355/0.6015, allocations: 125 kB / 1.513 GB, free: 0 / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001484/0.6017, allocations: 64.06 kB / 1.514 GB, free: 15.93 MB / 1.217 GB Notification: Performance of sorting global known variables: time 0.001057/0.6027, allocations: 0.7032 MB / 1.514 GB, free: 15.22 MB / 1.217 GB Notification: Performance of sort global known variables: time 8e-08/0.6027, allocations: 0 / 1.514 GB, free: 15.22 MB / 1.217 GB Notification: Performance of remove unused functions: time 0.00128/0.604, allocations: 0.526 MB / 1.515 GB, free: 14.7 MB / 1.217 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.007861/0.6119, allocations: 3.067 MB / 1.518 GB, free: 11.81 MB / 1.217 GB Notification: Performance of simCode: created initialization part: time 0.004882/0.6167, allocations: 1.728 MB / 1.519 GB, free: 10.07 MB / 1.217 GB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.6167, allocations: 4 kB / 1.519 GB, free: 10.07 MB / 1.217 GB Notification: Performance of simCode: created simulation system equations: time 0.002536/0.6193, allocations: 0.986 MB / 1.52 GB, free: 9.066 MB / 1.217 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/0.6209, allocations: 397.5 kB / 1.521 GB, free: 8.695 MB / 1.217 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02454/0.6454, allocations: 11.48 MB / 1.532 GB, free: 13.07 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001026/0.6464, allocations: 0.7023 MB / 1.533 GB, free: 12.33 MB / 1.232 GB Notification: Performance of simCode: alias equations: time 0.001912/0.6484, allocations: 414.5 kB / 1.533 GB, free: 11.92 MB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001317/0.6497, allocations: 0.6906 MB / 1.534 GB, free: 11.23 MB / 1.232 GB Notification: Performance of SimCode: time 7.21e-07/0.6497, allocations: 4 kB / 1.534 GB, free: 11.22 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08789/0.7376, allocations: 38.37 MB / 1.571 GB, free: 5.277 MB / 1.264 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.59/14.33, allocations: 10.34 kB / 1.571 GB, free: 5.27 MB / 1.264 GB " [Timeout remaining time 285] (rm -f Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; mkfifo Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe >> ../files/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController_fmu --startTime=0 --stopTime=86400 --stepSize=34.56 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.fmu > Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 20.831181213259697]