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.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 104 kB / 15.6 MB, free: 148 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.001234/0.001234, allocations: 192.1 kB / 16.53 MB, free: 6.625 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.328/1.328, allocations: 222.9 MB / 240.2 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.674/2.674, allocations: 469.4 MB / 0.742 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 64.05 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2533/0.2546, allocations: 159.1 MB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004156/0.2588, allocations: 2.467 MB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002617/0.2614, allocations: 1.56 MB / 1.068 GB, free: 10.5 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000234/0.2617, allocations: 4 kB / 1.068 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009747/0.2627, allocations: 327.2 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005324/0.2632, allocations: 211.1 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007505/0.264, allocations: 276.4 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005368/0.2645, allocations: 390.8 kB / 1.069 GB, free: 9.316 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001867/0.2647, allocations: 68.92 kB / 1.069 GB, free: 9.246 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002566/0.265, allocations: 159.3 kB / 1.069 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002474/0.2653, allocations: 167.2 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.22e-05/0.2653, allocations: 16 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002258/0.2656, allocations: 71.97 kB / 1.069 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.2657, allocations: 135.4 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001869/0.2659, allocations: 186.7 kB / 1.07 GB, free: 8.523 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005792/0.2665, allocations: 498.1 kB / 1.07 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.2665, allocations: 4 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2665, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.54e-05/0.2665, allocations: 0 / 1.07 GB, free: 8.031 MB / 0.8262 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.001368/0.2679, allocations: 0.8374 MB / 1.071 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.268, allocations: 12.03 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.53e-05/0.268, allocations: 38.75 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.2681, allocations: 52.28 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005526/0.2687, allocations: 440.5 kB / 1.071 GB, free: 6.559 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.86e-05/0.2687, allocations: 8 kB / 1.071 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.2687, allocations: 12 kB / 1.071 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.269, allocations: 140.6 kB / 1.071 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.067e-06/0.2691, allocations: 0 / 1.071 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.972e-05/0.2691, allocations: 7.938 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.2691, allocations: 15.86 kB / 1.072 GB, free: 6.367 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001858/0.2693, allocations: 67.95 kB / 1.072 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009004/0.2702, allocations: 0.5744 MB / 1.072 GB, free: 5.676 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003452/0.2706, allocations: 126.7 kB / 1.072 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.2707, allocations: 40.84 kB / 1.072 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.393e-05/0.2707, allocations: 15.92 kB / 1.072 GB, free: 5.484 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002333/0.271, allocations: 103.5 kB / 1.072 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.552e-06/0.271, allocations: 0 / 1.072 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005356/0.2715, allocations: 236.8 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.2716, allocations: 85.09 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007487/0.2723, allocations: 0.6721 MB / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.689e-05/0.2724, allocations: 41.64 kB / 1.073 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.2726, allocations: 268.2 kB / 1.074 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.473e-05/0.2726, allocations: 39.53 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.642e-05/0.2727, allocations: 53.7 kB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001561/0.2729, allocations: 370.8 kB / 1.074 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.2731, allocations: 71.97 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.2733, allocations: 126.8 kB / 1.074 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002751/0.2735, allocations: 140.9 kB / 1.074 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2736, allocations: 0 / 1.074 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004749/0.274, allocations: 275.2 kB / 1.075 GB, free: 2.941 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.2741, allocations: 8.062 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.2741, allocations: 3.938 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.099e-05/0.2741, allocations: 4 kB / 1.075 GB, free: 2.926 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.2743, allocations: 31.98 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.051e-05/0.2743, allocations: 0 / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001914/0.2745, allocations: 27.83 kB / 1.075 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.2745, allocations: 4 kB / 1.075 GB, free: 2.863 MB / 0.8262 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.0002348/0.2748, allocations: 215.5 kB / 1.075 GB, free: 2.645 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.328e-05/0.2749, allocations: 55.28 kB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.921e-05/0.275, allocations: 57.05 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.809e-06/0.275, allocations: 4 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.275, allocations: 0 / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.51e-06/0.275, allocations: 3.984 kB / 1.075 GB, free: 2.523 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003544/0.2754, allocations: 373.2 kB / 1.075 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.2754, allocations: 0 / 1.075 GB, free: 2.109 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-05/0.2754, allocations: 15.94 kB / 1.075 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.2754, allocations: 0 / 1.075 GB, free: 2.094 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.477e-05/0.2754, allocations: 4 kB / 1.075 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.2755, allocations: 4 kB / 1.075 GB, free: 2.086 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.2755, allocations: 3.984 kB / 1.075 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003853/0.2759, allocations: 219 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.276, allocations: 132.4 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.657e-05/0.2761, allocations: 7.938 kB / 1.076 GB, free: 1.695 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001289/0.2762, allocations: 11.98 kB / 1.076 GB, free: 1.684 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.2763, allocations: 19.98 kB / 1.076 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.672e-05/0.2763, allocations: 7.984 kB / 1.076 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0005223/0.2768, allocations: 467 kB / 1.076 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.734e-06/0.2768, allocations: 4 kB / 1.076 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003232/0.2772, allocations: 67.78 kB / 1.076 GB, free: 1.133 MB / 0.8262 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.00157/0.2787, allocations: 1.081 MB / 1.077 GB, free: 188 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003915/0.2791, allocations: 163.8 kB / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.257e-06/0.2792, allocations: 0 / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.2793, allocations: 63.98 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005274/0.2799, allocations: 89.27 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.2848, allocations: 4.002 MB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.2853, allocations: 0.865 MB / 1.082 GB, free: 10.88 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001681/0.2854, allocations: 46.95 kB / 1.083 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002225/0.2857, allocations: 163.4 kB / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of SimCode: time 1.052e-06/0.2857, allocations: 0 / 1.083 GB, free: 10.68 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.3161, allocations: 9.677 MB / 1.092 GB, free: 1.168 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/7.913, allocations: 2.594 kB / 1.092 GB, free: 1.168 MB / 0.8419 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv --start-time 0 --stop-time 900 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.36 Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/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) Reference file matches