Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.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.001411/0.001411, allocations: 108.9 kB / 16.46 MB, free: 6.453 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.001556/0.001556, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.466/1.466, allocations: 230.6 MB / 252.8 MB, free: 8.969 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.066/3.066, allocations: 0.49 GB / 0.7916 GB, free: 33.3 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.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.ExpansionVessel,fileNamePrefix="Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel",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.00204/0.00204, allocations: 69.11 kB / 1.149 GB, free: 26.39 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.314, allocations: 176.1 MB / 1.321 GB, free: 3.375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01942/0.3334, allocations: 14.67 MB / 1.335 GB, free: 4.648 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005856/0.3392, allocations: 3.662 MB / 1.339 GB, free: 0.9766 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005927/0.3398, allocations: 27.81 kB / 1.339 GB, free: 0.9492 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0007464/0.3406, allocations: 210.7 kB / 1.339 GB, free: 0.7422 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.001764/0.3423, allocations: 0.622 MB / 1.34 GB, free: 120 kB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001136/0.3435, allocations: 394.4 kB / 1.34 GB, free: 15.73 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.001743/0.3452, allocations: 1.083 MB / 1.341 GB, free: 14.65 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005682/0.3458, allocations: 276.5 kB / 1.341 GB, free: 14.37 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.3472, allocations: 446.3 kB / 1.342 GB, free: 13.93 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006147/0.3478, allocations: 322.6 kB / 1.342 GB, free: 13.62 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 8.819e-05/0.3479, allocations: 32 kB / 1.342 GB, free: 13.59 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007037/0.3486, allocations: 275.5 kB / 1.342 GB, free: 13.32 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.3488, allocations: 99.59 kB / 1.342 GB, free: 13.22 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.3491, allocations: 219 kB / 1.343 GB, free: 13 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.3502, allocations: 0.6189 MB / 1.343 GB, free: 12.38 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.3502, allocations: 0 / 1.343 GB, free: 12.38 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3502, allocations: 0 / 1.343 GB, free: 12.38 MB / 1.045 GB Notification: Performance of Transformations before backend: time 1.223e-05/0.3502, allocations: 0 / 1.343 GB, free: 12.38 MB / 1.045 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.00141/0.3516, allocations: 0.753 MB / 1.344 GB, free: 11.57 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.3517, allocations: 15.98 kB / 1.344 GB, free: 11.56 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.442e-05/0.3518, allocations: 70.66 kB / 1.344 GB, free: 11.48 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/0.352, allocations: 48.66 kB / 1.344 GB, free: 11.43 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008208/0.3528, allocations: 476 kB / 1.344 GB, free: 10.93 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.3528, allocations: 20.69 kB / 1.344 GB, free: 10.91 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.867e-05/0.3529, allocations: 31.95 kB / 1.345 GB, free: 10.88 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006323/0.3535, allocations: 302.2 kB / 1.345 GB, free: 10.56 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.3535, allocations: 15.88 kB / 1.345 GB, free: 10.54 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.3536, allocations: 4 kB / 1.345 GB, free: 10.54 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.253e-05/0.3536, allocations: 12 kB / 1.345 GB, free: 10.53 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005068/0.3541, allocations: 190.1 kB / 1.345 GB, free: 10.34 MB / 1.045 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002034/0.3561, allocations: 1.482 MB / 1.346 GB, free: 8.73 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004723/0.3566, allocations: 154.6 kB / 1.347 GB, free: 8.57 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001819/0.3568, allocations: 60.83 kB / 1.347 GB, free: 8.508 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001691/0.357, allocations: 93.09 kB / 1.347 GB, free: 8.398 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000328/0.3573, allocations: 131.2 kB / 1.347 GB, free: 8.258 MB / 1.045 GB Notification: Performance of pre-optimization done (n=15): time 2.194e-06/0.3573, allocations: 0 / 1.347 GB, free: 8.258 MB / 1.045 GB Notification: Performance of matching and sorting (n=15): time 0.0007015/0.358, allocations: 232 kB / 1.347 GB, free: 8.027 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.358, allocations: 59.34 kB / 1.347 GB, free: 7.957 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.3585, allocations: 353.6 kB / 1.348 GB, free: 7.609 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.3585, allocations: 25.7 kB / 1.348 GB, free: 7.578 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001836/0.3587, allocations: 216.1 kB / 1.348 GB, free: 7.363 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.142e-05/0.3587, allocations: 59.53 kB / 1.348 GB, free: 7.305 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001049/0.3589, allocations: 61.64 kB / 1.348 GB, free: 7.238 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.359, allocations: 342.8 kB / 1.348 GB, free: 6.895 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3592, allocations: 67.95 kB / 1.348 GB, free: 6.828 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.3595, allocations: 145.4 kB / 1.348 GB, free: 6.652 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004716/0.36, allocations: 248.6 kB / 1.349 GB, free: 6.371 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.36, allocations: 0 / 1.349 GB, free: 6.371 MB / 1.045 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006933/0.3607, allocations: 312.6 kB / 1.349 GB, free: 6.055 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.3607, allocations: 35.27 kB / 1.349 GB, free: 6.016 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3607, allocations: 4 kB / 1.349 GB, free: 6.012 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.092e-05/0.3607, allocations: 7.938 kB / 1.349 GB, free: 6.004 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002514/0.361, allocations: 56.22 kB / 1.349 GB, free: 5.949 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.361, allocations: 7.938 kB / 1.349 GB, free: 5.941 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/0.3613, allocations: 35.83 kB / 1.349 GB, free: 5.906 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.3613, allocations: 15.98 kB / 1.349 GB, free: 5.891 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 1 * 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.0001932/0.3615, allocations: 157.7 kB / 1.349 GB, free: 5.727 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/0.3616, allocations: 35.77 kB / 1.349 GB, free: 5.691 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005148/0.3621, allocations: 200.5 kB / 1.349 GB, free: 5.484 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.3621, allocations: 3.938 kB / 1.349 GB, free: 5.48 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3621, allocations: 3.938 kB / 1.349 GB, free: 5.477 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005477/0.3626, allocations: 483.7 kB / 1.35 GB, free: 4.918 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004916/0.3631, allocations: 353.4 kB / 1.35 GB, free: 4.523 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.876e-06/0.3631, allocations: 4 kB / 1.35 GB, free: 4.52 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001717/0.3633, allocations: 27.97 kB / 1.35 GB, free: 4.492 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/0.3633, allocations: 4 kB / 1.35 GB, free: 4.488 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.3633, allocations: 8 kB / 1.35 GB, free: 4.48 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.3633, allocations: 3.938 kB / 1.35 GB, free: 4.477 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.3633, allocations: 0 / 1.35 GB, free: 4.477 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006729/0.364, allocations: 290.9 kB / 1.351 GB, free: 4.176 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.3641, allocations: 120.9 kB / 1.351 GB, free: 4.039 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.3642, allocations: 8 kB / 1.351 GB, free: 4.031 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.3644, allocations: 27.91 kB / 1.351 GB, free: 4.004 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.3645, allocations: 11.98 kB / 1.351 GB, free: 3.992 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.3645, allocations: 11.98 kB / 1.351 GB, free: 3.98 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0003016/0.3648, allocations: 247.2 kB / 1.351 GB, free: 3.738 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3648, allocations: 3.938 kB / 1.351 GB, free: 3.734 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004699/0.3653, allocations: 127.7 kB / 1.351 GB, free: 3.609 MB / 1.045 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (expVes.m,expVes.H,vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001218/0.3665, allocations: 0.9049 MB / 1.352 GB, free: 2.672 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0005357/0.3671, allocations: 218.8 kB / 1.352 GB, free: 2.449 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.3671, allocations: 4 kB / 1.352 GB, free: 2.445 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.3673, allocations: 71.95 kB / 1.352 GB, free: 2.375 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000982/0.3682, allocations: 218 kB / 1.352 GB, free: 2.172 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004646/0.3729, allocations: 3.053 MB / 1.355 GB, free: 14.98 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004254/0.3733, allocations: 0.7917 MB / 1.356 GB, free: 14.16 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0003007/0.3736, allocations: 75.12 kB / 1.356 GB, free: 14.08 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.3738, allocations: 115.4 kB / 1.356 GB, free: 13.97 MB / 1.061 GB Notification: Performance of SimCode: time 8.61e-07/0.3738, allocations: 0 / 1.356 GB, free: 13.97 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04187/0.4157, allocations: 10.25 MB / 1.366 GB, free: 3.914 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.401/8.817, allocations: 13.98 kB / 1.366 GB, free: 3.906 MB / 1.061 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat --tempDir=temp_Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel_fmu --startTime=0 --stopTime=7200 --stepSize=2.88 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Fluid_Storage_Examples_ExpansionVessel.fmu > Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Storage.Examples.ExpansionVessel.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: 15.20187331107445]