Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.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: translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel") translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001755/0.001755, allocations: 103 kB / 16.27 MB, free: 6.402 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.001993/0.001993, allocations: 191 kB / 17.2 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.332/1.332, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.543/2.543, allocations: 469.4 MB / 0.7427 GB, free: 3.656 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 63.88 kB / 0.9088 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3282, allocations: 159.1 MB / 1.064 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01612/0.3444, allocations: 14.43 MB / 1.078 GB, free: 0.5352 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.5323/0.8767, allocations: 3.633 MB / 1.082 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000648/0.8774, allocations: 19.58 kB / 1.082 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0007646/0.8782, allocations: 202.8 kB / 1.082 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001816/0.8801, allocations: 0.583 MB / 1.083 GB, free: 10.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.8813, allocations: 394.5 kB / 1.083 GB, free: 10.58 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001781/0.883, allocations: 1.084 MB / 1.084 GB, free: 10.51 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005856/0.8836, allocations: 317 kB / 1.084 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001326/0.885, allocations: 392.9 kB / 1.085 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000539/0.8855, allocations: 307.8 kB / 1.085 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 7.055e-05/0.8856, allocations: 31.81 kB / 1.085 GB, free: 10.33 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000874/0.8865, allocations: 261.2 kB / 1.085 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001485/0.8866, allocations: 91.7 kB / 1.085 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002839/0.8869, allocations: 213.5 kB / 1.086 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.8881, allocations: 0.5809 MB / 1.086 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.8881, allocations: 0 / 1.086 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of FrontEnd: time 3.116e-06/0.8881, allocations: 1 kB / 1.086 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.8882, allocations: 3.938 kB / 1.086 GB, free: 10.14 MB / 0.8419 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.001307/0.8895, allocations: 0.7538 MB / 1.087 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.159e-05/0.8895, allocations: 9.906 kB / 1.087 GB, free: 9.602 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002297/0.8898, allocations: 46.5 kB / 1.087 GB, free: 9.582 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007817/0.8906, allocations: 438.6 kB / 1.087 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.8906, allocations: 23.03 kB / 1.087 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.549e-05/0.8907, allocations: 29.36 kB / 1.087 GB, free: 9.336 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006662/0.8914, allocations: 310.5 kB / 1.088 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/0.8914, allocations: 0.7812 kB / 1.088 GB, free: 9.254 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.562e-05/0.8914, allocations: 15.78 kB / 1.088 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.8915, allocations: 7.562 kB / 1.088 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005175/0.892, allocations: 197.8 kB / 1.088 GB, free: 9.238 MB / 0.8419 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.001855/0.8938, allocations: 1.491 MB / 1.089 GB, free: 8.262 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004956/0.8944, allocations: 158.5 kB / 1.09 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000181/0.8945, allocations: 67.34 kB / 1.09 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001469/0.8947, allocations: 89.38 kB / 1.09 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003148/0.895, allocations: 128.3 kB / 1.09 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 2.414e-06/0.895, allocations: 1.312 kB / 1.09 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0007093/0.8958, allocations: 234.6 kB / 1.09 GB, free: 8 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.8958, allocations: 59.09 kB / 1.09 GB, free: 7.934 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004245/0.8962, allocations: 355.1 kB / 1.09 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.8963, allocations: 28.95 kB / 1.09 GB, free: 7.719 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001439/0.8964, allocations: 214 kB / 1.091 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 5.161e-05/0.8965, allocations: 55.17 kB / 1.091 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.161e-05/0.8966, allocations: 58.61 kB / 1.091 GB, free: 7.461 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.8967, allocations: 343.6 kB / 1.091 GB, free: 7.133 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/0.8969, allocations: 69.38 kB / 1.091 GB, free: 7.113 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.8971, allocations: 148.8 kB / 1.091 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004072/0.8975, allocations: 251.7 kB / 1.092 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.8975, allocations: 0.5938 kB / 1.092 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006223/0.8981, allocations: 308.1 kB / 1.092 GB, free: 6.66 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.559e-05/0.8982, allocations: 37.33 kB / 1.092 GB, free: 6.625 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.8982, allocations: 6.766 kB / 1.092 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.124e-05/0.8982, allocations: 4 kB / 1.092 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002416/0.8985, allocations: 52.14 kB / 1.092 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.8985, allocations: 12.58 kB / 1.092 GB, free: 6.613 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002979/0.8988, allocations: 34.42 kB / 1.092 GB, free: 6.594 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.031e-05/0.8988, allocations: 14.3 kB / 1.092 GB, free: 6.59 MB / 0.8419 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.0001572/0.899, allocations: 161.3 kB / 1.092 GB, free: 6.445 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.027e-05/0.8991, allocations: 37.17 kB / 1.092 GB, free: 6.426 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004762/0.8996, allocations: 190.2 kB / 1.092 GB, free: 6.344 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.8996, allocations: 2.188 kB / 1.092 GB, free: 6.344 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.8996, allocations: 3.938 kB / 1.092 GB, free: 6.34 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0004267/0.9, allocations: 483.8 kB / 1.093 GB, free: 5.871 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/0.9005, allocations: 356 kB / 1.093 GB, free: 5.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.9005, allocations: 4 kB / 1.093 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.9007, allocations: 30.48 kB / 1.093 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.9007, allocations: 0 / 1.093 GB, free: 5.613 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.9007, allocations: 6.625 kB / 1.093 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.9007, allocations: 1.938 kB / 1.093 GB, free: 5.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.9008, allocations: 5.734 kB / 1.093 GB, free: 5.605 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006189/0.9014, allocations: 287.8 kB / 1.094 GB, free: 5.461 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001232/0.9015, allocations: 125.5 kB / 1.094 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.208e-05/0.9016, allocations: 2.984 kB / 1.094 GB, free: 5.34 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.9018, allocations: 17.61 kB / 1.094 GB, free: 5.336 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.815e-05/0.9019, allocations: 17.28 kB / 1.094 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/0.9019, allocations: 15.25 kB / 1.094 GB, free: 5.324 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002632/0.9022, allocations: 247 kB / 1.094 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9022, allocations: 1.312 kB / 1.094 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005265/0.9027, allocations: 127.3 kB / 1.094 GB, free: 5.164 MB / 0.8419 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.0003927/0.9031, allocations: 195 kB / 1.094 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0005721/0.9037, allocations: 239.2 kB / 1.094 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.9037, allocations: 1.594 kB / 1.094 GB, free: 4.93 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002182/0.904, allocations: 70.38 kB / 1.095 GB, free: 4.91 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.905, allocations: 209.7 kB / 1.095 GB, free: 4.855 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001573/0.9066, allocations: 0.7641 MB / 1.095 GB, free: 4.352 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.9069, allocations: 0.7896 MB / 1.096 GB, free: 3.648 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.907, allocations: 38.8 kB / 1.096 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of SimCode: time 3.6e-07/0.907, allocations: 0 / 1.096 GB, free: 3.637 MB / 0.8419 GB Notification: Performance of Templates: time 0.01375/0.9207, allocations: 6.145 MB / 1.102 GB, free: 2.918 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches