Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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.001349/0.001349, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.001579/0.001579, allocations: 217.1 kB / 22.25 MB, free: 5.246 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.485/1.485, allocations: 230.6 MB / 256 MB, free: 7.777 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.349/3.349, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 176] 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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",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.002386/0.002386, allocations: 72.95 kB / 1.186 GB, free: 13.71 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3461/0.3485, allocations: 181.9 MB / 1.363 GB, free: 14.04 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004218/0.3527, allocations: 2.414 MB / 1.366 GB, free: 11.6 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.002914/0.3556, allocations: 1.619 MB / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001445/0.3557, allocations: 0 / 1.367 GB, free: 9.977 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0009131/0.3567, allocations: 322.7 kB / 1.368 GB, free: 9.66 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0005746/0.3572, allocations: 278 kB / 1.368 GB, free: 9.391 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004814/0.3577, allocations: 203.5 kB / 1.368 GB, free: 9.191 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0004814/0.3582, allocations: 414.6 kB / 1.368 GB, free: 8.785 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.3583, allocations: 48.83 kB / 1.369 GB, free: 8.73 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.3586, allocations: 171.3 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.3588, allocations: 179.1 kB / 1.369 GB, free: 8.387 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 5.07e-05/0.3589, allocations: 20 kB / 1.369 GB, free: 8.367 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.359, allocations: 87.88 kB / 1.369 GB, free: 8.281 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001527/0.3592, allocations: 127.5 kB / 1.369 GB, free: 8.156 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001642/0.3594, allocations: 146.8 kB / 1.369 GB, free: 8.012 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0006416/0.36, allocations: 0.5133 MB / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.36, allocations: 0 / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.864e-06/0.36, allocations: 0 / 1.37 GB, free: 7.496 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.494e-06/0.36, allocations: 3.938 kB / 1.37 GB, free: 7.492 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001381/0.3614, allocations: 0.7892 MB / 1.371 GB, free: 6.664 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.3614, allocations: 8.031 kB / 1.371 GB, free: 6.656 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.585e-05/0.3615, allocations: 38.75 kB / 1.371 GB, free: 6.609 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.3616, allocations: 64.55 kB / 1.371 GB, free: 6.547 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006311/0.3622, allocations: 391.2 kB / 1.371 GB, free: 6.137 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.3623, allocations: 11.94 kB / 1.371 GB, free: 6.125 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.819e-05/0.3623, allocations: 15.98 kB / 1.371 GB, free: 6.109 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003182/0.3626, allocations: 148.3 kB / 1.371 GB, free: 5.953 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3626, allocations: 0 / 1.371 GB, free: 5.953 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.3626, allocations: 4 kB / 1.371 GB, free: 5.949 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3626, allocations: 4 kB / 1.371 GB, free: 5.945 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002022/0.3628, allocations: 83.77 kB / 1.371 GB, free: 5.863 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009642/0.3638, allocations: 0.5151 MB / 1.372 GB, free: 5.305 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003308/0.3641, allocations: 118.8 kB / 1.372 GB, free: 5.18 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001214/0.3643, allocations: 56.81 kB / 1.372 GB, free: 5.121 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.3643, allocations: 0 / 1.372 GB, free: 5.121 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002776/0.3646, allocations: 145 kB / 1.372 GB, free: 4.961 MB / 1.061 GB Notification: Performance of pre-optimization done (n=13): time 1.473e-06/0.3646, allocations: 0 / 1.372 GB, free: 4.961 MB / 1.061 GB Notification: Performance of matching and sorting (n=13): time 0.0005694/0.3651, allocations: 251.7 kB / 1.372 GB, free: 4.711 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.3652, allocations: 59.39 kB / 1.372 GB, free: 4.641 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000859/0.366, allocations: 0.6956 MB / 1.373 GB, free: 3.938 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 3.186e-05/0.3661, allocations: 33.7 kB / 1.373 GB, free: 3.898 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002464/0.3663, allocations: 268.4 kB / 1.373 GB, free: 3.633 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 5.342e-05/0.3664, allocations: 43.73 kB / 1.373 GB, free: 3.59 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3665, allocations: 61.58 kB / 1.373 GB, free: 3.523 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0002079/0.3667, allocations: 370.8 kB / 1.374 GB, free: 3.152 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001757/0.3669, allocations: 79.95 kB / 1.374 GB, free: 3.074 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.3671, allocations: 164.8 kB / 1.374 GB, free: 2.887 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.3674, allocations: 142.6 kB / 1.374 GB, free: 2.742 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3674, allocations: 3.938 kB / 1.374 GB, free: 2.738 MB / 1.061 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004919/0.3679, allocations: 289.1 kB / 1.374 GB, free: 2.449 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.3679, allocations: 4 kB / 1.374 GB, free: 2.445 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3679, allocations: 4 kB / 1.374 GB, free: 2.441 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.3679, allocations: 0 / 1.374 GB, free: 2.441 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.3681, allocations: 31.98 kB / 1.374 GB, free: 2.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3681, allocations: 3.984 kB / 1.374 GB, free: 2.406 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.3682, allocations: 31.88 kB / 1.375 GB, free: 2.375 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.3683, allocations: 8 kB / 1.375 GB, free: 2.367 MB / 1.061 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.runSig.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.mWat_flow.tab.nextTimeEvent,$whenCondition1,runSig.combiTimeTable.nextTimeEventScaled,$PRE.runSig.combiTimeTable.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEvent,runSig.y,mWat_flow.tab.nextTimeEventScaled,$PRE.mWat_flow.tab.nextTimeEventScaled,mWat_flow.tab.nextTimeEvent,assWatMas.hys.y,$PRE.assWatMas.hys.y,assWatMas.assMes.u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002471/0.3685, allocations: 217.7 kB / 1.375 GB, free: 2.148 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.789e-05/0.3686, allocations: 71.5 kB / 1.375 GB, free: 2.078 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000443/0.369, allocations: 221 kB / 1.375 GB, free: 1.855 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.369, allocations: 0 / 1.375 GB, free: 1.855 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.369, allocations: 0 / 1.375 GB, free: 1.855 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.369, allocations: 4 kB / 1.375 GB, free: 1.852 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003672/0.3694, allocations: 320.6 kB / 1.375 GB, free: 1.496 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.3694, allocations: 0 / 1.375 GB, free: 1.496 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.197e-05/0.3695, allocations: 11.94 kB / 1.375 GB, free: 1.484 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.571e-06/0.3695, allocations: 11.98 kB / 1.375 GB, free: 1.473 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.3695, allocations: 4 kB / 1.375 GB, free: 1.469 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.3695, allocations: 0 / 1.375 GB, free: 1.469 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.3695, allocations: 3.938 kB / 1.375 GB, free: 1.465 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004025/0.3699, allocations: 244.5 kB / 1.376 GB, free: 1.207 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.37, allocations: 63.48 kB / 1.376 GB, free: 1.145 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.455e-05/0.3701, allocations: 4 kB / 1.376 GB, free: 1.141 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.3702, allocations: 15.98 kB / 1.376 GB, free: 1.125 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.69e-05/0.3702, allocations: 19.97 kB / 1.376 GB, free: 1.105 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.514e-05/0.3702, allocations: 4 kB / 1.376 GB, free: 1.102 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0005989/0.3708, allocations: 487 kB / 1.376 GB, free: 0.6328 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.11e-07/0.3708, allocations: 4 kB / 1.376 GB, free: 0.6289 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003181/0.3712, allocations: 67.89 kB / 1.376 GB, free: 0.5625 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,assWatMas.assMes.u,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.y,runSig.combiTimeTable.nextTimeEvent,runSig.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent,mWat_flow.tab.nextTimeEventScaled,runSig.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002351/0.3735, allocations: 1.136 MB / 1.377 GB, free: 15.58 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003863/0.3739, allocations: 151.8 kB / 1.377 GB, free: 15.43 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 4.389e-06/0.3739, allocations: 4.125 kB / 1.377 GB, free: 15.43 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.0001429/0.3741, allocations: 59.91 kB / 1.378 GB, free: 15.37 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.3745, allocations: 94.94 kB / 1.378 GB, free: 15.29 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005367/0.3799, allocations: 3.995 MB / 1.382 GB, free: 11.19 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.3802, allocations: 270.7 kB / 1.382 GB, free: 10.9 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0001419/0.3804, allocations: 50.94 kB / 1.382 GB, free: 10.86 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002516/0.3806, allocations: 171.4 kB / 1.382 GB, free: 10.69 MB / 1.076 GB Notification: Performance of SimCode: time 7.41e-07/0.3806, allocations: 3.938 kB / 1.382 GB, free: 10.68 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04071/0.4213, allocations: 10.91 MB / 1.393 GB, free: 15.89 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.04, allocations: 13.42 kB / 1.393 GB, free: 15.88 MB / 1.092 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.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: 18.96125388192013]