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.001604/0.001604, allocations: 102.8 kB / 16.45 MB, free: 6.449 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.001769/0.001769, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.411/1.411, allocations: 230.6 MB / 252.8 MB, free: 9.121 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 2.979/2.979, allocations: 0.49 GB / 0.7916 GB, free: 33.46 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.001921/0.001921, allocations: 63.95 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3203/0.3222, allocations: 176.1 MB / 1.321 GB, free: 3.305 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.Controls.Examples.SolarPumpController): time 0.01013/0.3324, allocations: 7.435 MB / 1.328 GB, free: 11.84 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.1871/0.5194, allocations: 155.2 MB / 1.48 GB, free: 60 kB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.5208, allocations: 27.81 kB / 1.48 GB, free: 32 kB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 0.001777/0.5226, allocations: 432.8 kB / 1.48 GB, free: 15.6 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 0.002807/0.5254, allocations: 0.7887 MB / 1.481 GB, free: 14.81 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.002976/0.5284, allocations: 1.157 MB / 1.482 GB, free: 13.66 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 0.003838/0.5322, allocations: 2.474 MB / 1.484 GB, free: 11.19 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00172/0.534, allocations: 0.7815 MB / 1.485 GB, free: 10.35 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001649/0.5356, allocations: 0.9463 MB / 1.486 GB, free: 9.398 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001688/0.5373, allocations: 1.008 MB / 1.487 GB, free: 8.387 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 0.0006172/0.5379, allocations: 268 kB / 1.487 GB, free: 8.125 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001614/0.5395, allocations: 0.6753 MB / 1.488 GB, free: 7.449 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 0.0008106/0.5403, allocations: 0.5764 MB / 1.489 GB, free: 6.871 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 0.00202/0.5424, allocations: 1.081 MB / 1.49 GB, free: 5.785 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.005053/0.5474, allocations: 3.223 MB / 1.493 GB, free: 2.551 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.5474, allocations: 0 / 1.493 GB, free: 2.551 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.443e-06/0.5474, allocations: 0 / 1.493 GB, free: 2.551 MB / 1.186 GB Notification: Performance of Transformations before backend: time 9.444e-05/0.5475, allocations: 0 / 1.493 GB, free: 2.551 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.005507/0.553, allocations: 2.388 MB / 1.495 GB, free: 108 kB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.5531, allocations: 11.98 kB / 1.495 GB, free: 96 kB / 1.186 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003224/0.5534, allocations: 236.7 kB / 1.495 GB, free: 15.85 MB / 1.201 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007975/0.5614, allocations: 1.002 MB / 1.496 GB, free: 14.85 MB / 1.201 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002414/0.5638, allocations: 1.157 MB / 1.497 GB, free: 13.64 MB / 1.201 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.564, allocations: 119.3 kB / 1.498 GB, free: 13.53 MB / 1.201 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002437/0.5642, allocations: 160 kB / 1.498 GB, free: 13.37 MB / 1.201 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00519/0.5694, allocations: 2.063 MB / 1.5 GB, free: 11.25 MB / 1.201 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.072e-05/0.5694, allocations: 0 / 1.5 GB, free: 11.25 MB / 1.201 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002834/0.5697, allocations: 68 kB / 1.5 GB, free: 11.19 MB / 1.201 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.108e-05/0.5698, allocations: 40 kB / 1.5 GB, free: 11.15 MB / 1.201 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01003/0.5798, allocations: 2.448 MB / 1.502 GB, free: 8.695 MB / 1.201 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01652/0.5963, allocations: 5.935 MB / 1.508 GB, free: 2.52 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006883/0.6032, allocations: 1.628 MB / 1.51 GB, free: 0.8906 MB / 1.201 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003231/0.6064, allocations: 0.7244 MB / 1.51 GB, free: 172 kB / 1.201 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001049/0.6075, allocations: 491.1 kB / 1.511 GB, free: 15.59 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004003/0.6115, allocations: 1.079 MB / 1.512 GB, free: 14.5 MB / 1.217 GB Notification: Performance of pre-optimization done (n=139): time 5.731e-06/0.6115, allocations: 0 / 1.512 GB, free: 14.5 MB / 1.217 GB Notification: Performance of matching and sorting (n=139): time 0.01213/0.6236, allocations: 2.611 MB / 1.514 GB, free: 11.86 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001621/0.6238, allocations: 230.9 kB / 1.515 GB, free: 11.58 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001822/0.6256, allocations: 0.9733 MB / 1.516 GB, free: 10.59 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0002145/0.6258, allocations: 53.7 kB / 1.516 GB, free: 10.53 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006917/0.6265, allocations: 0.6734 MB / 1.516 GB, free: 9.848 MB / 1.217 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005791/0.6271, allocations: 468 kB / 1.517 GB, free: 9.387 MB / 1.217 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005654/0.6277, allocations: 250.8 kB / 1.517 GB, free: 9.137 MB / 1.217 GB Notification: Performance of setup shared object (initialization): time 0.000186/0.6278, allocations: 357.8 kB / 1.517 GB, free: 8.781 MB / 1.217 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/0.6299, allocations: 0.6701 MB / 1.518 GB, free: 8.109 MB / 1.217 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00235/0.6323, allocations: 0.8276 MB / 1.519 GB, free: 7.25 MB / 1.217 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004299/0.6366, allocations: 1.439 MB / 1.52 GB, free: 5.793 MB / 1.217 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.551e-06/0.6366, allocations: 3.938 kB / 1.52 GB, free: 5.789 MB / 1.217 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.005725/0.6423, allocations: 1.805 MB / 1.522 GB, free: 3.973 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.6423, allocations: 6.188 kB / 1.522 GB, free: 3.969 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.6424, allocations: 64 / 1.522 GB, free: 3.969 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006679/0.643, allocations: 92.7 kB / 1.522 GB, free: 3.875 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.6449, allocations: 331.5 kB / 1.522 GB, free: 3.551 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/0.6477, allocations: 1.658 MB / 1.524 GB, free: 1.746 MB / 1.217 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.6497, allocations: 203.1 kB / 1.524 GB, free: 1.547 MB / 1.217 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.6499, allocations: 55.95 kB / 1.524 GB, free: 1.492 MB / 1.217 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.001006/0.6509, allocations: 403.7 kB / 1.525 GB, free: 1.086 MB / 1.217 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004583/0.6514, allocations: 143.1 kB / 1.525 GB, free: 0.9453 MB / 1.217 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0069/0.6583, allocations: 2.219 MB / 1.527 GB, free: 14.71 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.6583, allocations: 16 kB / 1.527 GB, free: 14.7 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.6583, allocations: 3.938 kB / 1.527 GB, free: 14.69 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.6583, allocations: 7.969 kB / 1.527 GB, free: 14.68 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003199/0.6615, allocations: 1.825 MB / 1.529 GB, free: 12.82 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.196e-05/0.6616, allocations: 7.984 kB / 1.529 GB, free: 12.81 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001894/0.6634, allocations: 311.6 kB / 1.529 GB, free: 12.5 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004976/0.6639, allocations: 64.8 kB / 1.529 GB, free: 12.44 MB / 1.232 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/0.6641, allocations: 55.94 kB / 1.529 GB, free: 12.38 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.6665, allocations: 1.678 MB / 1.531 GB, free: 10.56 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.143e-06/0.6665, allocations: 0 / 1.531 GB, free: 10.56 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005775/0.6723, allocations: 1.938 MB / 1.533 GB, free: 8.594 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008786/0.6732, allocations: 455.6 kB / 1.533 GB, free: 8.129 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.6735, allocations: 31.98 kB / 1.533 GB, free: 8.098 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/0.6752, allocations: 139.8 kB / 1.533 GB, free: 7.961 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002671/0.6755, allocations: 121.1 kB / 1.533 GB, free: 7.844 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.6756, allocations: 63.95 kB / 1.533 GB, free: 7.781 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.001319/0.6769, allocations: 0.7032 MB / 1.534 GB, free: 7.07 MB / 1.232 GB Notification: Performance of sort global known variables: time 8e-08/0.6769, allocations: 0 / 1.534 GB, free: 7.07 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.001613/0.6786, allocations: 0.522 MB / 1.535 GB, free: 6.547 MB / 1.232 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.008288/0.6868, allocations: 3.039 MB / 1.538 GB, free: 3.656 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.005346/0.6922, allocations: 1.732 MB / 1.539 GB, free: 1.91 MB / 1.232 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.6922, allocations: 0 / 1.539 GB, free: 1.91 MB / 1.232 GB Notification: Performance of simCode: created simulation system equations: time 0.002856/0.6951, allocations: 0.9783 MB / 1.54 GB, free: 0.9219 MB / 1.232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002241/0.6973, allocations: 399.7 kB / 1.541 GB, free: 0.5547 MB / 1.232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02592/0.7232, allocations: 11.49 MB / 1.552 GB, free: 4.902 MB / 1.248 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.7243, allocations: 1.284 MB / 1.553 GB, free: 3.59 MB / 1.248 GB Notification: Performance of simCode: alias equations: time 0.001622/0.7259, allocations: 406.6 kB / 1.553 GB, free: 3.188 MB / 1.248 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/0.7271, allocations: 0.6945 MB / 1.554 GB, free: 2.492 MB / 1.248 GB Notification: Performance of SimCode: time 6.92e-07/0.7271, allocations: 0 / 1.554 GB, free: 2.492 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08246/0.8096, allocations: 36.13 MB / 1.589 GB, free: 14.71 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.05/14.86, allocations: 0 / 1.589 GB, free: 14.71 MB / 1.295 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: 21.272457828978077]