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.001237/0.001237, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001329/0.001329, allocations: 215.9 kB / 22.25 MB, free: 5.125 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.348/1.348, allocations: 230.6 MB / 256 MB, free: 7.977 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 2.986/2.986, allocations: 0.505 GB / 0.8101 GB, free: 22.02 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="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"}) [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.001825/0.001825, allocations: 67.69 kB / 1.177 GB, free: 17.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2868, allocations: 180.2 MB / 1.353 GB, free: 8.441 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.009274/0.2961, allocations: 7.48 MB / 1.36 GB, free: 0.9297 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.1696/0.4658, allocations: 155.3 MB / 1.512 GB, free: 5.023 MB / 1.201 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001258/0.467, allocations: 35.75 kB / 1.512 GB, free: 4.988 MB / 1.201 GB Notification: Performance of NFTyping.typeComponents: time 0.001603/0.4686, allocations: 440.7 kB / 1.512 GB, free: 4.555 MB / 1.201 GB Notification: Performance of NFTyping.typeBindings: time 0.002443/0.4711, allocations: 0.7848 MB / 1.513 GB, free: 3.77 MB / 1.201 GB Notification: Performance of NFTyping.typeClassSections: time 0.002688/0.4738, allocations: 1.174 MB / 1.514 GB, free: 2.602 MB / 1.201 GB Notification: Performance of NFFlatten.flatten: time 0.00338/0.4771, allocations: 2.49 MB / 1.517 GB, free: 104 kB / 1.201 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001481/0.4786, allocations: 0.7745 MB / 1.517 GB, free: 15.27 MB / 1.217 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001467/0.4801, allocations: 0.9463 MB / 1.518 GB, free: 14.32 MB / 1.217 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001574/0.4817, allocations: 1.008 MB / 1.519 GB, free: 13.31 MB / 1.217 GB Notification: Performance of NFPackage.collectConstants: time 0.0005819/0.4822, allocations: 268 kB / 1.52 GB, free: 13.05 MB / 1.217 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001592/0.4838, allocations: 0.6754 MB / 1.52 GB, free: 12.38 MB / 1.217 GB Notification: Performance of NFScalarize.scalarize: time 0.0006195/0.4844, allocations: 0.5725 MB / 1.521 GB, free: 11.8 MB / 1.217 GB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.4855, allocations: 1.089 MB / 1.522 GB, free: 10.71 MB / 1.217 GB Notification: Performance of NFConvertDAE.convert: time 0.00391/0.4894, allocations: 3.227 MB / 1.525 GB, free: 7.469 MB / 1.217 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.4894, allocations: 0 / 1.525 GB, free: 7.469 MB / 1.217 GB Notification: Performance of FrontEnd: time 1.223e-06/0.4894, allocations: 0 / 1.525 GB, free: 7.469 MB / 1.217 GB Notification: Performance of Transformations before backend: time 2.961e-05/0.4895, allocations: 4 kB / 1.525 GB, free: 7.465 MB / 1.217 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.004427/0.4939, allocations: 2.297 MB / 1.527 GB, free: 5.129 MB / 1.217 GB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.4939, allocations: 12.03 kB / 1.527 GB, free: 5.117 MB / 1.217 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002731/0.4942, allocations: 232.7 kB / 1.527 GB, free: 4.879 MB / 1.217 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01651/0.5107, allocations: 2.54 MB / 1.53 GB, free: 2.336 MB / 1.217 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.5132, allocations: 1.143 MB / 1.531 GB, free: 1.156 MB / 1.217 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001122/0.5133, allocations: 127.2 kB / 1.531 GB, free: 1.031 MB / 1.217 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002596/0.5136, allocations: 156 kB / 1.531 GB, free: 0.8789 MB / 1.217 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00848/0.5221, allocations: 2.965 MB / 1.534 GB, free: 13.86 MB / 1.232 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.334e-05/0.5221, allocations: 7.938 kB / 1.534 GB, free: 13.85 MB / 1.232 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001901/0.5223, allocations: 64 kB / 1.534 GB, free: 13.79 MB / 1.232 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-05/0.5223, allocations: 44 kB / 1.534 GB, free: 13.75 MB / 1.232 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0138/0.5361, allocations: 4.154 MB / 1.538 GB, free: 9.586 MB / 1.232 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02153/0.5576, allocations: 8.537 MB / 1.547 GB, free: 192 kB / 1.232 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.5698, allocations: 2.474 MB / 1.549 GB, free: 13.71 MB / 1.248 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007339/0.5772, allocations: 1.574 MB / 1.551 GB, free: 12.13 MB / 1.248 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00014/0.5773, allocations: 53.45 kB / 1.551 GB, free: 12.08 MB / 1.248 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006087/0.5834, allocations: 1.955 MB / 1.553 GB, free: 10.11 MB / 1.248 GB Notification: Performance of pre-optimization done (n=139): time 2.845e-06/0.5834, allocations: 0 / 1.553 GB, free: 10.11 MB / 1.248 GB Notification: Performance of matching and sorting (n=139): time 0.01825/0.6016, allocations: 4.952 MB / 1.557 GB, free: 5.145 MB / 1.248 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.6018, allocations: 222.9 kB / 1.558 GB, free: 4.879 MB / 1.248 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001356/0.6031, allocations: 0.9732 MB / 1.559 GB, free: 3.887 MB / 1.248 GB Notification: Performance of collectPreVariables (initialization): time 0.0001653/0.6033, allocations: 53.7 kB / 1.559 GB, free: 3.828 MB / 1.248 GB Notification: Performance of collectInitialEqns (initialization): time 0.000594/0.6039, allocations: 0.6773 MB / 1.559 GB, free: 3.141 MB / 1.248 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004506/0.6043, allocations: 476 kB / 1.56 GB, free: 2.672 MB / 1.248 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004968/0.6048, allocations: 258.7 kB / 1.56 GB, free: 2.414 MB / 1.248 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.605, allocations: 361.9 kB / 1.56 GB, free: 2.055 MB / 1.248 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005591/0.6106, allocations: 1.517 MB / 1.562 GB, free: 0.5352 MB / 1.248 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/0.6163, allocations: 1.678 MB / 1.564 GB, free: 14.82 MB / 1.264 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01053/0.6269, allocations: 2.841 MB / 1.566 GB, free: 11.97 MB / 1.264 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.6269, allocations: 4 kB / 1.566 GB, free: 11.96 MB / 1.264 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.01267/0.6395, allocations: 3.366 MB / 1.57 GB, free: 8.586 MB / 1.264 GB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/0.6396, allocations: 9.719 kB / 1.57 GB, free: 8.578 MB / 1.264 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.6396, allocations: 0 / 1.57 GB, free: 8.578 MB / 1.264 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005748/0.6402, allocations: 84.78 kB / 1.57 GB, free: 8.492 MB / 1.264 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003577/0.6437, allocations: 0.6398 MB / 1.57 GB, free: 7.852 MB / 1.264 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002083/0.6458, allocations: 1.543 MB / 1.572 GB, free: 6.191 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003441/0.6493, allocations: 0.5067 MB / 1.572 GB, free: 5.684 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.6494, allocations: 63.92 kB / 1.572 GB, free: 5.621 MB / 1.264 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.0008306/0.6502, allocations: 400.7 kB / 1.573 GB, free: 5.219 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002989/0.6505, allocations: 143.1 kB / 1.573 GB, free: 5.078 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/0.6638, allocations: 3.838 MB / 1.577 GB, free: 1.223 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.6638, allocations: 16 kB / 1.577 GB, free: 1.207 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.6638, allocations: 7.938 kB / 1.577 GB, free: 1.199 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.6638, allocations: 7.969 kB / 1.577 GB, free: 1.191 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003106/0.6669, allocations: 2.801 MB / 1.579 GB, free: 14.04 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.6669, allocations: 4 kB / 1.579 GB, free: 14.03 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003502/0.6704, allocations: 0.6203 MB / 1.58 GB, free: 13.41 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004145/0.6708, allocations: 72.8 kB / 1.58 GB, free: 13.34 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001461/0.671, allocations: 55.94 kB / 1.58 GB, free: 13.28 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.6729, allocations: 1.562 MB / 1.582 GB, free: 11.6 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.6729, allocations: 64 / 1.582 GB, free: 11.6 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/0.6852, allocations: 3.499 MB / 1.585 GB, free: 8.082 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009077/0.6861, allocations: 426.6 kB / 1.585 GB, free: 7.664 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002525/0.6863, allocations: 39.89 kB / 1.586 GB, free: 7.625 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003174/0.6895, allocations: 465.6 kB / 1.586 GB, free: 7.172 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002464/0.6898, allocations: 125 kB / 1.586 GB, free: 7.047 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/0.6899, allocations: 63.94 kB / 1.586 GB, free: 6.984 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.0009727/0.6909, allocations: 0.7072 MB / 1.587 GB, free: 6.27 MB / 1.279 GB Notification: Performance of sort global known variables: time 8e-08/0.6909, allocations: 0 / 1.587 GB, free: 6.27 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.001256/0.6921, allocations: 0.5378 MB / 1.587 GB, free: 5.73 MB / 1.279 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.01453/0.7067, allocations: 4.562 MB / 1.592 GB, free: 1.312 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.01254/0.7192, allocations: 3.437 MB / 1.595 GB, free: 13.86 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.7192, allocations: 0 / 1.595 GB, free: 13.86 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.006337/0.7255, allocations: 1.837 MB / 1.597 GB, free: 12.01 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001683/0.7272, allocations: 413 kB / 1.597 GB, free: 11.63 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5882/1.315, allocations: 16.51 MB / 1.613 GB, free: 252.8 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000914/1.316, allocations: 1.285 MB / 1.615 GB, free: 252.1 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001887/1.318, allocations: 445.2 kB / 1.615 GB, free: 252.1 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.319, allocations: 0.697 MB / 1.616 GB, free: 251.9 MB / 1.295 GB Notification: Performance of SimCode: time 7.82e-07/1.319, allocations: 0.9062 kB / 1.616 GB, free: 251.9 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07965/1.399, allocations: 39.8 MB / 1.655 GB, free: 236.5 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/15.68, allocations: 6.344 kB / 1.655 GB, free: 236.5 MB / 1.295 GB " [Timeout remaining time 284] (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] diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_Controls_Examples_SolarPumpController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 21.95879101403989]