Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.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.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus",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.006325/0.006325, allocations: 97.8 kB / 15.73 MB, free: 5.996 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.001442/0.001443, allocations: 184.7 kB / 16.67 MB, free: 5.926 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.494/2.494, allocations: 437 MB / 0.7105 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 55.91 kB / 1.018 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.2946, allocations: 151.6 MB / 1.166 GB, free: 7.355 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003943/0.2986, allocations: 2.255 MB / 1.168 GB, free: 5.078 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002248/0.3009, allocations: 1.267 MB / 1.17 GB, free: 3.801 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002586/0.3012, allocations: 7.938 kB / 1.17 GB, free: 3.793 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0005206/0.3017, allocations: 171.3 kB / 1.17 GB, free: 3.625 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0004886/0.3022, allocations: 167.2 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006708/0.3029, allocations: 250 kB / 1.17 GB, free: 3.219 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.000564/0.3035, allocations: 414.9 kB / 1.171 GB, free: 2.812 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000228/0.3037, allocations: 109.2 kB / 1.171 GB, free: 2.703 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.304, allocations: 179.3 kB / 1.171 GB, free: 2.527 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001994/0.3042, allocations: 183.2 kB / 1.171 GB, free: 2.348 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.018e-05/0.3043, allocations: 24 kB / 1.171 GB, free: 2.324 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001706/0.3045, allocations: 79.97 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001137/0.3046, allocations: 111.6 kB / 1.171 GB, free: 2.137 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001405/0.3047, allocations: 159 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0005056/0.3052, allocations: 0.4903 MB / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3052, allocations: 0 / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3053, allocations: 0 / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.613e-06/0.3053, allocations: 4 kB / 1.172 GB, free: 1.484 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001109/0.3064, allocations: 0.7232 MB / 1.173 GB, free: 0.7109 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.3064, allocations: 12.03 kB / 1.173 GB, free: 0.6992 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.3065, allocations: 50.67 kB / 1.173 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.275e-05/0.3066, allocations: 44.66 kB / 1.173 GB, free: 0.5977 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005707/0.3072, allocations: 406.7 kB / 1.173 GB, free: 164 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.367e-05/0.3072, allocations: 24.12 kB / 1.173 GB, free: 140 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/0.3072, allocations: 15.94 kB / 1.173 GB, free: 124 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.3076, allocations: 177.2 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.3076, allocations: 0 / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.826e-05/0.3076, allocations: 4 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.3076, allocations: 4 kB / 1.173 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001993/0.3078, allocations: 95.83 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001103/0.309, allocations: 0.7894 MB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003123/0.3093, allocations: 145.3 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.3094, allocations: 45.7 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.3094, allocations: 4 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002373/0.3097, allocations: 133 kB / 1.174 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.483e-06/0.3097, allocations: 0 / 1.174 GB, free: 14.62 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0005202/0.3102, allocations: 213.3 kB / 1.175 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.48e-05/0.3103, allocations: 114.8 kB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006145/0.3109, allocations: 0.5682 MB / 1.175 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.665e-05/0.3109, allocations: 37.7 kB / 1.175 GB, free: 13.65 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001473/0.3111, allocations: 200.5 kB / 1.176 GB, free: 13.45 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/0.3111, allocations: 39.73 kB / 1.176 GB, free: 13.41 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001277/0.3113, allocations: 77.64 kB / 1.176 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.3114, allocations: 354.7 kB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.3116, allocations: 104 kB / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002223/0.3118, allocations: 171 kB / 1.176 GB, free: 12.69 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003059/0.3121, allocations: 188 kB / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3122, allocations: 0 / 1.176 GB, free: 12.49 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005646/0.3127, allocations: 349.1 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.3128, allocations: 4 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3128, allocations: 0 / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.3128, allocations: 4.156 kB / 1.177 GB, free: 12.14 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.313, allocations: 55.83 kB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.313, allocations: 4 kB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.3132, allocations: 35.86 kB / 1.177 GB, free: 12.04 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.716e-05/0.3133, allocations: 20.09 kB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.TTanBot.tab.nextTimeEvent,$whenCondition2,$PRE.TTanTop.tab.nextTimeEvent,$whenCondition1,TTanTop.tab.nextTimeEventScaled,$PRE.TTanTop.tab.nextTimeEventScaled,TTanTop.tab.nextTimeEvent,tanSta.hysCha.y,$PRE.tanSta.hysCha.y,TTanBot.tab.nextTimeEventScaled,$PRE.TTanBot.tab.nextTimeEventScaled,TTanBot.tab.nextTimeEvent,tanSta.hysEmp.y,$PRE.tanSta.hysEmp.y,tanSta.gre.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * 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.0002006/0.3135, allocations: 195.9 kB / 1.177 GB, free: 11.82 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.554e-05/0.3136, allocations: 47.7 kB / 1.177 GB, free: 11.78 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.834e-05/0.3137, allocations: 39.38 kB / 1.177 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.536e-06/0.3137, allocations: 0 / 1.177 GB, free: 11.74 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.3137, allocations: 4 kB / 1.177 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.3137, allocations: 4 kB / 1.177 GB, free: 11.73 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003177/0.314, allocations: 333.4 kB / 1.177 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.314, allocations: 4 kB / 1.177 GB, free: 11.35 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.712e-05/0.3141, allocations: 8 kB / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.3141, allocations: 0 / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.811e-05/0.3141, allocations: 7.984 kB / 1.177 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.3141, allocations: 3.938 kB / 1.178 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3141, allocations: 0 / 1.178 GB, free: 11.33 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.3145, allocations: 217.5 kB / 1.178 GB, free: 11.1 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001167/0.3146, allocations: 120.9 kB / 1.178 GB, free: 10.96 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.006e-05/0.3147, allocations: 11.98 kB / 1.178 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001224/0.3148, allocations: 11.98 kB / 1.178 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.221e-05/0.3149, allocations: 23.91 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.3149, allocations: 4 kB / 1.178 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003983/0.3153, allocations: 363.1 kB / 1.178 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3153, allocations: 0 / 1.178 GB, free: 10.56 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003287/0.3156, allocations: 75.83 kB / 1.178 GB, free: 10.48 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,$whenCondition1,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled) * Number of discrete states: 6 (TTanTop.tab.nextTimeEventScaled,tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 8 * 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.001482/0.3171, allocations: 1.062 MB / 1.179 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.000417/0.3176, allocations: 207.2 kB / 1.18 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3176, allocations: 0 / 1.18 GB, free: 9.352 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.3177, allocations: 55.92 kB / 1.18 GB, free: 9.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004813/0.3182, allocations: 102.2 kB / 1.18 GB, free: 9.203 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004182/0.3224, allocations: 3.522 MB / 1.183 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003527/0.3228, allocations: 0.8068 MB / 1.184 GB, free: 4.73 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001546/0.3229, allocations: 59.19 kB / 1.184 GB, free: 4.672 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001831/0.3231, allocations: 127.4 kB / 1.184 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of SimCode: time 2.615e-06/0.3231, allocations: 0 / 1.184 GB, free: 4.547 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02714/0.3503, allocations: 8.406 MB / 1.192 GB, free: 12.34 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.114/8.465, allocations: 10.25 kB / 1.192 GB, free: 12.34 MB / 0.9512 GB (rm -f Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches