Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0013/0.0013, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001503/0.001503, allocations: 192.7 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.335/2.335, allocations: 390.2 MB / 0.6647 GB, free: 444 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.91 kB / 0.8127 GB, free: 14.38 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6513/0.6528, allocations: 140.4 MB / 0.9497 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003067/0.6559, allocations: 2.456 MB / 0.9521 GB, free: 7.203 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.6576, allocations: 1.573 MB / 0.9537 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.6577, allocations: 7.25 kB / 0.9537 GB, free: 5.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007022/0.6584, allocations: 323.4 kB / 0.954 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0003286/0.6588, allocations: 217.2 kB / 0.9542 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004875/0.6593, allocations: 268.1 kB / 0.9544 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003271/0.6596, allocations: 385.4 kB / 0.9548 GB, free: 5.211 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.6597, allocations: 75.22 kB / 0.9549 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.6599, allocations: 152.3 kB / 0.955 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.6601, allocations: 169.1 kB / 0.9552 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.517e-05/0.6601, allocations: 18.06 kB / 0.9552 GB, free: 4.988 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.6603, allocations: 72.62 kB / 0.9553 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.6604, allocations: 133.2 kB / 0.9554 GB, free: 4.883 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001326/0.6606, allocations: 194.5 kB / 0.9556 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003763/0.6609, allocations: 496.1 kB / 0.956 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.6609, allocations: 0 / 0.956 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.203e-06/0.661, allocations: 0 / 0.956 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.112e-05/0.661, allocations: 1.156 kB / 0.956 GB, free: 4.383 MB / 0.7169 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.0008567/0.6618, allocations: 0.8281 MB / 0.9569 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.6619, allocations: 9.625 kB / 0.9569 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.279e-05/0.6619, allocations: 45.48 kB / 0.9569 GB, free: 3.59 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.984e-05/0.662, allocations: 63.69 kB / 0.957 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004015/0.6624, allocations: 443.8 kB / 0.9574 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.6624, allocations: 4 kB / 0.9574 GB, free: 3.168 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.345e-05/0.6625, allocations: 11.78 kB / 0.9574 GB, free: 3.164 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002463/0.6627, allocations: 137.5 kB / 0.9575 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.6627, allocations: 1.344 kB / 0.9575 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.6628, allocations: 0.9062 kB / 0.9575 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.721e-06/0.6628, allocations: 11 kB / 0.9576 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001591/0.6629, allocations: 70.39 kB / 0.9576 GB, free: 3.02 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000721/0.6637, allocations: 0.5638 MB / 0.9582 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.6639, allocations: 136.4 kB / 0.9583 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.295e-05/0.664, allocations: 54.58 kB / 0.9584 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.6641, allocations: 6.297 kB / 0.9584 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001996/0.6643, allocations: 117.7 kB / 0.9585 GB, free: 2.316 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=13): time 1.392e-06/0.6643, allocations: 4 kB / 0.9585 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13): time 0.000474/0.6648, allocations: 229.8 kB / 0.9587 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.6648, allocations: 79.05 kB / 0.9588 GB, free: 2.094 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006623/0.6655, allocations: 0.6889 MB / 0.9594 GB, free: 1.711 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.985e-05/0.6655, allocations: 32.77 kB / 0.9595 GB, free: 1.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001484/0.6657, allocations: 260.2 kB / 0.9597 GB, free: 1.449 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.976e-05/0.6657, allocations: 33.08 kB / 0.9598 GB, free: 1.422 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.498e-05/0.6658, allocations: 60.31 kB / 0.9598 GB, free: 1.379 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.317e-05/0.6659, allocations: 371 kB / 0.9602 GB, free: 1.023 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.666, allocations: 67.69 kB / 0.9602 GB, free: 0.9961 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001704/0.6662, allocations: 132 kB / 0.9604 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.6664, allocations: 132.8 kB / 0.9605 GB, free: 0.8242 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.6664, allocations: 3.984 kB / 0.9605 GB, free: 0.8203 MB / 0.7169 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000411/0.6669, allocations: 267.1 kB / 0.9607 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.6669, allocations: 4.438 kB / 0.9607 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.6669, allocations: 0.9688 kB / 0.9607 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.6669, allocations: 2.062 kB / 0.9607 GB, free: 0.6836 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.6671, allocations: 35.17 kB / 0.9608 GB, free: 0.6758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.773e-06/0.6671, allocations: 5.156 kB / 0.9608 GB, free: 0.6719 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.6672, allocations: 25.7 kB / 0.9608 GB, free: 0.6562 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.371e-05/0.6673, allocations: 11.09 kB / 0.9608 GB, free: 0.6523 MB / 0.7169 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.000183/0.6675, allocations: 210.5 kB / 0.961 GB, free: 500 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.292e-05/0.6675, allocations: 60.38 kB / 0.9611 GB, free: 464 kB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.74e-05/0.6676, allocations: 65.66 kB / 0.9611 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.6676, allocations: 0.9688 kB / 0.9611 GB, free: 412 kB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.6676, allocations: 4.844 kB / 0.9611 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.6677, allocations: 0 / 0.9611 GB, free: 408 kB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.6679, allocations: 370.9 kB / 0.9615 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.6679, allocations: 0 / 0.9615 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.41e-05/0.668, allocations: 6.75 kB / 0.9615 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.668, allocations: 0 / 0.9615 GB, free: 76 kB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.668, allocations: 6.453 kB / 0.9615 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.668, allocations: 1.156 kB / 0.9615 GB, free: 72 kB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.668, allocations: 4 kB / 0.9615 GB, free: 68 kB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003465/0.6684, allocations: 236.5 kB / 0.9617 GB, free: 15.91 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.158e-05/0.6685, allocations: 128.2 kB / 0.9619 GB, free: 15.78 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.242e-05/0.6685, allocations: 6.5 kB / 0.9619 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001221/0.6686, allocations: 10.64 kB / 0.9619 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.589e-05/0.6687, allocations: 18.84 kB / 0.9619 GB, free: 15.76 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.6687, allocations: 10.03 kB / 0.9619 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004698/0.6692, allocations: 465.3 kB / 0.9624 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6692, allocations: 0 / 0.9624 GB, free: 15.5 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002987/0.6695, allocations: 71.16 kB / 0.9624 GB, free: 15.48 MB / 0.7325 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 (runSig.combiTimeTable.nextTimeEventScaled,mWat_flow.tab.nextTimeEventScaled,assWatMas.hys.y,mWat_flow.tab.nextTimeEvent,runSig.combiTimeTable.nextTimeEvent) * 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.001421/0.6709, allocations: 1.081 MB / 0.9635 GB, free: 14.69 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003738/0.6713, allocations: 158.5 kB / 0.9636 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6713, allocations: 5.25 kB / 0.9636 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001283/0.6715, allocations: 60.31 kB / 0.9637 GB, free: 14.59 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.672, allocations: 92.12 kB / 0.9638 GB, free: 14.55 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/0.6765, allocations: 4.003 MB / 0.9677 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.6769, allocations: 0.8679 MB / 0.9685 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001468/0.677, allocations: 50.53 kB / 0.9686 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001906/0.6772, allocations: 169.9 kB / 0.9687 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of SimCode: time 4.61e-07/0.6773, allocations: 0 / 0.9687 GB, free: 10.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3747/1.052, allocations: 9.66 MB / 0.9782 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.855/8.907, allocations: 9.219 kB / 0.9782 GB, free: 4.508 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches