Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_latest_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.001245/0.001245, 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.001003/0.001002, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.176/1.176, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.397/2.397, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 67.05 kB / 0.8992 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2292, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003563/0.2327, allocations: 2.261 MB / 1.055 GB, free: 5.98 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002013/0.2348, allocations: 1.267 MB / 1.056 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001781/0.235, allocations: 7.938 kB / 1.056 GB, free: 4.699 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000414/0.2354, allocations: 175.3 kB / 1.057 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0003645/0.2358, allocations: 167.2 kB / 1.057 GB, free: 4.363 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005488/0.2363, allocations: 254.6 kB / 1.057 GB, free: 4.117 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0004139/0.2368, allocations: 410.9 kB / 1.057 GB, free: 3.715 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002139/0.237, allocations: 101.2 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002253/0.2372, allocations: 167.3 kB / 1.058 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002069/0.2374, allocations: 179.3 kB / 1.058 GB, free: 3.277 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.995e-05/0.2375, allocations: 24 kB / 1.058 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.2377, allocations: 75.95 kB / 1.058 GB, free: 3.18 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.2378, allocations: 115.6 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.238, allocations: 166.9 kB / 1.058 GB, free: 2.902 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0004638/0.2384, allocations: 486.5 kB / 1.059 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.2384, allocations: 4 kB / 1.059 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2384, allocations: 0 / 1.059 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.866e-06/0.2385, allocations: 0 / 1.059 GB, free: 2.422 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.001044/0.2395, allocations: 0.7041 MB / 1.059 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.2396, allocations: 12.62 kB / 1.059 GB, free: 1.656 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.476e-05/0.2396, allocations: 46.73 kB / 1.059 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.543e-05/0.2397, allocations: 44.38 kB / 1.059 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/0.2402, allocations: 406.2 kB / 1.06 GB, free: 1.121 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.2403, allocations: 16.12 kB / 1.06 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.716e-05/0.2403, allocations: 12 kB / 1.06 GB, free: 1.094 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000315/0.2406, allocations: 176.6 kB / 1.06 GB, free: 0.9062 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2406, allocations: 4 kB / 1.06 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.82e-05/0.2407, allocations: 4 kB / 1.06 GB, free: 0.8984 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.156e-06/0.2407, allocations: 4 kB / 1.06 GB, free: 0.8945 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.2409, allocations: 91.89 kB / 1.06 GB, free: 0.8047 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00105/0.2419, allocations: 0.7854 MB / 1.061 GB, free: 15.96 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.2423, allocations: 137.4 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001112/0.2424, allocations: 49.7 kB / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.2424, allocations: 0 / 1.061 GB, free: 15.75 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000228/0.2426, allocations: 133 kB / 1.061 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=12): time 1.423e-06/0.2427, allocations: 3.938 kB / 1.061 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12): time 0.0005155/0.2432, allocations: 217.5 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.004e-05/0.2432, allocations: 102.8 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006084/0.2439, allocations: 0.5798 MB / 1.062 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.2439, allocations: 29.7 kB / 1.062 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001471/0.2441, allocations: 208.3 kB / 1.062 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.195e-05/0.2441, allocations: 31.7 kB / 1.062 GB, free: 14.4 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.2442, allocations: 77.59 kB / 1.062 GB, free: 14.32 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001299/0.2444, allocations: 354.7 kB / 1.063 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.2446, allocations: 104 kB / 1.063 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00023/0.2448, allocations: 174.2 kB / 1.063 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.2451, allocations: 198.4 kB / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2451, allocations: 0 / 1.063 GB, free: 13.46 MB / 0.8262 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005536/0.2457, allocations: 331.4 kB / 1.063 GB, free: 13.13 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2457, allocations: 9.031 kB / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.2457, allocations: 4 kB / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.2457, allocations: 0 / 1.063 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001878/0.2459, allocations: 55.91 kB / 1.064 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.2459, allocations: 3.938 kB / 1.064 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002123/0.2462, allocations: 43.83 kB / 1.064 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.897e-05/0.2462, allocations: 15.94 kB / 1.064 GB, free: 13 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.0001862/0.2464, allocations: 207.5 kB / 1.064 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.06e-05/0.2465, allocations: 35.53 kB / 1.064 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.236e-05/0.2465, allocations: 39.38 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.2465, allocations: 4 kB / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.2465, allocations: 0 / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.2466, allocations: 0 / 1.064 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.2468, allocations: 337.3 kB / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2468, allocations: 0 / 1.064 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-05/0.2469, allocations: 8 kB / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.2469, allocations: 0 / 1.064 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.486e-05/0.2469, allocations: 11.98 kB / 1.064 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2469, allocations: 0 / 1.064 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2469, allocations: 0 / 1.064 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003502/0.2473, allocations: 213.3 kB / 1.064 GB, free: 12.08 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.769e-05/0.2474, allocations: 120.6 kB / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.2475, allocations: 4 kB / 1.064 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001312/0.2476, allocations: 23.92 kB / 1.065 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.2477, allocations: 19.97 kB / 1.065 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.2477, allocations: 11.98 kB / 1.065 GB, free: 11.88 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0003719/0.2481, allocations: 359.1 kB / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2481, allocations: 0 / 1.065 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003054/0.2484, allocations: 75.72 kB / 1.065 GB, free: 11.46 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.00141/0.2498, allocations: 1.061 MB / 1.066 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004081/0.2502, allocations: 203.7 kB / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2502, allocations: 0 / 1.066 GB, free: 10.33 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.2504, allocations: 60.16 kB / 1.066 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004979/0.2509, allocations: 112 kB / 1.066 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004043/0.2549, allocations: 3.556 MB / 1.07 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003396/0.2553, allocations: 0.8068 MB / 1.071 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001362/0.2554, allocations: 58.94 kB / 1.071 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001747/0.2556, allocations: 123.4 kB / 1.071 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of SimCode: time 2.31e-07/0.2556, allocations: 0 / 1.071 GB, free: 5.488 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.06/1.316, allocations: 8.264 MB / 1.079 GB, free: 13.38 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.068/10.38, allocations: 6.172 kB / 1.079 GB, free: 13.37 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches