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.005895/0.005895, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.00135/0.00135, allocations: 202.4 kB / 16.68 MB, free: 5.969 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.344 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.557/2.557, allocations: 437.1 MB / 0.7105 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.91 kB / 1.018 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2757/0.2771, allocations: 151.6 MB / 1.166 GB, free: 7.266 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003968/0.2811, allocations: 2.464 MB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002464/0.2836, allocations: 1.569 MB / 1.17 GB, free: 3.203 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000216/0.2839, allocations: 7.938 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008916/0.2848, allocations: 318.4 kB / 1.17 GB, free: 2.887 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.000532/0.2853, allocations: 211.1 kB / 1.171 GB, free: 2.68 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007/0.286, allocations: 274.9 kB / 1.171 GB, free: 2.414 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004782/0.2865, allocations: 386.8 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001711/0.2867, allocations: 84.55 kB / 1.171 GB, free: 1.953 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.287, allocations: 159.3 kB / 1.171 GB, free: 1.797 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.2872, allocations: 167.2 kB / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.525e-05/0.2873, allocations: 16 kB / 1.172 GB, free: 1.617 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002456/0.2875, allocations: 83.89 kB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001656/0.2877, allocations: 123.6 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002232/0.2879, allocations: 190.5 kB / 1.172 GB, free: 1.227 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0006419/0.2886, allocations: 0.4977 MB / 1.173 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2886, allocations: 0 / 1.173 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.222e-06/0.2886, allocations: 0 / 1.173 GB, free: 0.7266 MB / 0.92 GB Notification: Performance of Transformations before backend: time 1.833e-05/0.2886, allocations: 4 kB / 1.173 GB, free: 0.7227 MB / 0.92 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.001308/0.2899, allocations: 0.8567 MB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.29, allocations: 8.031 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.386e-05/0.29, allocations: 42.73 kB / 1.173 GB, free: 15.75 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001151/0.2901, allocations: 64.52 kB / 1.173 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000565/0.2907, allocations: 449.1 kB / 1.174 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.2908, allocations: 19.92 kB / 1.174 GB, free: 15.19 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.2908, allocations: 8 kB / 1.174 GB, free: 15.18 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002802/0.2911, allocations: 137.6 kB / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.2911, allocations: 0 / 1.174 GB, free: 15.04 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.355e-05/0.2911, allocations: 8 kB / 1.174 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2911, allocations: 3.938 kB / 1.174 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001699/0.2913, allocations: 71.84 kB / 1.174 GB, free: 14.95 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000856/0.2922, allocations: 0.5707 MB / 1.175 GB, free: 14.33 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003093/0.2925, allocations: 126.7 kB / 1.175 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.2926, allocations: 44.84 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.423e-05/0.2926, allocations: 4 kB / 1.175 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002278/0.2929, allocations: 119.5 kB / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=13): time 1.543e-06/0.2929, allocations: 0 / 1.175 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13): time 0.0005186/0.2934, allocations: 233.2 kB / 1.175 GB, free: 13.79 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.2935, allocations: 81.11 kB / 1.175 GB, free: 13.69 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007191/0.2942, allocations: 0.6915 MB / 1.176 GB, free: 12.99 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.2942, allocations: 29.7 kB / 1.176 GB, free: 12.95 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001952/0.2944, allocations: 264.4 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.053e-05/0.2945, allocations: 43.72 kB / 1.176 GB, free: 12.65 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.435e-05/0.2946, allocations: 49.7 kB / 1.176 GB, free: 12.59 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2947, allocations: 370.8 kB / 1.177 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001499/0.2949, allocations: 71.97 kB / 1.177 GB, free: 12.15 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001847/0.2951, allocations: 135 kB / 1.177 GB, free: 12 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002527/0.2953, allocations: 132.7 kB / 1.177 GB, free: 11.87 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2953, allocations: 4 kB / 1.177 GB, free: 11.86 MB / 0.9356 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004332/0.2958, allocations: 265.2 kB / 1.177 GB, free: 11.6 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2958, allocations: 12 kB / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.2958, allocations: 0 / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.2958, allocations: 0 / 1.177 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001601/0.296, allocations: 47.84 kB / 1.177 GB, free: 11.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.296, allocations: 7.984 kB / 1.177 GB, free: 11.53 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.2962, allocations: 23.88 kB / 1.177 GB, free: 11.51 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.485e-05/0.2962, allocations: 8 kB / 1.177 GB, free: 11.5 MB / 0.9356 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.000209/0.2964, allocations: 211.5 kB / 1.178 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.644e-05/0.2965, allocations: 63.61 kB / 1.178 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.767e-05/0.2966, allocations: 61.03 kB / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.2966, allocations: 0 / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.2966, allocations: 0 / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2966, allocations: 0 / 1.178 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003044/0.2969, allocations: 373.3 kB / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2969, allocations: 0 / 1.178 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.825e-05/0.297, allocations: 7.984 kB / 1.178 GB, free: 10.74 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.297, allocations: 4 kB / 1.178 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.523e-05/0.297, allocations: 4 kB / 1.178 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.297, allocations: 7.938 kB / 1.178 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.297, allocations: 0 / 1.178 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003608/0.2974, allocations: 228.3 kB / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001143/0.2975, allocations: 136.7 kB / 1.178 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.609e-05/0.2976, allocations: 8 kB / 1.178 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.2977, allocations: 7.984 kB / 1.178 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.876e-05/0.2978, allocations: 19.98 kB / 1.178 GB, free: 10.3 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.591e-05/0.2978, allocations: 7.984 kB / 1.178 GB, free: 10.29 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004775/0.2983, allocations: 471 kB / 1.179 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2983, allocations: 0 / 1.179 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003094/0.2986, allocations: 63.89 kB / 1.179 GB, free: 9.773 MB / 0.9356 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.001515/0.3001, allocations: 1.099 MB / 1.18 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003702/0.3005, allocations: 147.9 kB / 1.18 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3005, allocations: 0 / 1.18 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001329/0.3007, allocations: 59.92 kB / 1.18 GB, free: 8.605 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.3012, allocations: 94.25 kB / 1.18 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004646/0.3058, allocations: 3.9 MB / 1.184 GB, free: 4.52 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.3063, allocations: 0.8618 MB / 1.185 GB, free: 3.633 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001444/0.3064, allocations: 50.92 kB / 1.185 GB, free: 3.582 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002044/0.3066, allocations: 163.4 kB / 1.185 GB, free: 3.422 MB / 0.9356 GB Notification: Performance of SimCode: time 2.71e-07/0.3066, allocations: 0 / 1.185 GB, free: 3.422 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02801/0.3347, allocations: 9.817 MB / 1.195 GB, free: 9.793 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.155/8.489, allocations: 15.7 kB / 1.195 GB, free: 9.781 MB / 0.9512 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