Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001358/0.001358, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 217.6 kB / 22.24 MB, free: 5.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.404/1.404, allocations: 230.6 MB / 256 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.113/3.113, allocations: 0.49 GB / 0.7951 GB, free: 35.54 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus,fileNamePrefix="Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 62.91 kB / 1.154 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.3453, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus): time 0.004129/0.3495, allocations: 2.175 MB / 1.328 GB, free: 15.34 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.00264/0.3521, allocations: 1.36 MB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.3523, allocations: 7.938 kB / 1.329 GB, free: 13.96 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0005077/0.3528, allocations: 175.3 kB / 1.329 GB, free: 13.79 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0005356/0.3534, allocations: 223.1 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004264/0.3538, allocations: 191.5 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000532/0.3543, allocations: 430.7 kB / 1.33 GB, free: 12.96 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001963/0.3545, allocations: 69.77 kB / 1.33 GB, free: 12.89 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002541/0.3548, allocations: 175.3 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.3551, allocations: 195.2 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 6.835e-05/0.3551, allocations: 32 kB / 1.331 GB, free: 12.5 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001814/0.3553, allocations: 79.97 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001505/0.3555, allocations: 115.5 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001533/0.3556, allocations: 131.2 kB / 1.331 GB, free: 12.18 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0006358/0.3562, allocations: 0.4979 MB / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3562, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3563, allocations: 0 / 1.332 GB, free: 11.68 MB / 1.029 GB Notification: Performance of Transformations before backend: time 7.594e-06/0.3563, allocations: 3.938 kB / 1.332 GB, free: 11.67 MB / 1.029 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.001223/0.3575, allocations: 0.6595 MB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/0.3575, allocations: 12.03 kB / 1.332 GB, free: 10.97 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.393e-05/0.3576, allocations: 46.73 kB / 1.332 GB, free: 10.91 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001038/0.3577, allocations: 52.55 kB / 1.332 GB, free: 10.86 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006596/0.3584, allocations: 360.8 kB / 1.333 GB, free: 10.49 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3584, allocations: 12.12 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.149e-05/0.3584, allocations: 16 kB / 1.333 GB, free: 10.46 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.3588, allocations: 201.8 kB / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3588, allocations: 0 / 1.333 GB, free: 10.24 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.065e-05/0.3588, allocations: 8 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.3588, allocations: 7.938 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.3591, allocations: 99.92 kB / 1.333 GB, free: 10.13 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001243/0.3603, allocations: 0.7183 MB / 1.334 GB, free: 9.359 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/0.3607, allocations: 137.4 kB / 1.334 GB, free: 9.207 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.3608, allocations: 53.69 kB / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.494e-05/0.3608, allocations: 0 / 1.334 GB, free: 9.148 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002909/0.3611, allocations: 145 kB / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of pre-optimization done (n=12): time 1.272e-06/0.3611, allocations: 0 / 1.334 GB, free: 8.988 MB / 1.029 GB Notification: Performance of matching and sorting (n=12): time 0.0006541/0.3617, allocations: 233.3 kB / 1.334 GB, free: 8.754 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.944e-05/0.3618, allocations: 106.8 kB / 1.334 GB, free: 8.625 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007307/0.3626, allocations: 0.6033 MB / 1.335 GB, free: 8.012 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.376e-05/0.3626, allocations: 29.7 kB / 1.335 GB, free: 7.977 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.3628, allocations: 208.4 kB / 1.335 GB, free: 7.766 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.305e-05/0.3628, allocations: 35.73 kB / 1.335 GB, free: 7.73 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001315/0.363, allocations: 77.62 kB / 1.335 GB, free: 7.648 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001772/0.3631, allocations: 362.7 kB / 1.336 GB, free: 7.285 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002078/0.3633, allocations: 108 kB / 1.336 GB, free: 7.18 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.3636, allocations: 246.9 kB / 1.336 GB, free: 6.898 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003511/0.364, allocations: 197.8 kB / 1.336 GB, free: 6.691 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.364, allocations: 0 / 1.336 GB, free: 6.691 MB / 1.029 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000608/0.3646, allocations: 359.7 kB / 1.336 GB, free: 6.336 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.3646, allocations: 4 kB / 1.336 GB, free: 6.332 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.3646, allocations: 0 / 1.336 GB, free: 6.332 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3646, allocations: 4 kB / 1.336 GB, free: 6.328 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/0.3649, allocations: 47.91 kB / 1.336 GB, free: 6.281 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.041e-05/0.3649, allocations: 4 kB / 1.336 GB, free: 6.277 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.3651, allocations: 43.95 kB / 1.337 GB, free: 6.234 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.3651, allocations: 8 kB / 1.337 GB, free: 6.227 MB / 1.029 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.0002403/0.3654, allocations: 201.7 kB / 1.337 GB, free: 6.02 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.625e-05/0.3654, allocations: 43.72 kB / 1.337 GB, free: 5.977 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004532/0.3659, allocations: 209.1 kB / 1.337 GB, free: 5.762 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.3659, allocations: 4 kB / 1.337 GB, free: 5.758 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3659, allocations: 0 / 1.337 GB, free: 5.758 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3659, allocations: 3.984 kB / 1.337 GB, free: 5.754 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000323/0.3662, allocations: 284.5 kB / 1.337 GB, free: 5.434 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3662, allocations: 3.938 kB / 1.337 GB, free: 5.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.373e-05/0.3663, allocations: 15.98 kB / 1.337 GB, free: 5.414 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.3663, allocations: 0 / 1.337 GB, free: 5.414 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.3663, allocations: 8 kB / 1.337 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3663, allocations: 0 / 1.337 GB, free: 5.406 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3663, allocations: 3.938 kB / 1.337 GB, free: 5.402 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000433/0.3667, allocations: 237.5 kB / 1.338 GB, free: 5.148 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.3669, allocations: 56.12 kB / 1.338 GB, free: 5.094 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.266e-05/0.3669, allocations: 4 kB / 1.338 GB, free: 5.09 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.367, allocations: 19.98 kB / 1.338 GB, free: 5.07 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.65e-05/0.3671, allocations: 23.95 kB / 1.338 GB, free: 5.047 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.369e-05/0.3671, allocations: 12 kB / 1.338 GB, free: 5.035 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0005023/0.3676, allocations: 371.1 kB / 1.338 GB, free: 4.676 MB / 1.029 GB Notification: Performance of sort global known variables: time 9.1e-08/0.3676, allocations: 0 / 1.338 GB, free: 4.676 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003495/0.368, allocations: 79.81 kB / 1.338 GB, free: 4.598 MB / 1.029 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 (tanSta.hysCha.y,TTanTop.tab.nextTimeEvent,TTanTop.tab.nextTimeEventScaled,tanSta.hysEmp.y,TTanBot.tab.nextTimeEvent,TTanBot.tab.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * 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.002359/0.3704, allocations: 1.103 MB / 1.339 GB, free: 3.656 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004874/0.3708, allocations: 203.8 kB / 1.339 GB, free: 3.457 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3708, allocations: 0 / 1.339 GB, free: 3.457 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001556/0.371, allocations: 67.89 kB / 1.339 GB, free: 3.391 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005192/0.3715, allocations: 96.84 kB / 1.339 GB, free: 3.305 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004866/0.3764, allocations: 3.639 MB / 1.343 GB, free: 15.54 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.3766, allocations: 212.5 kB / 1.343 GB, free: 15.31 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001863/0.3768, allocations: 55.25 kB / 1.343 GB, free: 15.26 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002337/0.377, allocations: 135.4 kB / 1.343 GB, free: 15.13 MB / 1.045 GB Notification: Performance of SimCode: time 1.412e-06/0.377, allocations: 0 / 1.343 GB, free: 15.13 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0402/0.4172, allocations: 9.638 MB / 1.353 GB, free: 5.621 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.77, allocations: 11.86 kB / 1.353 GB, free: 5.609 MB / 1.045 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; mkfifo Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe ; head -c 1048576 < Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe >> ../files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat --tempDir=temp_Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.fmu > Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_DHC_Plants_Cooling_Controls_Validation_TankStatus.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.DHC.Plants.Cooling.Controls.Validation.TankStatus.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.379743406985654]