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.005865/0.005865, allocations: 96.83 kB / 15.73 MB, free: 6.055 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.001276/0.001276, allocations: 197.2 kB / 16.68 MB, free: 5.977 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 4.281 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.323/2.323, allocations: 437.1 MB / 0.7106 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001662/0.001662, allocations: 59.89 kB / 1.018 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2365/0.2381, allocations: 151.6 MB / 1.166 GB, free: 7.285 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003112/0.2413, allocations: 2.258 MB / 1.168 GB, free: 5 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001748/0.243, allocations: 1.264 MB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001019/0.2431, allocations: 7.938 kB / 1.17 GB, free: 3.719 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0003882/0.2435, allocations: 171.3 kB / 1.17 GB, free: 3.551 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003076/0.2439, allocations: 171.2 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004488/0.2443, allocations: 246.9 kB / 1.17 GB, free: 3.145 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0004007/0.2447, allocations: 406.9 kB / 1.171 GB, free: 2.746 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001749/0.2449, allocations: 113.2 kB / 1.171 GB, free: 2.633 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000192/0.2451, allocations: 171.2 kB / 1.171 GB, free: 2.465 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.2453, allocations: 179.3 kB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.2454, allocations: 27.94 kB / 1.171 GB, free: 2.262 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001398/0.2455, allocations: 83.91 kB / 1.171 GB, free: 2.18 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001133/0.2456, allocations: 107.7 kB / 1.171 GB, free: 2.074 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001436/0.2458, allocations: 162.9 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0004878/0.2463, allocations: 0.4943 MB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.314e-06/0.2463, allocations: 0 / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.805e-06/0.2463, allocations: 0 / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.089e-06/0.2463, allocations: 3.938 kB / 1.172 GB, free: 1.414 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.0009419/0.2472, allocations: 0.7232 MB / 1.173 GB, free: 0.6406 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.2473, allocations: 8.031 kB / 1.173 GB, free: 0.6328 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.578e-05/0.2473, allocations: 46.73 kB / 1.173 GB, free: 0.5781 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.085e-05/0.2474, allocations: 44.66 kB / 1.173 GB, free: 0.5352 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.2479, allocations: 410.6 kB / 1.173 GB, free: 96 kB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.997e-05/0.2479, allocations: 16.12 kB / 1.173 GB, free: 80 kB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.248, allocations: 19.98 kB / 1.173 GB, free: 60 kB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003045/0.2483, allocations: 177.1 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.2483, allocations: 4 kB / 1.173 GB, free: 15.87 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.2483, allocations: 4 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2483, allocations: 4 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00019/0.2485, allocations: 91.83 kB / 1.173 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009686/0.2495, allocations: 0.7855 MB / 1.174 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002944/0.2498, allocations: 145.4 kB / 1.174 GB, free: 14.77 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001004/0.2499, allocations: 49.7 kB / 1.174 GB, free: 14.71 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.277e-05/0.2499, allocations: 7.984 kB / 1.174 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.2502, allocations: 125 kB / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=12): time 1.202e-06/0.2502, allocations: 0 / 1.174 GB, free: 14.56 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12): time 0.0004591/0.2506, allocations: 221.3 kB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.2507, allocations: 102.8 kB / 1.175 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006075/0.2513, allocations: 0.5799 MB / 1.175 GB, free: 13.63 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.2513, allocations: 33.7 kB / 1.175 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.2515, allocations: 196.5 kB / 1.176 GB, free: 13.39 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 3.538e-05/0.2515, allocations: 43.73 kB / 1.176 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.2516, allocations: 69.64 kB / 1.176 GB, free: 13.28 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.2518, allocations: 362.7 kB / 1.176 GB, free: 12.91 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.252, allocations: 104 kB / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002217/0.2522, allocations: 163 kB / 1.176 GB, free: 12.63 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.2525, allocations: 193.8 kB / 1.176 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2525, allocations: 0 / 1.176 GB, free: 12.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005252/0.253, allocations: 339.2 kB / 1.177 GB, free: 12.09 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.2531, allocations: 17.75 kB / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2531, allocations: 0 / 1.177 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.282e-05/0.2531, allocations: 4.609 kB / 1.177 GB, free: 12.07 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.2533, allocations: 55.84 kB / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2533, allocations: 0 / 1.177 GB, free: 12.02 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001831/0.2535, allocations: 39.86 kB / 1.177 GB, free: 11.98 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.2535, allocations: 12 kB / 1.177 GB, free: 11.97 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.0001832/0.2537, allocations: 207.4 kB / 1.177 GB, free: 11.75 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.315e-05/0.2538, allocations: 39.72 kB / 1.177 GB, free: 11.71 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.863e-05/0.2538, allocations: 47.31 kB / 1.177 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2538, allocations: 0 / 1.177 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.726e-06/0.2538, allocations: 0 / 1.177 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.2538, allocations: 3.984 kB / 1.177 GB, free: 11.66 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002783/0.2541, allocations: 329.4 kB / 1.177 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.2541, allocations: 4 kB / 1.178 GB, free: 11.29 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.319e-05/0.2542, allocations: 11.98 kB / 1.178 GB, free: 11.28 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.2542, allocations: 4 kB / 1.178 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.2542, allocations: 4 kB / 1.178 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.2542, allocations: 0 / 1.178 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.2542, allocations: 4 kB / 1.178 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003281/0.2545, allocations: 217.5 kB / 1.178 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 9.45e-05/0.2547, allocations: 116.9 kB / 1.178 GB, free: 10.9 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.346e-05/0.2547, allocations: 8 kB / 1.178 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.2548, allocations: 15.98 kB / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.906e-05/0.2549, allocations: 27.97 kB / 1.178 GB, free: 10.85 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.2549, allocations: 7.984 kB / 1.178 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0003882/0.2553, allocations: 355.1 kB / 1.178 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2553, allocations: 0 / 1.178 GB, free: 10.5 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002729/0.2556, allocations: 75.81 kB / 1.178 GB, free: 10.42 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.001821/0.2574, allocations: 1.066 MB / 1.179 GB, free: 9.48 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003732/0.2578, allocations: 195.4 kB / 1.18 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2578, allocations: 192 / 1.18 GB, free: 9.293 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000133/0.2579, allocations: 67.89 kB / 1.18 GB, free: 9.227 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004345/0.2584, allocations: 98.88 kB / 1.18 GB, free: 9.141 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003864/0.2623, allocations: 3.515 MB / 1.183 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.2627, allocations: 0.8145 MB / 1.184 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0001197/0.2628, allocations: 58.94 kB / 1.184 GB, free: 4.609 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001657/0.2629, allocations: 127.3 kB / 1.184 GB, free: 4.484 MB / 0.9356 GB Notification: Performance of SimCode: time 1.984e-06/0.263, allocations: 0 / 1.184 GB, free: 4.484 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.046/4.309, allocations: 8.408 MB / 1.192 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.15/19.46, allocations: 10.69 kB / 1.192 GB, free: 12.28 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Experimental.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_10_Buildings_Experimental_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 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.mat","/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