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.008942/0.008942, allocations: 101.1 kB / 15.73 MB, free: 6.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002039/0.002039, allocations: 187.8 kB / 16.67 MB, free: 5.98 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.36/1.36, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.357/2.357, allocations: 390.2 MB / 0.6648 GB, free: 152 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 63.88 kB / 0.9504 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2397, allocations: 140.4 MB / 1.087 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.004085/0.2439, allocations: 2.457 MB / 1.09 GB, free: 15.47 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002374/0.2463, allocations: 1.577 MB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001908/0.2465, allocations: 3.938 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0008517/0.2473, allocations: 327.2 kB / 1.092 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004691/0.2478, allocations: 215.1 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006447/0.2485, allocations: 260.4 kB / 1.092 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0004315/0.2489, allocations: 398.7 kB / 1.093 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.2491, allocations: 63.53 kB / 1.093 GB, free: 12.65 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002208/0.2493, allocations: 163.2 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.2495, allocations: 159.2 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.445e-05/0.2496, allocations: 24 kB / 1.093 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.2498, allocations: 79.94 kB / 1.093 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.2499, allocations: 131.5 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.2501, allocations: 186.6 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004959/0.2506, allocations: 0.4989 MB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2506, allocations: 4 kB / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2506, allocations: 0 / 1.094 GB, free: 11.42 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.648e-06/0.2506, allocations: 0 / 1.094 GB, free: 11.42 MB / 0.8575 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.001164/0.2518, allocations: 0.8335 MB / 1.095 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2518, allocations: 12.03 kB / 1.095 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.346e-05/0.2519, allocations: 46.73 kB / 1.095 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.406e-05/0.252, allocations: 52.28 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005208/0.2525, allocations: 436.6 kB / 1.095 GB, free: 9.945 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.2525, allocations: 7.984 kB / 1.095 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.788e-05/0.2526, allocations: 12 kB / 1.095 GB, free: 9.926 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002799/0.2528, allocations: 146.1 kB / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.2529, allocations: 0 / 1.095 GB, free: 9.773 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.2529, allocations: 7.938 kB / 1.095 GB, free: 9.766 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.2529, allocations: 7.938 kB / 1.095 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.2531, allocations: 63.97 kB / 1.095 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008465/0.2539, allocations: 0.5783 MB / 1.096 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003237/0.2543, allocations: 126.7 kB / 1.096 GB, free: 8.934 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.2544, allocations: 44.84 kB / 1.096 GB, free: 8.887 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.737e-05/0.2544, allocations: 7.938 kB / 1.096 GB, free: 8.879 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.2547, allocations: 111.5 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=13): time 3.246e-06/0.2547, allocations: 0 / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13): time 0.0005254/0.2552, allocations: 239.6 kB / 1.096 GB, free: 8.52 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.788e-05/0.2553, allocations: 81.11 kB / 1.097 GB, free: 8.422 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007744/0.256, allocations: 0.6876 MB / 1.097 GB, free: 7.723 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.2561, allocations: 33.7 kB / 1.097 GB, free: 7.684 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.2563, allocations: 268.3 kB / 1.098 GB, free: 7.418 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.2563, allocations: 31.55 kB / 1.098 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.843e-05/0.2564, allocations: 61.7 kB / 1.098 GB, free: 7.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2566, allocations: 370.8 kB / 1.098 GB, free: 6.949 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.2568, allocations: 71.97 kB / 1.098 GB, free: 6.879 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001798/0.2569, allocations: 117.1 kB / 1.098 GB, free: 6.746 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.2572, allocations: 141.2 kB / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2572, allocations: 0 / 1.098 GB, free: 6.602 MB / 0.8575 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004352/0.2577, allocations: 268.8 kB / 1.099 GB, free: 6.332 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.2577, allocations: 4 kB / 1.099 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.2577, allocations: 0 / 1.099 GB, free: 6.328 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.2577, allocations: 8 kB / 1.099 GB, free: 6.32 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.2579, allocations: 40.03 kB / 1.099 GB, free: 6.281 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.2579, allocations: 3.938 kB / 1.099 GB, free: 6.277 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001621/0.258, allocations: 19.89 kB / 1.099 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.2581, allocations: 12 kB / 1.099 GB, free: 6.246 MB / 0.8575 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.0002017/0.2583, allocations: 211.5 kB / 1.099 GB, free: 6.031 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.801e-05/0.2584, allocations: 55.28 kB / 1.099 GB, free: 5.977 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.538e-05/0.2585, allocations: 57.05 kB / 1.099 GB, free: 5.918 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.2585, allocations: 4 kB / 1.099 GB, free: 5.914 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2585, allocations: 4 kB / 1.099 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.2585, allocations: 0 / 1.099 GB, free: 5.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003165/0.2588, allocations: 373.3 kB / 1.099 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.2588, allocations: 3.984 kB / 1.099 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.222e-05/0.2589, allocations: 11.94 kB / 1.099 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.993e-06/0.2589, allocations: 0 / 1.099 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.2589, allocations: 0 / 1.099 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.2589, allocations: 4 kB / 1.099 GB, free: 5.477 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.2589, allocations: 3.938 kB / 1.099 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000369/0.2593, allocations: 224.4 kB / 1.1 GB, free: 5.234 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.2594, allocations: 128.4 kB / 1.1 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.721e-05/0.2595, allocations: 8 kB / 1.1 GB, free: 5.082 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.2596, allocations: 15.98 kB / 1.1 GB, free: 5.066 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.912e-05/0.2597, allocations: 7.984 kB / 1.1 GB, free: 5.059 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.2597, allocations: 15.98 kB / 1.1 GB, free: 5.043 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0005035/0.2602, allocations: 463 kB / 1.1 GB, free: 4.594 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.5e-07/0.2602, allocations: 7.938 kB / 1.1 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000315/0.2605, allocations: 67.84 kB / 1.1 GB, free: 4.52 MB / 0.8575 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.001485/0.262, allocations: 1.087 MB / 1.101 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003533/0.2624, allocations: 159.9 kB / 1.101 GB, free: 3.406 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2624, allocations: 3.938 kB / 1.101 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000127/0.2625, allocations: 55.92 kB / 1.101 GB, free: 3.348 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.263, allocations: 86.86 kB / 1.102 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004476/0.2675, allocations: 3.882 MB / 1.105 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003915/0.2679, allocations: 0.8611 MB / 1.106 GB, free: 14.41 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001347/0.2681, allocations: 50.94 kB / 1.106 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.2683, allocations: 163.4 kB / 1.106 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.2683, allocations: 0 / 1.106 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.2946, allocations: 9.834 MB / 1.116 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.493/8.787, allocations: 7.812 kB / 1.116 GB, free: 4.465 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_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_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.csv","/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