Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00212/0.00212, allocations: 221.9 kB / 23 MB, free: 4.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.409/1.409, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo): time 0.7189/0.7189, allocations: 94.62 MB / 407.8 MB, free: 8.855 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") translateModel(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|flowResistance.rear.m_flow|flowResistance1.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002495/0.002495, allocations: 81.2 kB / 0.5562 GB, free: 38.43 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1085, allocations: 73.06 MB / 0.6275 GB, free: 15.69 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4446/0.5531, allocations: 129.2 MB / 0.7537 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005169/0.5583, allocations: 4.232 MB / 0.7578 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005763/0.5588, allocations: 39.03 kB / 0.7578 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0007797/0.5596, allocations: 276.1 kB / 0.7581 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.5612, allocations: 0.6625 MB / 0.7587 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.5625, allocations: 0.5186 MB / 0.7592 GB, free: 3.508 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001135/0.5637, allocations: 0.9874 MB / 0.7602 GB, free: 3.504 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002232/0.5639, allocations: 100.8 kB / 0.7603 GB, free: 3.492 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.5649, allocations: 0.5408 MB / 0.7608 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006549/0.5656, allocations: 441.2 kB / 0.7613 GB, free: 3.488 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.263e-05/0.5657, allocations: 47.59 kB / 0.7613 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.5671, allocations: 0.6526 MB / 0.7619 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.5672, allocations: 125.3 kB / 0.7621 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002517/0.5674, allocations: 256.8 kB / 0.7623 GB, free: 3.469 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.5687, allocations: 0.9501 MB / 0.7632 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.5687, allocations: 1.094 kB / 0.7632 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.462e-06/0.5687, allocations: 0.9375 kB / 0.7632 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.5687, allocations: 3.094 kB / 0.7632 GB, free: 3.402 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001545/0.5702, allocations: 0.9156 MB / 0.7641 GB, free: 18.87 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.317e-05/0.5703, allocations: 8.062 kB / 0.7641 GB, free: 18.87 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004231/0.5707, allocations: 103.3 kB / 0.7642 GB, free: 18.82 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008345/0.5715, allocations: 488 kB / 0.7647 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.532e-05/0.5716, allocations: 32.06 kB / 0.7647 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.83e-05/0.5716, allocations: 45.14 kB / 0.7648 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000671/0.5723, allocations: 0.5122 MB / 0.7653 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.5723, allocations: 3.875 kB / 0.7653 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.279e-05/0.5723, allocations: 15.39 kB / 0.7653 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.5723, allocations: 11.75 kB / 0.7653 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006466/0.573, allocations: 492.7 kB / 0.7658 GB, free: 18.53 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001987/0.575, allocations: 1.441 MB / 0.7672 GB, free: 17.93 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007541/0.5757, allocations: 340.9 kB / 0.7675 GB, free: 17.9 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003362/0.5761, allocations: 177.4 kB / 0.7677 GB, free: 17.89 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002088/0.5782, allocations: 0.8395 MB / 0.7685 GB, free: 17.62 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.197e-05/0.5782, allocations: 38.09 kB / 0.7685 GB, free: 17.59 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.305e-06/0.5782, allocations: 0.5 kB / 0.7685 GB, free: 17.59 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001653/0.5798, allocations: 0.6337 MB / 0.7692 GB, free: 17.49 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.5799, allocations: 63.81 kB / 0.7692 GB, free: 17.43 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004668/0.5804, allocations: 415.3 kB / 0.7696 GB, free: 17.31 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.5804, allocations: 35.67 kB / 0.7696 GB, free: 17.28 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001689/0.5806, allocations: 282.2 kB / 0.7699 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.517e-05/0.5807, allocations: 165.9 kB / 0.7701 GB, free: 17.04 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.5808, allocations: 82.69 kB / 0.7701 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000182/0.5809, allocations: 363.8 kB / 0.7705 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.5812, allocations: 127.8 kB / 0.7706 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002568/0.5814, allocations: 187 kB / 0.7708 GB, free: 16.66 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005117/0.5819, allocations: 338.3 kB / 0.7711 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.5819, allocations: 3.094 kB / 0.7711 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008175/0.5828, allocations: 0.4937 MB / 0.7716 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.5828, allocations: 5.812 kB / 0.7716 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.5828, allocations: 1.438 kB / 0.7716 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002638/0.583, allocations: 64.56 kB / 0.7717 GB, free: 16.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003469/0.5834, allocations: 89.84 kB / 0.7718 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002361/0.5857, allocations: 2.67 MB / 0.7744 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002809/0.586, allocations: 31.78 kB / 0.7744 GB, free: 14.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.959e-05/0.5861, allocations: 21.31 kB / 0.7744 GB, free: 14.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (49): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002623/0.5863, allocations: 173.9 kB / 0.7746 GB, free: 13.98 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/0.5864, allocations: 56.44 kB / 0.7746 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001113/0.5875, allocations: 0.6751 MB / 0.7753 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.5875, allocations: 5.812 kB / 0.7753 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.5875, allocations: 4.094 kB / 0.7753 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.5876, allocations: 1.875 kB / 0.7753 GB, free: 13.82 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001557/0.5891, allocations: 0.9941 MB / 0.7763 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.5891, allocations: 1.375 kB / 0.7763 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.5894, allocations: 68.06 kB / 0.7763 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000193/0.5895, allocations: 74 kB / 0.7764 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.869e-05/0.5896, allocations: 13.09 kB / 0.7764 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/0.5916, allocations: 2.667 MB / 0.779 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.5917, allocations: 4.125 kB / 0.779 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.5928, allocations: 0.7224 MB / 0.7797 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.484e-05/0.5929, allocations: 57.53 kB / 0.7798 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.956e-05/0.5929, allocations: 10.19 kB / 0.7798 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.5932, allocations: 12.59 kB / 0.7798 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.601e-05/0.5932, allocations: 45.69 kB / 0.7799 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.232e-05/0.5933, allocations: 17.86 kB / 0.7799 GB, free: 10.85 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003286/0.5936, allocations: 311.6 kB / 0.7802 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.5936, allocations: 0 / 0.7802 GB, free: 10.76 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006454/0.5942, allocations: 195.1 kB / 0.7804 GB, free: 10.73 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance.rear.m_flow,flowResistance1.rear.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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003726/0.5946, allocations: 260.6 kB / 0.7806 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008665/0.5955, allocations: 0.561 MB / 0.7812 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.5955, allocations: 0 / 0.7812 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.596, allocations: 426.4 kB / 0.7816 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007013/0.5967, allocations: 133.4 kB / 0.7817 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001761/0.5984, allocations: 1.143 MB / 0.7828 GB, free: 9.629 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.5987, allocations: 269.5 kB / 0.7831 GB, free: 9.535 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001369/0.5988, allocations: 63.27 kB / 0.7831 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of SimCode: time 6.61e-07/0.5988, allocations: 0 / 0.7831 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of Templates: time 0.01496/0.6138, allocations: 13.97 MB / 0.7968 GB, free: 8.109 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & ./ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.215337188914418]