Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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: translateModel(Buildings.Fluid.Storage.Examples.ExpansionVessel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|expVes.port_a.p",fileNamePrefix="Buildings_9_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_9_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.001019/0.001019, allocations: 99.42 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 181.4 kB / 16.92 MB, free: 6.918 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.428/1.428, allocations: 223.3 MB / 241 MB, free: 5.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.556/2.556, allocations: 390.9 MB / 0.667 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004111/0.0004113, allocations: 8 kB / 0.8166 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7447/0.7451, allocations: 142.4 MB / 0.9557 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01412/0.7593, allocations: 13.89 MB / 0.9693 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007068/0.7664, allocations: 3.624 MB / 0.9728 GB, free: 9.648 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007847/0.7673, allocations: 17.38 kB / 0.9728 GB, free: 9.641 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006976/0.768, allocations: 168.8 kB / 0.973 GB, free: 9.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.7698, allocations: 0.537 MB / 0.9735 GB, free: 9.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.7709, allocations: 353.7 kB / 0.9738 GB, free: 8.812 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002148/0.773, allocations: 1.46 MB / 0.9753 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004959/0.7735, allocations: 262.1 kB / 0.9755 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006095/0.7742, allocations: 310.8 kB / 0.9758 GB, free: 7.68 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004323/0.7746, allocations: 302.4 kB / 0.9761 GB, free: 7.504 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.274e-05/0.7747, allocations: 17.34 kB / 0.9761 GB, free: 7.5 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006846/0.7753, allocations: 236.2 kB / 0.9763 GB, free: 7.375 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000108/0.7755, allocations: 76.39 kB / 0.9764 GB, free: 7.32 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002538/0.7757, allocations: 213.5 kB / 0.9766 GB, free: 7.176 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0005782/0.7763, allocations: 446.7 kB / 0.977 GB, free: 6.887 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.7763, allocations: 7.938 kB / 0.9771 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.553e-06/0.7763, allocations: 0 / 0.9771 GB, free: 6.879 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.403e-06/0.7763, allocations: 1.125 kB / 0.9771 GB, free: 6.879 MB / 0.7325 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.001187/0.7775, allocations: 0.6696 MB / 0.9777 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.7776, allocations: 9 kB / 0.9777 GB, free: 6.273 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002034/0.7778, allocations: 50.5 kB / 0.9778 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007974/0.7786, allocations: 481 kB / 0.9782 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.324e-05/0.7787, allocations: 22.84 kB / 0.9782 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.7787, allocations: 25.91 kB / 0.9783 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006499/0.7794, allocations: 326.5 kB / 0.9786 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.7794, allocations: 1.031 kB / 0.9786 GB, free: 5.586 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.573e-05/0.7795, allocations: 7.062 kB / 0.9786 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.778e-05/0.7795, allocations: 11.5 kB / 0.9786 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005413/0.78, allocations: 203.9 kB / 0.9788 GB, free: 5.488 MB / 0.7325 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.001984/0.782, allocations: 1.499 MB / 0.9803 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004737/0.7825, allocations: 164.8 kB / 0.9804 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.7827, allocations: 70.45 kB / 0.9805 GB, free: 3.973 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001745/0.7829, allocations: 87.81 kB / 0.9806 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003107/0.7832, allocations: 134.9 kB / 0.9807 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=15): time 1.974e-06/0.7832, allocations: 0 / 0.9807 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of matching and sorting (n=15): time 0.0006909/0.7839, allocations: 255.5 kB / 0.9809 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.784, allocations: 52.88 kB / 0.981 GB, free: 3.586 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003876/0.7844, allocations: 338.3 kB / 0.9813 GB, free: 3.363 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.909e-05/0.7844, allocations: 28.36 kB / 0.9813 GB, free: 3.332 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.7846, allocations: 220.5 kB / 0.9815 GB, free: 3.133 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.675e-05/0.7847, allocations: 53.75 kB / 0.9816 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.7847, allocations: 25.81 kB / 0.9816 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001241/0.7848, allocations: 342.6 kB / 0.9819 GB, free: 2.727 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002045/0.7851, allocations: 77.92 kB / 0.982 GB, free: 2.691 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002564/0.7853, allocations: 156.3 kB / 0.9822 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.7858, allocations: 256.5 kB / 0.9824 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.7858, allocations: 5.281 kB / 0.9824 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006592/0.7865, allocations: 321.7 kB / 0.9827 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.7865, allocations: 37.52 kB / 0.9828 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.7865, allocations: 2.438 kB / 0.9828 GB, free: 2.133 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.7866, allocations: 11.55 kB / 0.9828 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002358/0.7868, allocations: 55.97 kB / 0.9828 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.7868, allocations: 4.625 kB / 0.9828 GB, free: 2.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003199/0.7871, allocations: 45.33 kB / 0.9829 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.7872, allocations: 8.906 kB / 0.9829 GB, free: 2.086 MB / 0.7325 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.00018/0.7874, allocations: 157.5 kB / 0.983 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.165e-05/0.7874, allocations: 32.59 kB / 0.9831 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005046/0.7879, allocations: 209.2 kB / 0.9833 GB, free: 1.801 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.788, allocations: 9.969 kB / 0.9833 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.788, allocations: 0 / 0.9833 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005269/0.7885, allocations: 0.4885 MB / 0.9838 GB, free: 1.297 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004823/0.789, allocations: 352.8 kB / 0.9841 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.789, allocations: 1.531 kB / 0.9841 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001739/0.7892, allocations: 36.97 kB / 0.9841 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.7892, allocations: 0.9062 kB / 0.9841 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.7892, allocations: 1.562 kB / 0.9841 GB, free: 0.9648 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.722e-06/0.7892, allocations: 5.281 kB / 0.9841 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.7892, allocations: 0 / 0.9841 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006875/0.7899, allocations: 301.8 kB / 0.9844 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.7901, allocations: 124.9 kB / 0.9845 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.7901, allocations: 10.66 kB / 0.9846 GB, free: 0.6484 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002529/0.7904, allocations: 32 kB / 0.9846 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.285e-05/0.7905, allocations: 10.83 kB / 0.9846 GB, free: 0.625 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.7905, allocations: 13.33 kB / 0.9846 GB, free: 0.6172 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000256/0.7908, allocations: 237.5 kB / 0.9848 GB, free: 476 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7908, allocations: 0 / 0.9848 GB, free: 476 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004973/0.7913, allocations: 114.9 kB / 0.9849 GB, free: 452 kB / 0.7325 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.0003649/0.7916, allocations: 188.9 kB / 0.9851 GB, free: 316 kB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0005303/0.7922, allocations: 241 kB / 0.9854 GB, free: 172 kB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.7922, allocations: 1.25 kB / 0.9854 GB, free: 172 kB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002049/0.7924, allocations: 81.73 kB / 0.9854 GB, free: 136 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001021/0.7934, allocations: 192.7 kB / 0.9856 GB, free: 48 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001539/0.795, allocations: 0.9645 MB / 0.9866 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.7954, allocations: 0.7921 MB / 0.9873 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.14e-05/0.7955, allocations: 31.44 kB / 0.9874 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of SimCode: time 4.41e-07/0.7955, allocations: 0 / 0.9874 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of Templates: time 0.008999/0.8045, allocations: 5.905 MB / 0.9931 GB, free: 8.375 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.sim & ./Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_Examples_ExpansionVessel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.Examples.ExpansionVessel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches