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.001326/0.001326, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001494/0.001494, allocations: 222.3 kB / 22.25 MB, free: 5.254 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.471/1.471, allocations: 230.6 MB / 256 MB, free: 7.809 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.135/3.135, allocations: 0.49 GB / 0.7951 GB, free: 35.57 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.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.001983/0.001983, allocations: 68.7 kB / 1.154 GB, free: 25.36 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3371/0.3391, allocations: 176.1 MB / 1.326 GB, free: 1.527 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004366/0.3435, allocations: 2.422 MB / 1.328 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003197/0.3467, allocations: 1.611 MB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002115/0.3469, allocations: 7.938 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0009755/0.3479, allocations: 318.7 kB / 1.33 GB, free: 13.16 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0006013/0.3485, allocations: 270.8 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004977/0.349, allocations: 204.1 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0005398/0.3495, allocations: 418.6 kB / 1.331 GB, free: 12.29 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.3497, allocations: 52.84 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000239/0.3499, allocations: 167.3 kB / 1.331 GB, free: 12.06 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.3502, allocations: 179.1 kB / 1.331 GB, free: 11.89 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 4.516e-05/0.3502, allocations: 20 kB / 1.331 GB, free: 11.87 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.3504, allocations: 83.94 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001718/0.3506, allocations: 139.4 kB / 1.332 GB, free: 11.65 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.000174/0.3508, allocations: 139 kB / 1.332 GB, free: 11.51 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006454/0.3514, allocations: 0.5249 MB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3514, allocations: 0 / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.292e-06/0.3514, allocations: 4 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.254e-06/0.3514, allocations: 0 / 1.332 GB, free: 10.98 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.001323/0.3528, allocations: 0.7813 MB / 1.333 GB, free: 10.16 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.13e-05/0.3528, allocations: 12.03 kB / 1.333 GB, free: 10.15 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.361e-05/0.3528, allocations: 38.73 kB / 1.333 GB, free: 10.1 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.353, allocations: 68.52 kB / 1.333 GB, free: 10.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005975/0.3536, allocations: 387.3 kB / 1.333 GB, free: 9.629 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.422e-05/0.3536, allocations: 15.94 kB / 1.333 GB, free: 9.613 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.403e-05/0.3536, allocations: 8 kB / 1.333 GB, free: 9.605 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003006/0.3539, allocations: 148.1 kB / 1.334 GB, free: 9.449 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.3539, allocations: 0 / 1.334 GB, free: 9.449 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.719e-05/0.3539, allocations: 7.938 kB / 1.334 GB, free: 9.441 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.3539, allocations: 7.984 kB / 1.334 GB, free: 9.434 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001792/0.3541, allocations: 75.89 kB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009287/0.3551, allocations: 0.5229 MB / 1.334 GB, free: 8.793 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.3554, allocations: 126.7 kB / 1.334 GB, free: 8.66 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.3555, allocations: 44.84 kB / 1.334 GB, free: 8.613 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.3555, allocations: 4 kB / 1.334 GB, free: 8.609 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002894/0.3558, allocations: 150 kB / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/0.3558, allocations: 0 / 1.335 GB, free: 8.445 MB / 1.029 GB Notification: Performance of matching and sorting (n=13): time 0.0005758/0.3564, allocations: 252.1 kB / 1.335 GB, free: 8.195 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.3565, allocations: 55.41 kB / 1.335 GB, free: 8.129 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000899/0.3573, allocations: 0.7073 MB / 1.336 GB, free: 7.41 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.3574, allocations: 29.7 kB / 1.336 GB, free: 7.375 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002442/0.3576, allocations: 272.4 kB / 1.336 GB, free: 7.102 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.37e-05/0.3577, allocations: 35.73 kB / 1.336 GB, free: 7.066 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-05/0.3578, allocations: 53.7 kB / 1.336 GB, free: 7.008 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002092/0.358, allocations: 370.8 kB / 1.336 GB, free: 6.637 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001646/0.3581, allocations: 75.97 kB / 1.336 GB, free: 6.562 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.3584, allocations: 171.7 kB / 1.336 GB, free: 6.367 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002802/0.3587, allocations: 145.7 kB / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3587, allocations: 0 / 1.337 GB, free: 6.219 MB / 1.029 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004873/0.3591, allocations: 281 kB / 1.337 GB, free: 5.938 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.3592, allocations: 8 kB / 1.337 GB, free: 5.93 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.3592, allocations: 3.938 kB / 1.337 GB, free: 5.926 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3592, allocations: 3.984 kB / 1.337 GB, free: 5.922 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001639/0.3594, allocations: 40.02 kB / 1.337 GB, free: 5.883 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.3594, allocations: 4 kB / 1.337 GB, free: 5.879 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001626/0.3595, allocations: 23.88 kB / 1.337 GB, free: 5.855 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.3595, allocations: 8 kB / 1.337 GB, free: 5.848 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.0002367/0.3598, allocations: 218.2 kB / 1.337 GB, free: 5.625 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.525e-05/0.3599, allocations: 59.56 kB / 1.337 GB, free: 5.566 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004531/0.3603, allocations: 221.6 kB / 1.337 GB, free: 5.344 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/0.3603, allocations: 8 kB / 1.337 GB, free: 5.336 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.3603, allocations: 0 / 1.337 GB, free: 5.336 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3603, allocations: 3.984 kB / 1.337 GB, free: 5.332 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.3607, allocations: 328.5 kB / 1.338 GB, free: 4.969 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.3607, allocations: 0 / 1.338 GB, free: 4.969 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.342e-05/0.3608, allocations: 15.88 kB / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.3608, allocations: 0 / 1.338 GB, free: 4.953 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.055e-05/0.3608, allocations: 11.98 kB / 1.338 GB, free: 4.941 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3608, allocations: 0 / 1.338 GB, free: 4.941 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.3608, allocations: 4 kB / 1.338 GB, free: 4.938 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003987/0.3612, allocations: 236.6 kB / 1.338 GB, free: 4.688 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.3613, allocations: 59.5 kB / 1.338 GB, free: 4.629 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.801e-05/0.3614, allocations: 11.98 kB / 1.338 GB, free: 4.617 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001227/0.3615, allocations: 11.98 kB / 1.338 GB, free: 4.605 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.852e-05/0.3615, allocations: 15.97 kB / 1.338 GB, free: 4.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.053e-05/0.3616, allocations: 8 kB / 1.338 GB, free: 4.582 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005711/0.3621, allocations: 483 kB / 1.339 GB, free: 4.117 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3621, allocations: 3.938 kB / 1.339 GB, free: 4.113 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003268/0.3625, allocations: 71.88 kB / 1.339 GB, free: 4.043 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 (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.002372/0.3648, allocations: 1.139 MB / 1.34 GB, free: 3.062 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.00039/0.3652, allocations: 162 kB / 1.34 GB, free: 2.906 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3652, allocations: 0 / 1.34 GB, free: 2.906 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001434/0.3654, allocations: 55.92 kB / 1.34 GB, free: 2.852 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000527/0.3659, allocations: 93.14 kB / 1.34 GB, free: 2.766 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005213/0.3711, allocations: 3.995 MB / 1.344 GB, free: 14.68 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.3714, allocations: 270.7 kB / 1.344 GB, free: 14.39 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001452/0.3716, allocations: 46.95 kB / 1.344 GB, free: 14.34 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002442/0.3718, allocations: 175.4 kB / 1.344 GB, free: 14.17 MB / 1.045 GB Notification: Performance of SimCode: time 7.61e-07/0.3718, allocations: 0 / 1.344 GB, free: 14.17 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04321/0.415, allocations: 10.95 MB / 1.355 GB, free: 3.336 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.53/11.95, allocations: 1.625 kB / 1.355 GB, free: 3.336 MB / 1.045 GB " [Timeout remaining time 288] (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: 18.61569797300035]