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.007345/0.007345, allocations: 102 kB / 15.73 MB, free: 6.035 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.001719/0.001719, allocations: 187.9 kB / 16.67 MB, free: 5.969 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.241/1.241, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.422/2.422, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001098/0.001098, allocations: 67.84 kB / 1.054 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2453/0.2465, allocations: 157.4 MB / 1.207 GB, free: 10.17 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.003012/0.2495, allocations: 2.254 MB / 1.209 GB, free: 7.898 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001711/0.2512, allocations: 1.267 MB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.2514, allocations: 7.938 kB / 1.211 GB, free: 6.617 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003864/0.2518, allocations: 167.3 kB / 1.211 GB, free: 6.453 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000295/0.2521, allocations: 167.2 kB / 1.211 GB, free: 6.289 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.2525, allocations: 245 kB / 1.211 GB, free: 6.051 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.2529, allocations: 414.9 kB / 1.212 GB, free: 5.645 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.2531, allocations: 105.2 kB / 1.212 GB, free: 5.539 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.2533, allocations: 167.3 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001738/0.2534, allocations: 183.3 kB / 1.212 GB, free: 5.195 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.554e-05/0.2535, allocations: 24 kB / 1.212 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.2536, allocations: 75.97 kB / 1.212 GB, free: 5.098 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.968e-05/0.2537, allocations: 107.6 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.2539, allocations: 167 kB / 1.212 GB, free: 4.828 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00041/0.2543, allocations: 494.5 kB / 1.213 GB, free: 4.344 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2543, allocations: 3.938 kB / 1.213 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.122e-06/0.2543, allocations: 3.938 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.041e-06/0.2543, allocations: 0 / 1.213 GB, free: 4.336 MB / 0.9669 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.0009255/0.2552, allocations: 0.7118 MB / 1.214 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2553, allocations: 12.62 kB / 1.214 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.2553, allocations: 50.67 kB / 1.214 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.072e-05/0.2554, allocations: 40.47 kB / 1.214 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.2559, allocations: 410.2 kB / 1.214 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/0.2559, allocations: 16.12 kB / 1.214 GB, free: 3.008 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.256, allocations: 19.98 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002839/0.2563, allocations: 169.9 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2563, allocations: 0 / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.2563, allocations: 4 kB / 1.214 GB, free: 2.805 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.2563, allocations: 4 kB / 1.214 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.2565, allocations: 91.89 kB / 1.214 GB, free: 2.711 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009462/0.2575, allocations: 0.7892 MB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002806/0.2577, allocations: 137.4 kB / 1.215 GB, free: 1.711 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2579, allocations: 49.7 kB / 1.215 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.2579, allocations: 3.984 kB / 1.215 GB, free: 1.652 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000203/0.2581, allocations: 137 kB / 1.215 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.392e-06/0.2581, allocations: 0 / 1.215 GB, free: 1.5 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0004571/0.2586, allocations: 213.5 kB / 1.216 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.2586, allocations: 106.8 kB / 1.216 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005411/0.2592, allocations: 0.5798 MB / 1.216 GB, free: 0.5742 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.2592, allocations: 33.7 kB / 1.216 GB, free: 0.5352 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.2593, allocations: 200.4 kB / 1.217 GB, free: 344 kB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.2594, allocations: 35.59 kB / 1.217 GB, free: 308 kB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.459e-05/0.2595, allocations: 73.69 kB / 1.217 GB, free: 228 kB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.2596, allocations: 358.7 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001734/0.2598, allocations: 99.95 kB / 1.217 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.26, allocations: 178.3 kB / 1.217 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00027/0.2603, allocations: 188.7 kB / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2603, allocations: 0 / 1.217 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004826/0.2608, allocations: 344.9 kB / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2608, allocations: 4 kB / 1.218 GB, free: 15.03 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.2608, allocations: 4 kB / 1.218 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.2608, allocations: 0 / 1.218 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001757/0.261, allocations: 51.91 kB / 1.218 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.261, allocations: 4 kB / 1.218 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001896/0.2612, allocations: 35.81 kB / 1.218 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.2612, allocations: 19.94 kB / 1.218 GB, free: 14.91 MB / 0.9825 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.0001652/0.2614, allocations: 199.5 kB / 1.218 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.67e-05/0.2615, allocations: 39.53 kB / 1.218 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.893e-05/0.2615, allocations: 43.36 kB / 1.218 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2615, allocations: 4 kB / 1.218 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2616, allocations: 0 / 1.218 GB, free: 14.62 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2616, allocations: 8.016 kB / 1.218 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002435/0.2618, allocations: 337.2 kB / 1.219 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.2618, allocations: 0 / 1.219 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.603e-05/0.2619, allocations: 15.92 kB / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2619, allocations: 4 kB / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.2619, allocations: 4 kB / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2619, allocations: 0 / 1.219 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2619, allocations: 3.938 kB / 1.219 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003101/0.2622, allocations: 209.4 kB / 1.219 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.459e-05/0.2623, allocations: 120.6 kB / 1.219 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.269e-05/0.2624, allocations: 4 kB / 1.219 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001208/0.2625, allocations: 19.98 kB / 1.219 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.2626, allocations: 23.91 kB / 1.219 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.2626, allocations: 7.984 kB / 1.219 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003322/0.2629, allocations: 359.1 kB / 1.219 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2629, allocations: 0 / 1.219 GB, free: 13.44 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002909/0.2632, allocations: 79.86 kB / 1.219 GB, free: 13.36 MB / 0.9825 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.001299/0.2645, allocations: 1.053 MB / 1.22 GB, free: 12.44 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003641/0.2649, allocations: 201.7 kB / 1.221 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2649, allocations: 4.188 kB / 1.221 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001225/0.265, allocations: 59.91 kB / 1.221 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.2655, allocations: 106.4 kB / 1.221 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/0.2691, allocations: 3.5 MB / 1.224 GB, free: 8.465 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003069/0.2694, allocations: 0.8145 MB / 1.225 GB, free: 7.625 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001174/0.2695, allocations: 58.92 kB / 1.225 GB, free: 7.57 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001569/0.2697, allocations: 127.4 kB / 1.225 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of SimCode: time 2.91e-07/0.2697, allocations: 0 / 1.225 GB, free: 7.445 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8778/1.147, allocations: 8.396 MB / 1.233 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/12.57, allocations: 10.69 kB / 1.233 GB, free: 15.21 MB / 0.9981 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