Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow,fileNamePrefix="Buildings_11_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.004847/0.004847, allocations: 96.19 kB / 15.73 MB, free: 6.043 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.001355/0.001355, allocations: 204 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.247/1.247, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.492/2.492, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 67.88 kB / 1.065 GB, free: 13.56 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2509, allocations: 159.1 MB / 1.22 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003375/0.2543, allocations: 2.479 MB / 1.223 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002063/0.2563, allocations: 1.564 MB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.2565, allocations: 7.938 kB / 1.224 GB, free: 10.24 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0007516/0.2572, allocations: 331 kB / 1.224 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003785/0.2576, allocations: 211.1 kB / 1.225 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005339/0.2582, allocations: 270.9 kB / 1.225 GB, free: 9.449 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003916/0.2586, allocations: 386.8 kB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.2587, allocations: 76.59 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.2589, allocations: 163.3 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.2591, allocations: 155.3 kB / 1.226 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.558e-05/0.2591, allocations: 24 kB / 1.226 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.2593, allocations: 83.89 kB / 1.226 GB, free: 8.578 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.2594, allocations: 127.5 kB / 1.226 GB, free: 8.453 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001653/0.2596, allocations: 186.6 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0005113/0.2601, allocations: 0.4976 MB / 1.227 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.2601, allocations: 0 / 1.227 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.333e-06/0.2601, allocations: 0 / 1.227 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.66e-06/0.2602, allocations: 4 kB / 1.227 GB, free: 7.766 MB / 0.9825 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.001049/0.2612, allocations: 0.8567 MB / 1.227 GB, free: 6.852 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 2.988e-05/0.2612, allocations: 12.03 kB / 1.227 GB, free: 6.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.2613, allocations: 38.73 kB / 1.227 GB, free: 6.793 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.562e-05/0.2614, allocations: 60.56 kB / 1.227 GB, free: 6.734 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.2619, allocations: 445.2 kB / 1.228 GB, free: 6.258 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.887e-05/0.2619, allocations: 8 kB / 1.228 GB, free: 6.25 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.2619, allocations: 15.98 kB / 1.228 GB, free: 6.234 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002596/0.2622, allocations: 143.9 kB / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2622, allocations: 0 / 1.228 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.2622, allocations: 4 kB / 1.228 GB, free: 6.078 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.2623, allocations: 7.938 kB / 1.228 GB, free: 6.07 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.2624, allocations: 66.16 kB / 1.228 GB, free: 6.008 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007488/0.2632, allocations: 0.5706 MB / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002888/0.2635, allocations: 134.6 kB / 1.229 GB, free: 5.246 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.2636, allocations: 48.78 kB / 1.229 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.846e-05/0.2636, allocations: 4 kB / 1.229 GB, free: 5.191 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.2638, allocations: 119.3 kB / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 3.126e-06/0.2638, allocations: 0 / 1.229 GB, free: 5.066 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0004647/0.2643, allocations: 237.1 kB / 1.229 GB, free: 4.828 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/0.2644, allocations: 81.11 kB / 1.229 GB, free: 4.73 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007265/0.2651, allocations: 0.6876 MB / 1.23 GB, free: 4.031 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.672e-05/0.2651, allocations: 33.7 kB / 1.23 GB, free: 3.992 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002116/0.2653, allocations: 264.4 kB / 1.23 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.2654, allocations: 35.72 kB / 1.23 GB, free: 3.695 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.481e-05/0.2655, allocations: 65.66 kB / 1.23 GB, free: 3.625 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001649/0.2657, allocations: 370.8 kB / 1.231 GB, free: 3.254 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.2658, allocations: 71.97 kB / 1.231 GB, free: 3.184 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001734/0.266, allocations: 121 kB / 1.231 GB, free: 3.047 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002374/0.2662, allocations: 134.5 kB / 1.231 GB, free: 2.906 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2662, allocations: 0 / 1.231 GB, free: 2.906 MB / 0.9825 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004146/0.2667, allocations: 274.9 kB / 1.231 GB, free: 2.633 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.053e-05/0.2667, allocations: 4 kB / 1.231 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.2667, allocations: 0 / 1.231 GB, free: 2.629 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.2667, allocations: 4 kB / 1.231 GB, free: 2.625 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.2668, allocations: 39.91 kB / 1.231 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.2669, allocations: 8.062 kB / 1.231 GB, free: 2.578 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.267, allocations: 15.94 kB / 1.231 GB, free: 2.562 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.267, allocations: 12 kB / 1.231 GB, free: 2.551 MB / 0.9825 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.0002011/0.2672, allocations: 215.4 kB / 1.232 GB, free: 2.328 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.553e-05/0.2673, allocations: 59.56 kB / 1.232 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.325e-05/0.2674, allocations: 57.05 kB / 1.232 GB, free: 2.207 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-06/0.2674, allocations: 4 kB / 1.232 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.2674, allocations: 4 kB / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2674, allocations: 0 / 1.232 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003202/0.2677, allocations: 365.4 kB / 1.232 GB, free: 1.793 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.2677, allocations: 4 kB / 1.232 GB, free: 1.789 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.593e-05/0.2678, allocations: 11.98 kB / 1.232 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.2678, allocations: 0 / 1.232 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.2678, allocations: 0 / 1.232 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.689e-06/0.2678, allocations: 7.938 kB / 1.232 GB, free: 1.77 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.2678, allocations: 3.938 kB / 1.232 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003416/0.2682, allocations: 228.6 kB / 1.232 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.943e-05/0.2683, allocations: 132.7 kB / 1.232 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.471e-05/0.2683, allocations: 4 kB / 1.232 GB, free: 1.371 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001064/0.2684, allocations: 11.98 kB / 1.232 GB, free: 1.359 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.878e-05/0.2685, allocations: 19.98 kB / 1.232 GB, free: 1.34 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.462e-05/0.2685, allocations: 8 kB / 1.232 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0004879/0.269, allocations: 463 kB / 1.233 GB, free: 0.8867 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.269, allocations: 0 / 1.233 GB, free: 0.8867 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002687/0.2693, allocations: 75.88 kB / 1.233 GB, free: 0.8125 MB / 0.9825 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.001895/0.2712, allocations: 1.089 MB / 1.234 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003298/0.2715, allocations: 159.9 kB / 1.234 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2715, allocations: 3.938 kB / 1.234 GB, free: 15.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000121/0.2717, allocations: 55.92 kB / 1.234 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004252/0.2721, allocations: 86.7 kB / 1.234 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.2764, allocations: 3.9 MB / 1.238 GB, free: 11.56 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004403/0.2769, allocations: 0.865 MB / 1.239 GB, free: 10.67 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001175/0.277, allocations: 50.94 kB / 1.239 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.2772, allocations: 167.4 kB / 1.239 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of SimCode: time 2.3e-07/0.2772, allocations: 0 / 1.239 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.291/1.568, allocations: 9.817 MB / 1.249 GB, free: 0.8242 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/15.78, allocations: 0.8906 kB / 1.249 GB, free: 0.8242 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; mkfifo Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe >> ../files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.fmu > Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches