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.001609/0.001609, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001442/0.001442, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.1.0-main/package.mo): time 0.7119/0.7119, allocations: 91.19 MB / 382.4 MB, free: 7.523 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 80.2 kB / 0.5175 GB, free: 4.105 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3649/0.3667, allocations: 67.68 MB / 0.5836 GB, free: 13.91 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.TanValve): time 0.6039/0.9706, allocations: 164.4 MB / 0.7441 GB, free: 1.398 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01395/0.9846, allocations: 12.92 MB / 0.7567 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001358/0.986, allocations: 35.91 kB / 0.7568 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001767/0.9878, allocations: 0.5841 MB / 0.7573 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.003115/0.991, allocations: 0.8671 MB / 0.7582 GB, free: 1.246 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002927/0.9939, allocations: 0.818 MB / 0.759 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002475/0.9964, allocations: 1.333 MB / 0.7603 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005074/0.9969, allocations: 313.6 kB / 0.7606 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001064/0.998, allocations: 0.5572 MB / 0.7611 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008315/0.9988, allocations: 0.6606 MB / 0.7618 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001164/0.9989, allocations: 76.47 kB / 0.7619 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003393/1.002, allocations: 1.391 MB / 0.7632 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001953/1.003, allocations: 201.1 kB / 0.7634 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0006373/1.003, allocations: 0.5049 MB / 0.7639 GB, free: 1.137 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002929/1.006, allocations: 1.572 MB / 0.7654 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/1.006, allocations: 0 / 0.7654 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.944e-06/1.006, allocations: 0 / 0.7654 GB, free: 0.9297 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.27e-05/1.006, allocations: 0.9688 kB / 0.7654 GB, free: 0.9297 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.002353/1.009, allocations: 1.419 MB / 0.7668 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/1.009, allocations: 11.03 kB / 0.7668 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/1.009, allocations: 130.6 kB / 0.767 GB, free: 16.06 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001052/1.01, allocations: 0.774 MB / 0.7677 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.261e-05/1.01, allocations: 49.12 kB / 0.7678 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.667e-05/1.01, allocations: 71.19 kB / 0.7678 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001067/1.011, allocations: 0.7316 MB / 0.7685 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/1.011, allocations: 1.062 kB / 0.7685 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.321e-05/1.011, allocations: 28.98 kB / 0.7686 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/1.011, allocations: 16.31 kB / 0.7686 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009348/1.012, allocations: 0.6323 MB / 0.7692 GB, free: 15.65 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003255/1.015, allocations: 3.11 MB / 0.7722 GB, free: 13.84 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001116/1.017, allocations: 0.5738 MB / 0.7728 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003569/1.017, allocations: 259.4 kB / 0.773 GB, free: 13.8 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002421/1.019, allocations: 2.59 MB / 0.7756 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.98e-05/1.019, allocations: 37.97 kB / 0.7756 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=55): time 2.104e-06/1.019, allocations: 0.9062 kB / 0.7756 GB, free: 11.49 MB / 0.5919 GB Notification: Performance of matching and sorting (n=56): time 0.00323/1.023, allocations: 1.775 MB / 0.7773 GB, free: 10.82 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/1.023, allocations: 59.59 kB / 0.7774 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007675/1.023, allocations: 0.691 MB / 0.7781 GB, free: 10.62 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.099e-05/1.023, allocations: 34.95 kB / 0.7781 GB, free: 10.59 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002578/1.024, allocations: 438.2 kB / 0.7785 GB, free: 10.43 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001342/1.024, allocations: 193.5 kB / 0.7787 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001239/1.024, allocations: 88.98 kB / 0.7788 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001204/1.024, allocations: 327 kB / 0.7791 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002873/1.024, allocations: 164.1 kB / 0.7793 GB, free: 9.988 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003441/1.025, allocations: 225 kB / 0.7795 GB, free: 9.934 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007129/1.026, allocations: 434.6 kB / 0.7799 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.026, allocations: 0.8438 kB / 0.7799 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001088/1.027, allocations: 0.6451 MB / 0.7805 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/1.027, allocations: 5.531 kB / 0.7805 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/1.027, allocations: 3.656 kB / 0.7805 GB, free: 9.773 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003967/1.027, allocations: 116.8 kB / 0.7806 GB, free: 9.762 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003306/1.027, allocations: 96.67 kB / 0.7807 GB, free: 9.762 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/1.029, allocations: 2.053 MB / 0.7827 GB, free: 8.383 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003808/1.03, allocations: 15.3 kB / 0.7828 GB, free: 8.383 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-05/1.03, allocations: 19.44 kB / 0.7828 GB, free: 8.383 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.0003295/1.03, allocations: 214.4 kB / 0.783 GB, free: 8.262 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001507/1.03, allocations: 97.78 kB / 0.7831 GB, free: 8.207 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00143/1.032, allocations: 0.863 MB / 0.7839 GB, free: 8.059 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/1.032, allocations: 5.625 kB / 0.7839 GB, free: 8.059 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.032, allocations: 3.625 kB / 0.7839 GB, free: 8.059 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/1.032, allocations: 3 kB / 0.7839 GB, free: 8.059 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/1.034, allocations: 1.536 MB / 0.7854 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/1.034, allocations: 3.859 kB / 0.7854 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002946/1.034, allocations: 89.61 kB / 0.7855 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000333/1.035, allocations: 117.6 kB / 0.7856 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.731e-05/1.035, allocations: 19.36 kB / 0.7856 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002029/1.037, allocations: 2.046 MB / 0.7876 GB, free: 6.312 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/1.037, allocations: 2.812 kB / 0.7876 GB, free: 6.312 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001507/1.038, allocations: 0.9759 MB / 0.7886 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/1.039, allocations: 158.8 kB / 0.7888 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.26e-05/1.039, allocations: 12.91 kB / 0.7888 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/1.039, allocations: 19.56 kB / 0.7888 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/1.039, allocations: 43.14 kB / 0.7888 GB, free: 5.93 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.654e-05/1.039, allocations: 27.47 kB / 0.7888 GB, free: 5.926 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0006899/1.04, allocations: 0.5 MB / 0.7893 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.04, allocations: 0.8438 kB / 0.7893 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00114/1.041, allocations: 332 kB / 0.7897 GB, free: 5.805 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.000856/1.042, allocations: 489.8 kB / 0.7901 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00124/1.043, allocations: 0.6166 MB / 0.7907 GB, free: 5.512 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/1.043, allocations: 3.281 kB / 0.7907 GB, free: 5.512 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000713/1.044, allocations: 435.8 kB / 0.7911 GB, free: 5.387 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/1.045, allocations: 275.5 kB / 0.7914 GB, free: 5.344 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/1.048, allocations: 1.595 MB / 0.793 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000515/1.048, allocations: 1.001 MB / 0.7939 GB, free: 3.922 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/1.048, allocations: 82.12 kB / 0.794 GB, free: 3.918 MB / 0.5919 GB Notification: Performance of SimCode: time 7.62e-07/1.048, allocations: 0 / 0.794 GB, free: 3.918 MB / 0.5919 GB Notification: Performance of Templates: time 0.02598/1.074, allocations: 18.99 MB / 0.8126 GB, free: 10.19 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