Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_10_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.001639/0.001639, allocations: 108 kB / 15.6 MB, free: 132 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.001943/0.001943, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.581/2.581, allocations: 437 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001311/0.001311, allocations: 67.89 kB / 0.8694 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5291/0.5305, allocations: 151.6 MB / 1.017 GB, free: 2.523 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004046/0.5345, allocations: 2.465 MB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002366/0.5369, allocations: 1.584 MB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.5371, allocations: 3.938 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009008/0.538, allocations: 318.8 kB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004101/0.5384, allocations: 207.1 kB / 1.022 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006578/0.5391, allocations: 274.8 kB / 1.022 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004112/0.5395, allocations: 386.8 kB / 1.023 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.5397, allocations: 62.95 kB / 1.023 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.5399, allocations: 163.3 kB / 1.023 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002134/0.5402, allocations: 167.2 kB / 1.023 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.5402, allocations: 19.94 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001824/0.5404, allocations: 75.91 kB / 1.023 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001428/0.5406, allocations: 135.5 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.5407, allocations: 190.6 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004829/0.5412, allocations: 498.1 kB / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.5412, allocations: 0 / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.102e-06/0.5412, allocations: 0 / 1.024 GB, free: 12 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.633e-06/0.5413, allocations: 0 / 1.024 GB, free: 12 MB / 0.7794 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.001123/0.5424, allocations: 0.8337 MB / 1.025 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.5424, allocations: 12.03 kB / 1.025 GB, free: 11.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.5425, allocations: 38.73 kB / 1.025 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.785e-05/0.5426, allocations: 64.12 kB / 1.025 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.5431, allocations: 436.6 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.5431, allocations: 8 kB / 1.025 GB, free: 10.51 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.21e-05/0.5431, allocations: 8 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.5434, allocations: 146.3 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.305e-06/0.5434, allocations: 3.938 kB / 1.025 GB, free: 10.35 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.5435, allocations: 8 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.692e-06/0.5435, allocations: 3.938 kB / 1.025 GB, free: 10.34 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.5437, allocations: 67.95 kB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008262/0.5445, allocations: 0.5744 MB / 1.026 GB, free: 9.645 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003149/0.5448, allocations: 126.7 kB / 1.026 GB, free: 9.512 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.5449, allocations: 52.81 kB / 1.026 GB, free: 9.457 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.545, allocations: 4 kB / 1.026 GB, free: 9.453 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002251/0.5452, allocations: 107.5 kB / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.5452, allocations: 0 / 1.026 GB, free: 9.336 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13): time 0.0005169/0.5457, allocations: 238.1 kB / 1.026 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.5458, allocations: 81.11 kB / 1.026 GB, free: 9 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007158/0.5465, allocations: 0.6876 MB / 1.027 GB, free: 8.305 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.75e-05/0.5466, allocations: 33.7 kB / 1.027 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.5468, allocations: 260.3 kB / 1.027 GB, free: 8.008 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.812e-05/0.5468, allocations: 39.53 kB / 1.027 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.031e-05/0.5469, allocations: 57.69 kB / 1.028 GB, free: 7.906 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5471, allocations: 366.8 kB / 1.028 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001525/0.5472, allocations: 71.97 kB / 1.028 GB, free: 7.469 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.5474, allocations: 125.1 kB / 1.028 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.5476, allocations: 138.3 kB / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.5477, allocations: 0 / 1.028 GB, free: 7.184 MB / 0.7794 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004483/0.5481, allocations: 275 kB / 1.028 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.319e-05/0.5481, allocations: 11.88 kB / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.5481, allocations: 0 / 1.028 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.5482, allocations: 4 kB / 1.028 GB, free: 6.895 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.5483, allocations: 35.92 kB / 1.028 GB, free: 6.859 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.5483, allocations: 4 kB / 1.029 GB, free: 6.855 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.5485, allocations: 19.92 kB / 1.029 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.5485, allocations: 8 kB / 1.029 GB, free: 6.828 MB / 0.7794 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.0002197/0.5488, allocations: 217.1 kB / 1.029 GB, free: 6.609 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.216e-05/0.5488, allocations: 63.12 kB / 1.029 GB, free: 6.547 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.114e-05/0.5489, allocations: 61.03 kB / 1.029 GB, free: 6.484 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.5489, allocations: 4 kB / 1.029 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.549, allocations: 0 / 1.029 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.549, allocations: 0 / 1.029 GB, free: 6.48 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003345/0.5493, allocations: 365.4 kB / 1.029 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.5493, allocations: 0 / 1.029 GB, free: 6.074 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.749e-05/0.5493, allocations: 8 kB / 1.029 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.5494, allocations: 0 / 1.029 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.518e-05/0.5494, allocations: 11.98 kB / 1.029 GB, free: 6.055 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.5494, allocations: 4 kB / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.5494, allocations: 0 / 1.029 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003493/0.5497, allocations: 217.8 kB / 1.029 GB, free: 5.82 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.5499, allocations: 132.3 kB / 1.03 GB, free: 5.672 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.416e-05/0.5499, allocations: 8 kB / 1.03 GB, free: 5.664 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.55, allocations: 15.98 kB / 1.03 GB, free: 5.648 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.5501, allocations: 15.97 kB / 1.03 GB, free: 5.633 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.537e-05/0.5501, allocations: 8 kB / 1.03 GB, free: 5.625 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.000489/0.5506, allocations: 467 kB / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5506, allocations: 0 / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003059/0.5509, allocations: 63.91 kB / 1.03 GB, free: 5.109 MB / 0.7794 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.001516/0.5525, allocations: 1.093 MB / 1.031 GB, free: 4.152 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003561/0.5528, allocations: 155.9 kB / 1.031 GB, free: 4 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5528, allocations: 4 kB / 1.031 GB, free: 3.996 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001294/0.553, allocations: 59.91 kB / 1.031 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004768/0.5535, allocations: 98.12 kB / 1.031 GB, free: 3.852 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00473/0.5582, allocations: 4.003 MB / 1.035 GB, free: 15.74 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004062/0.5586, allocations: 0.8658 MB / 1.036 GB, free: 14.85 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0001341/0.5588, allocations: 46.95 kB / 1.036 GB, free: 14.81 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.559, allocations: 171.3 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of SimCode: time 3e-07/0.559, allocations: 4 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.5867, allocations: 9.658 MB / 1.046 GB, free: 5.145 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.355/7.941, allocations: 7.875 kB / 1.046 GB, free: 5.137 MB / 0.795 GB (rm -f Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches