Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001362/0.001362, 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.001831/0.001831, allocations: 221.7 kB / 22.26 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.587/1.587, allocations: 230.6 MB / 256 MB, free: 7.953 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.308/3.308, allocations: 0.49 GB / 0.7951 GB, free: 33.46 MB / 0.6231 GB " [Timeout remaining time 176] 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.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_12_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.002094/0.002094, allocations: 72.28 kB / 1.154 GB, free: 25.65 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3462/0.3483, allocations: 176.1 MB / 1.326 GB, free: 1.871 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.00421/0.3525, allocations: 2.526 MB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00293/0.3554, allocations: 1.749 MB / 1.33 GB, free: 13.58 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002091/0.3556, allocations: 11.94 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.001117/0.3567, allocations: 329.2 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0007116/0.3575, allocations: 258.9 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006478/0.3581, allocations: 215.4 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0006234/0.3587, allocations: 414.7 kB / 1.331 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001921/0.3589, allocations: 44.84 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003942/0.3593, allocations: 183.2 kB / 1.331 GB, free: 12.15 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002875/0.3596, allocations: 179.2 kB / 1.332 GB, free: 11.97 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.78e-05/0.3597, allocations: 20 kB / 1.332 GB, free: 11.95 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002233/0.3599, allocations: 79.94 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.36, allocations: 139.4 kB / 1.332 GB, free: 11.74 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.3602, allocations: 194.6 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006269/0.3608, allocations: 0.5132 MB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.3608, allocations: 0 / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.342e-06/0.3608, allocations: 0 / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.213e-06/0.3608, allocations: 0 / 1.333 GB, free: 11.03 MB / 1.029 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.00127/0.3621, allocations: 0.7969 MB / 1.333 GB, free: 10.2 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.766e-05/0.3622, allocations: 8.031 kB / 1.333 GB, free: 10.19 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.754e-05/0.3622, allocations: 42.73 kB / 1.333 GB, free: 10.14 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.3623, allocations: 72.5 kB / 1.333 GB, free: 10.07 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006396/0.363, allocations: 379.4 kB / 1.334 GB, free: 9.668 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.685e-05/0.363, allocations: 11.98 kB / 1.334 GB, free: 9.656 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.363, allocations: 12 kB / 1.334 GB, free: 9.645 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003191/0.3634, allocations: 145.1 kB / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3634, allocations: 0 / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.536e-05/0.3634, allocations: 0 / 1.334 GB, free: 9.492 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.3634, allocations: 11.94 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.3636, allocations: 63.97 kB / 1.334 GB, free: 9.418 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009603/0.3645, allocations: 0.5501 MB / 1.335 GB, free: 8.824 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000312/0.3648, allocations: 122.7 kB / 1.335 GB, free: 8.695 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.3649, allocations: 44.83 kB / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.365, allocations: 0 / 1.335 GB, free: 8.648 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002405/0.3652, allocations: 115.5 kB / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of pre-optimization done (n=13): time 1.342e-06/0.3652, allocations: 0 / 1.335 GB, free: 8.523 MB / 1.029 GB Notification: Performance of matching and sorting (n=13): time 0.0005276/0.3657, allocations: 248.1 kB / 1.335 GB, free: 8.277 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.412e-05/0.3658, allocations: 77.11 kB / 1.335 GB, free: 8.184 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008192/0.3666, allocations: 0.7033 MB / 1.336 GB, free: 7.469 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.3667, allocations: 41.62 kB / 1.336 GB, free: 7.422 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002494/0.3669, allocations: 268.4 kB / 1.336 GB, free: 7.152 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.029e-05/0.367, allocations: 35.73 kB / 1.336 GB, free: 7.117 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.66e-05/0.367, allocations: 57.69 kB / 1.336 GB, free: 7.055 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001864/0.3672, allocations: 366.8 kB / 1.337 GB, free: 6.688 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001567/0.3674, allocations: 79.95 kB / 1.337 GB, free: 6.609 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000191/0.3676, allocations: 125.1 kB / 1.337 GB, free: 6.469 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000254/0.3678, allocations: 136.3 kB / 1.337 GB, free: 6.328 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.3678, allocations: 4 kB / 1.337 GB, free: 6.324 MB / 1.029 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004495/0.3683, allocations: 275 kB / 1.337 GB, free: 6.051 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.3683, allocations: 5.719 kB / 1.337 GB, free: 6.047 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.3683, allocations: 0 / 1.337 GB, free: 6.047 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.3683, allocations: 4 kB / 1.337 GB, free: 6.043 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000162/0.3685, allocations: 39.92 kB / 1.337 GB, free: 6.004 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.3685, allocations: 0 / 1.337 GB, free: 6.004 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.3686, allocations: 27.88 kB / 1.337 GB, free: 5.977 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.3687, allocations: 12.05 kB / 1.337 GB, free: 5.965 MB / 1.029 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.0002262/0.3689, allocations: 212.1 kB / 1.337 GB, free: 5.75 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.451e-05/0.369, allocations: 63.56 kB / 1.338 GB, free: 5.688 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004063/0.3694, allocations: 202.8 kB / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.3694, allocations: 0 / 1.338 GB, free: 5.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3694, allocations: 4 kB / 1.338 GB, free: 5.477 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.3694, allocations: 3.984 kB / 1.338 GB, free: 5.473 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003743/0.3698, allocations: 348.4 kB / 1.338 GB, free: 5.09 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3698, allocations: 8.047 kB / 1.338 GB, free: 5.082 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.814e-05/0.3698, allocations: 7.984 kB / 1.338 GB, free: 5.074 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3698, allocations: 0 / 1.338 GB, free: 5.074 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.3698, allocations: 7.984 kB / 1.338 GB, free: 5.066 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.3698, allocations: 0 / 1.338 GB, free: 5.066 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3698, allocations: 0 / 1.338 GB, free: 5.066 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003695/0.3702, allocations: 232.6 kB / 1.338 GB, free: 4.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 9.789e-05/0.3703, allocations: 59.56 kB / 1.338 GB, free: 4.762 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.403e-05/0.3703, allocations: 4 kB / 1.338 GB, free: 4.758 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.3705, allocations: 11.98 kB / 1.338 GB, free: 4.746 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.88e-05/0.3705, allocations: 19.97 kB / 1.338 GB, free: 4.727 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.3705, allocations: 4 kB / 1.338 GB, free: 4.723 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005667/0.3711, allocations: 483 kB / 1.339 GB, free: 4.258 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3711, allocations: 0 / 1.339 GB, free: 4.258 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000308/0.3714, allocations: 67.89 kB / 1.339 GB, free: 4.191 MB / 1.029 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 (13): * Single equations (assignments): 9 * 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.00214/0.3736, allocations: 1.107 MB / 1.34 GB, free: 3.219 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.3739, allocations: 139.9 kB / 1.34 GB, free: 3.082 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3739, allocations: 0 / 1.34 GB, free: 3.082 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001317/0.374, allocations: 60.03 kB / 1.34 GB, free: 3.023 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.3745, allocations: 90.88 kB / 1.34 GB, free: 2.938 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005114/0.3797, allocations: 3.958 MB / 1.344 GB, free: 14.89 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005034/0.3802, allocations: 0.865 MB / 1.345 GB, free: 14 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.000142/0.3803, allocations: 54.94 kB / 1.345 GB, free: 13.94 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002328/0.3805, allocations: 171.4 kB / 1.345 GB, free: 13.77 MB / 1.045 GB Notification: Performance of SimCode: time 8.02e-07/0.3805, allocations: 0 / 1.345 GB, free: 13.77 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03994/0.4205, allocations: 10.21 MB / 1.355 GB, free: 3.684 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.4, allocations: 6.031 kB / 1.355 GB, free: 3.68 MB / 1.045 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --stepSize=0.36 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 19.439000051934272]