Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.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/ThermofluidStream 1.1.0-main/package.mo", uses=false) Using package ThermofluidStream with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/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(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|source.outlet.m_flow|tanValve.inlet.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 100.4 kB / 16.41 MB, free: 5.977 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.001213/0.001213, allocations: 192.8 kB / 17.34 MB, free: 5.586 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.253/1.253, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7357/0.7357, allocations: 91.19 MB / 382.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 83.88 kB / 0.5175 GB, free: 4.133 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3316, allocations: 67.69 MB / 0.5836 GB, free: 13.88 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.5692/0.9008, allocations: 164.4 MB / 0.7441 GB, free: 1.414 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01235/0.9132, allocations: 12.93 MB / 0.7567 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009803/0.9142, allocations: 36.09 kB / 0.7568 GB, free: 1.301 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001537/0.9158, allocations: 0.5858 MB / 0.7573 GB, free: 1.281 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002218/0.918, allocations: 0.8634 MB / 0.7582 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.9203, allocations: 0.8167 MB / 0.759 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001587/0.9219, allocations: 1.339 MB / 0.7603 GB, free: 1.242 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004189/0.9223, allocations: 317.8 kB / 0.7606 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006648/0.923, allocations: 0.5548 MB / 0.7611 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006601/0.9236, allocations: 0.6616 MB / 0.7618 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.772e-05/0.9237, allocations: 78.22 kB / 0.7619 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002589/0.9263, allocations: 1.388 MB / 0.7632 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001775/0.9265, allocations: 196 kB / 0.7634 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004697/0.927, allocations: 0.512 MB / 0.7639 GB, free: 1.152 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001798/0.9288, allocations: 1.561 MB / 0.7654 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.9288, allocations: 3.453 kB / 0.7654 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.974e-06/0.9288, allocations: 6.625 kB / 0.7654 GB, free: 0.9453 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.212e-05/0.9288, allocations: 0 / 0.7654 GB, free: 0.9453 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.002077/0.9309, allocations: 1.422 MB / 0.7668 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.931, allocations: 8.656 kB / 0.7668 GB, free: 16.14 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001616/0.9311, allocations: 127.2 kB / 0.767 GB, free: 16.08 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001025/0.9322, allocations: 0.7669 MB / 0.7677 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.9322, allocations: 57.31 kB / 0.7678 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.484e-05/0.9323, allocations: 66.28 kB / 0.7678 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009483/0.9333, allocations: 0.7328 MB / 0.7685 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.9333, allocations: 0 / 0.7685 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.878e-05/0.9333, allocations: 32.72 kB / 0.7686 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.423e-05/0.9334, allocations: 17.75 kB / 0.7686 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008776/0.9342, allocations: 0.6314 MB / 0.7692 GB, free: 15.67 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/0.9373, allocations: 3.11 MB / 0.7722 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.9383, allocations: 0.5697 MB / 0.7728 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.9387, allocations: 259.2 kB / 0.773 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002204/0.9409, allocations: 2.589 MB / 0.7756 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.9409, allocations: 38.5 kB / 0.7756 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 1.954e-06/0.9409, allocations: 0 / 0.7756 GB, free: 11.51 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.002969/0.9439, allocations: 1.782 MB / 0.7773 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.767e-05/0.9439, allocations: 59.91 kB / 0.7774 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000682/0.9446, allocations: 0.6879 MB / 0.7781 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.9447, allocations: 38.48 kB / 0.7781 GB, free: 10.61 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002696/0.945, allocations: 438.2 kB / 0.7785 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001234/0.9451, allocations: 191.1 kB / 0.7787 GB, free: 10.32 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001195/0.9452, allocations: 92.09 kB / 0.7788 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.9453, allocations: 327.3 kB / 0.7791 GB, free: 10 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.9456, allocations: 160.2 kB / 0.7793 GB, free: 10 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003324/0.946, allocations: 230.8 kB / 0.7795 GB, free: 9.949 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006456/0.9466, allocations: 435.1 kB / 0.7799 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.9466, allocations: 0.75 kB / 0.7799 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001067/0.9477, allocations: 0.6402 MB / 0.7805 GB, free: 9.789 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.9477, allocations: 7.688 kB / 0.7805 GB, free: 9.789 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.9477, allocations: 1.062 kB / 0.7805 GB, free: 9.789 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003737/0.9481, allocations: 118.1 kB / 0.7806 GB, free: 9.777 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.9485, allocations: 99.06 kB / 0.7807 GB, free: 9.777 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001943/0.9504, allocations: 2.046 MB / 0.7827 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002732/0.9507, allocations: 20.91 kB / 0.7828 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.743e-05/0.9507, allocations: 17.88 kB / 0.7828 GB, free: 8.398 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002607/0.951, allocations: 216.4 kB / 0.783 GB, free: 8.277 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.9511, allocations: 88.69 kB / 0.7831 GB, free: 8.227 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00136/0.9525, allocations: 0.8687 MB / 0.7839 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.9525, allocations: 5.719 kB / 0.7839 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.9525, allocations: 3.688 kB / 0.7839 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.9525, allocations: 2.906 kB / 0.7839 GB, free: 8.078 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.9545, allocations: 1.535 MB / 0.7854 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.9545, allocations: 2.062 kB / 0.7854 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000285/0.9548, allocations: 86.33 kB / 0.7855 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003127/0.9551, allocations: 118.7 kB / 0.7856 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.263e-05/0.9552, allocations: 19.73 kB / 0.7856 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002018/0.9572, allocations: 2.045 MB / 0.7876 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.9572, allocations: 3.062 kB / 0.7876 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.9586, allocations: 0.988 MB / 0.7886 GB, free: 6.086 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.9588, allocations: 154.6 kB / 0.7888 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.105e-05/0.9589, allocations: 16.86 kB / 0.7888 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000284/0.9592, allocations: 14.88 kB / 0.7888 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.636e-05/0.9593, allocations: 45.45 kB / 0.7888 GB, free: 5.945 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.9593, allocations: 24.8 kB / 0.7889 GB, free: 5.941 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0005344/0.9599, allocations: 0.502 MB / 0.7893 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.9599, allocations: 0.9062 kB / 0.7893 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008354/0.9607, allocations: 330.6 kB / 0.7897 GB, free: 5.82 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (flowResistance1.inlet.m_flow,flowResistance2.inlet.m_flow) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (48): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006596/0.9614, allocations: 486.7 kB / 0.7901 GB, free: 5.66 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00103/0.9624, allocations: 0.617 MB / 0.7907 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.9624, allocations: 3.266 kB / 0.7907 GB, free: 5.527 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000632/0.9631, allocations: 433.7 kB / 0.7911 GB, free: 5.402 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.9641, allocations: 274.9 kB / 0.7914 GB, free: 5.363 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.9664, allocations: 1.601 MB / 0.793 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.9669, allocations: 1.001 MB / 0.7939 GB, free: 3.941 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00016/0.9671, allocations: 79.97 kB / 0.794 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of SimCode: time 2.71e-07/0.9671, allocations: 0 / 0.794 GB, free: 3.938 MB / 0.5919 GB Notification: Performance of Templates: time 0.02128/0.9884, allocations: 18.99 MB / 0.8126 GB, free: 10.21 MB / 0.6075 GB make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.makefile (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.pipe 2>&1) diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.TanValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches