Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.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 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.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_11_Buildings_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.001773/0.001773, allocations: 108 kB / 15.6 MB, free: 132 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.00142/0.00142, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.464/2.464, allocations: 469.8 MB / 0.7424 GB, free: 7.469 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001871/0.001871, allocations: 71.48 kB / 0.9087 GB, free: 34.24 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2429, allocations: 159.2 MB / 1.064 GB, free: 14.2 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003341/0.2463, allocations: 2.253 MB / 1.066 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001834/0.2482, allocations: 1.274 MB / 1.068 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.2483, allocations: 7.938 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003788/0.2487, allocations: 171.3 kB / 1.068 GB, free: 10.47 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.249, allocations: 163.2 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004729/0.2495, allocations: 257.8 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003917/0.2499, allocations: 402.9 kB / 1.068 GB, free: 9.668 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001811/0.2501, allocations: 101.2 kB / 1.069 GB, free: 9.57 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001872/0.2503, allocations: 167.3 kB / 1.069 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.2505, allocations: 183.3 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.384e-05/0.2505, allocations: 24 kB / 1.069 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.2507, allocations: 71.98 kB / 1.069 GB, free: 9.133 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001211/0.2508, allocations: 119.6 kB / 1.069 GB, free: 9.016 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001495/0.2509, allocations: 155 kB / 1.069 GB, free: 8.863 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004725/0.2514, allocations: 490.5 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.2514, allocations: 4 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.112e-06/0.2514, allocations: 0 / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.2514, allocations: 0 / 1.07 GB, free: 8.379 MB / 0.8262 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.0009593/0.2524, allocations: 0.7079 MB / 1.07 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 2.938e-05/0.2524, allocations: 8.031 kB / 1.07 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.66e-05/0.2525, allocations: 46.73 kB / 1.07 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.375e-05/0.2526, allocations: 40.47 kB / 1.071 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004916/0.2531, allocations: 410.2 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.2531, allocations: 20.11 kB / 1.071 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.74e-05/0.2531, allocations: 15.98 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002977/0.2534, allocations: 181.4 kB / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.2535, allocations: 0 / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.2535, allocations: 0 / 1.071 GB, free: 6.855 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.2535, allocations: 4 kB / 1.071 GB, free: 6.852 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.2537, allocations: 91.89 kB / 1.071 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009978/0.2547, allocations: 0.7854 MB / 1.072 GB, free: 5.918 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000304/0.255, allocations: 137.4 kB / 1.072 GB, free: 5.766 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001034/0.2551, allocations: 49.7 kB / 1.072 GB, free: 5.711 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.2551, allocations: 11.86 kB / 1.072 GB, free: 5.699 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002149/0.2554, allocations: 129.1 kB / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.182e-06/0.2554, allocations: 0 / 1.072 GB, free: 5.555 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0004711/0.2559, allocations: 221 kB / 1.073 GB, free: 5.332 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.008e-05/0.2559, allocations: 102.8 kB / 1.073 GB, free: 5.207 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006093/0.2565, allocations: 0.5837 MB / 1.073 GB, free: 4.617 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.819e-05/0.2566, allocations: 33.7 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.2567, allocations: 196.4 kB / 1.073 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.2568, allocations: 31.59 kB / 1.073 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.88e-05/0.2569, allocations: 73.69 kB / 1.073 GB, free: 4.273 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001515/0.257, allocations: 362.7 kB / 1.074 GB, free: 3.91 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.2572, allocations: 104 kB / 1.074 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002282/0.2574, allocations: 174.6 kB / 1.074 GB, free: 3.617 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000295/0.2577, allocations: 184.6 kB / 1.074 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2577, allocations: 0 / 1.074 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005223/0.2583, allocations: 343 kB / 1.075 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.2583, allocations: 8 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.067e-06/0.2583, allocations: 3.938 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.2583, allocations: 4 kB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001722/0.2585, allocations: 47.97 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.2585, allocations: 3.938 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001906/0.2587, allocations: 43.81 kB / 1.075 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.635e-05/0.2587, allocations: 12.2 kB / 1.075 GB, free: 2.965 MB / 0.8262 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.0001909/0.2589, allocations: 203.4 kB / 1.075 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.166e-05/0.259, allocations: 35.53 kB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.911e-05/0.2591, allocations: 39.38 kB / 1.075 GB, free: 2.676 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2591, allocations: 4 kB / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2591, allocations: 0 / 1.075 GB, free: 2.672 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.201e-06/0.2591, allocations: 4.031 kB / 1.075 GB, free: 2.668 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002817/0.2594, allocations: 337.3 kB / 1.075 GB, free: 2.289 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.2594, allocations: 4 kB / 1.075 GB, free: 2.285 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.673e-05/0.2594, allocations: 11.98 kB / 1.075 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.2594, allocations: 0 / 1.075 GB, free: 2.273 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.33e-05/0.2595, allocations: 8 kB / 1.075 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2595, allocations: 0 / 1.075 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2595, allocations: 0 / 1.075 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003288/0.2598, allocations: 213.2 kB / 1.076 GB, free: 2.035 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.594e-05/0.2599, allocations: 124.6 kB / 1.076 GB, free: 1.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.26, allocations: 8 kB / 1.076 GB, free: 1.887 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.2601, allocations: 11.98 kB / 1.076 GB, free: 1.875 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.2601, allocations: 23.91 kB / 1.076 GB, free: 1.852 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.642e-05/0.2602, allocations: 15.98 kB / 1.076 GB, free: 1.836 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003708/0.2606, allocations: 359 kB / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2606, allocations: 0 / 1.076 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002794/0.2608, allocations: 75.86 kB / 1.076 GB, free: 1.414 MB / 0.8262 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.001836/0.2627, allocations: 1.059 MB / 1.077 GB, free: 500 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003858/0.2631, allocations: 199.8 kB / 1.077 GB, free: 300 kB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2631, allocations: 0 / 1.077 GB, free: 300 kB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.2632, allocations: 63.91 kB / 1.077 GB, free: 236 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000434/0.2637, allocations: 103.1 kB / 1.078 GB, free: 140 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.2676, allocations: 3.57 MB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.268, allocations: 0.8029 MB / 1.082 GB, free: 11.61 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001193/0.2681, allocations: 58.92 kB / 1.082 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001609/0.2683, allocations: 119.4 kB / 1.082 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.2683, allocations: 0 / 1.082 GB, free: 11.44 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.251/1.519, allocations: 8.279 MB / 1.09 GB, free: 3.301 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.57/21.09, allocations: 4.062 kB / 1.09 GB, free: 3.297 MB / 0.8419 GB (rm -f Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches