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.001478/0.001483, allocations: 108 kB / 15.61 MB, free: 152 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.001642/0.001643, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.598/2.598, allocations: 461.9 MB / 0.7346 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.86 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2441, allocations: 157.4 MB / 1.053 GB, free: 8.309 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow): time 0.003879/0.248, allocations: 2.475 MB / 1.055 GB, free: 5.82 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002379/0.2504, allocations: 1.557 MB / 1.057 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.2506, allocations: 11.94 kB / 1.057 GB, free: 4.246 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0008676/0.2515, allocations: 323.2 kB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0004543/0.2519, allocations: 215.1 kB / 1.057 GB, free: 3.719 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006568/0.2526, allocations: 270.1 kB / 1.058 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004232/0.253, allocations: 390.8 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.2532, allocations: 84.84 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002048/0.2534, allocations: 159.3 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002002/0.2536, allocations: 163.2 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.924e-05/0.2537, allocations: 16 kB / 1.058 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001798/0.2539, allocations: 75.95 kB / 1.058 GB, free: 2.59 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001281/0.254, allocations: 131.5 kB / 1.059 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0001663/0.2542, allocations: 190.6 kB / 1.059 GB, free: 2.273 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004855/0.2547, allocations: 490.2 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.2547, allocations: 0 / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.192e-06/0.2547, allocations: 0 / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.346e-06/0.2547, allocations: 8 kB / 1.059 GB, free: 1.785 MB / 0.8106 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.001109/0.2558, allocations: 0.8296 MB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.56e-05/0.2558, allocations: 12.62 kB / 1.06 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.023e-05/0.2559, allocations: 38.75 kB / 1.06 GB, free: 0.8398 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.176e-05/0.256, allocations: 64.17 kB / 1.06 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004832/0.2565, allocations: 436.6 kB / 1.061 GB, free: 320 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.687e-05/0.2565, allocations: 4 kB / 1.061 GB, free: 316 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.2565, allocations: 16 kB / 1.061 GB, free: 300 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003248/0.2569, allocations: 139.3 kB / 1.061 GB, free: 148 kB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.083e-06/0.2569, allocations: 0 / 1.061 GB, free: 148 kB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.2569, allocations: 4 kB / 1.061 GB, free: 144 kB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.2569, allocations: 3.938 kB / 1.061 GB, free: 140 kB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.2571, allocations: 77.95 kB / 1.061 GB, free: 64 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008024/0.2579, allocations: 0.5744 MB / 1.061 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002975/0.2582, allocations: 122.7 kB / 1.062 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.2583, allocations: 52.83 kB / 1.062 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.2584, allocations: 4 kB / 1.062 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002165/0.2586, allocations: 111.5 kB / 1.062 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.2586, allocations: 0 / 1.062 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13): time 0.0005119/0.2591, allocations: 236.8 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.2592, allocations: 85.11 kB / 1.062 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.2599, allocations: 0.6799 MB / 1.063 GB, free: 14.1 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.2599, allocations: 33.7 kB / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000191/0.2601, allocations: 268.2 kB / 1.063 GB, free: 13.79 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.2602, allocations: 31.55 kB / 1.063 GB, free: 13.76 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.882e-05/0.2602, allocations: 57.69 kB / 1.063 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.2604, allocations: 370.8 kB / 1.063 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.2605, allocations: 67.97 kB / 1.063 GB, free: 13.26 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001765/0.2607, allocations: 133 kB / 1.064 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.261, allocations: 130.5 kB / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.261, allocations: 0 / 1.064 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004325/0.2614, allocations: 282 kB / 1.064 GB, free: 12.7 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2615, allocations: 4 kB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2615, allocations: 0 / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.2615, allocations: 4 kB / 1.064 GB, free: 12.69 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001525/0.2616, allocations: 35.92 kB / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.2617, allocations: 0 / 1.064 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.2618, allocations: 19.89 kB / 1.064 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.2619, allocations: 12 kB / 1.064 GB, free: 12.62 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.0002009/0.2621, allocations: 220.6 kB / 1.064 GB, free: 12.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.671e-05/0.2621, allocations: 55.28 kB / 1.064 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.916e-05/0.2622, allocations: 61.03 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.2622, allocations: 4 kB / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2622, allocations: 0 / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.2623, allocations: 0 / 1.064 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003042/0.2626, allocations: 377.2 kB / 1.065 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2626, allocations: 0 / 1.065 GB, free: 11.86 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.2626, allocations: 8 kB / 1.065 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.2626, allocations: 4 kB / 1.065 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.2626, allocations: 7.984 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2626, allocations: 3.938 kB / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2627, allocations: 0 / 1.065 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003488/0.263, allocations: 220.4 kB / 1.065 GB, free: 11.6 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.969e-05/0.2631, allocations: 120.5 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.472e-05/0.2632, allocations: 8 kB / 1.065 GB, free: 11.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001172/0.2633, allocations: 15.98 kB / 1.065 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.869e-05/0.2634, allocations: 19.97 kB / 1.065 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.2634, allocations: 8 kB / 1.065 GB, free: 11.41 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004773/0.2639, allocations: 463 kB / 1.066 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2639, allocations: 0 / 1.066 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003007/0.2642, allocations: 67.84 kB / 1.066 GB, free: 10.9 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.001474/0.2657, allocations: 1.083 MB / 1.067 GB, free: 9.945 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003573/0.266, allocations: 157.8 kB / 1.067 GB, free: 9.793 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.266, allocations: 3.938 kB / 1.067 GB, free: 9.789 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.2662, allocations: 55.97 kB / 1.067 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004766/0.2667, allocations: 102 kB / 1.067 GB, free: 9.645 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004431/0.2711, allocations: 4.001 MB / 1.071 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.2715, allocations: 0.8688 MB / 1.072 GB, free: 4.645 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001309/0.2716, allocations: 46.95 kB / 1.072 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.2718, allocations: 175.4 kB / 1.072 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.2719, allocations: 0 / 1.072 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2487/0.5206, allocations: 9.662 MB / 1.081 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.515/9.035, allocations: 9.594 kB / 1.081 GB, free: 10.92 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.CHPs.BaseClasses.Validation.AssertWaterFlow_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_CHPs_BaseClasses_Validation_AssertWaterFlow_fmu --startTime=0 --stopTime=900 --timeout=50 --tolerance=1e-06 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.mat","/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