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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001586/0.001587, allocations: 106 kB / 15.99 MB, free: 6.352 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.001407/0.001407, allocations: 193 kB / 16.91 MB, free: 6.184 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.357/1.357, allocations: 222.9 MB / 240.6 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.253/2.253, allocations: 390.2 MB / 0.665 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 66.06 kB / 0.8127 GB, free: 33.07 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2964, allocations: 140.4 MB / 0.9498 GB, free: 9.262 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Examples.ExpansionVessel): time 0.01817/0.3146, allocations: 14.39 MB / 0.9638 GB, free: 10.82 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.006027/0.3207, allocations: 3.609 MB / 0.9673 GB, free: 7.195 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007539/0.3215, allocations: 23.88 kB / 0.9674 GB, free: 7.172 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.0006712/0.3222, allocations: 179 kB / 0.9675 GB, free: 6.996 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.001764/0.324, allocations: 0.5444 MB / 0.9681 GB, free: 6.449 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.001106/0.3251, allocations: 355.2 kB / 0.9684 GB, free: 6.105 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.001724/0.3268, allocations: 1.103 MB / 0.9695 GB, free: 4.996 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005782/0.3274, allocations: 320.5 kB / 0.9698 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001309/0.3287, allocations: 384.5 kB / 0.9701 GB, free: 4.309 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005965/0.3294, allocations: 310.6 kB / 0.9704 GB, free: 4.004 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 9.331e-05/0.3295, allocations: 35.94 kB / 0.9705 GB, free: 3.969 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007047/0.3302, allocations: 263.4 kB / 0.9707 GB, free: 3.711 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.3303, allocations: 87.73 kB / 0.9708 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0003136/0.3306, allocations: 222.9 kB / 0.971 GB, free: 3.406 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0007556/0.3314, allocations: 459.2 kB / 0.9715 GB, free: 2.957 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3314, allocations: 4 kB / 0.9715 GB, free: 2.953 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3314, allocations: 0 / 0.9715 GB, free: 2.953 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.706e-05/0.3314, allocations: 0 / 0.9715 GB, free: 2.953 MB / 0.7481 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.001489/0.3329, allocations: 0.738 MB / 0.9722 GB, free: 2.16 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.333, allocations: 11.97 kB / 0.9722 GB, free: 2.148 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000227/0.3332, allocations: 48.47 kB / 0.9722 GB, free: 2.102 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008945/0.3341, allocations: 479.8 kB / 0.9727 GB, free: 1.594 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.136e-05/0.3342, allocations: 24.67 kB / 0.9727 GB, free: 1.566 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.3342, allocations: 32 kB / 0.9728 GB, free: 1.535 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006312/0.3349, allocations: 310.2 kB / 0.9731 GB, free: 1.211 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/0.3349, allocations: 0 / 0.9731 GB, free: 1.211 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.3349, allocations: 12 kB / 0.9731 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.744e-05/0.335, allocations: 4 kB / 0.9731 GB, free: 1.195 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004783/0.3354, allocations: 194.1 kB / 0.9733 GB, free: 1.008 MB / 0.7481 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.002074/0.3375, allocations: 1.485 MB / 0.9747 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/0.338, allocations: 162.6 kB / 0.9749 GB, free: 15.22 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3382, allocations: 64.83 kB / 0.9749 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001439/0.3383, allocations: 89.09 kB / 0.975 GB, free: 15.05 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002914/0.3386, allocations: 125.4 kB / 0.9751 GB, free: 14.92 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.3386, allocations: 0 / 0.9751 GB, free: 14.92 MB / 0.7637 GB Notification: Performance of matching and sorting (n=15): time 0.000685/0.3393, allocations: 241 kB / 0.9754 GB, free: 14.68 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.22e-05/0.3394, allocations: 55.39 kB / 0.9754 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.3399, allocations: 337.6 kB / 0.9757 GB, free: 14.27 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.34, allocations: 33.69 kB / 0.9758 GB, free: 14.23 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.3401, allocations: 211.8 kB / 0.976 GB, free: 14.02 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 6.969e-05/0.3402, allocations: 51.34 kB / 0.976 GB, free: 13.97 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.49e-05/0.3403, allocations: 61.61 kB / 0.9761 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001962/0.3405, allocations: 338.8 kB / 0.9764 GB, free: 13.56 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.3408, allocations: 71.94 kB / 0.9765 GB, free: 13.49 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.341, allocations: 145.4 kB / 0.9766 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004393/0.3415, allocations: 244.8 kB / 0.9768 GB, free: 13.04 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3415, allocations: 0 / 0.9768 GB, free: 13.04 MB / 0.7637 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0006276/0.3421, allocations: 316.5 kB / 0.9771 GB, free: 12.72 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 4.117e-05/0.3422, allocations: 33.7 kB / 0.9772 GB, free: 12.68 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.3422, allocations: 7.938 kB / 0.9772 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.763e-05/0.3422, allocations: 11.88 kB / 0.9772 GB, free: 12.66 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002217/0.3424, allocations: 47.97 kB / 0.9772 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/0.3425, allocations: 8.25 kB / 0.9772 GB, free: 12.61 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003003/0.3428, allocations: 43.67 kB / 0.9773 GB, free: 12.56 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.073e-05/0.3428, allocations: 15.98 kB / 0.9773 GB, free: 12.55 MB / 0.7637 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.000181/0.343, allocations: 153.8 kB / 0.9774 GB, free: 12.39 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.725e-05/0.3431, allocations: 31.62 kB / 0.9775 GB, free: 12.36 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004702/0.3435, allocations: 199.7 kB / 0.9777 GB, free: 12.15 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3436, allocations: 3.938 kB / 0.9777 GB, free: 12.15 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.3436, allocations: 0 / 0.9777 GB, free: 12.15 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005001/0.3441, allocations: 491.6 kB / 0.9781 GB, free: 11.58 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004797/0.3446, allocations: 349.4 kB / 0.9785 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.3446, allocations: 0 / 0.9785 GB, free: 11.19 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.3448, allocations: 27.98 kB / 0.9785 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3448, allocations: 0 / 0.9785 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.945e-05/0.3448, allocations: 11.98 kB / 0.9785 GB, free: 11.15 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.671e-06/0.3448, allocations: 7.938 kB / 0.9785 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3448, allocations: 0 / 0.9785 GB, free: 11.14 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.3454, allocations: 276.4 kB / 0.9788 GB, free: 10.86 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001565/0.3456, allocations: 132.7 kB / 0.9789 GB, free: 10.71 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.97e-05/0.3457, allocations: 4 kB / 0.9789 GB, free: 10.7 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.3459, allocations: 27.91 kB / 0.9789 GB, free: 10.68 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/0.346, allocations: 11.98 kB / 0.979 GB, free: 10.66 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.3461, allocations: 15.98 kB / 0.979 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002474/0.3463, allocations: 235.2 kB / 0.9792 GB, free: 10.42 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3463, allocations: 0 / 0.9792 GB, free: 10.42 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.000474/0.3468, allocations: 116 kB / 0.9793 GB, free: 10.31 MB / 0.7637 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.0004127/0.3472, allocations: 183.3 kB / 0.9795 GB, free: 10.12 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0005788/0.3478, allocations: 247.1 kB / 0.9797 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 3.297e-06/0.3478, allocations: 0 / 0.9797 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0001901/0.348, allocations: 71.89 kB / 0.9798 GB, free: 9.797 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.3491, allocations: 215.3 kB / 0.98 GB, free: 9.602 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.3508, allocations: 0.8928 MB / 0.9809 GB, free: 8.676 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000404/0.3512, allocations: 0.7879 MB / 0.9816 GB, free: 7.859 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.3513, allocations: 31.44 kB / 0.9817 GB, free: 7.828 MB / 0.7637 GB Notification: Performance of SimCode: time 5.01e-07/0.3513, allocations: 0 / 0.9817 GB, free: 7.828 MB / 0.7637 GB Notification: Performance of Templates: time 0.01135/0.3627, allocations: 5.941 MB / 0.9875 GB, free: 1.934 MB / 0.7637 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