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.001622/0.001622, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001849/0.001849, allocations: 218.2 kB / 22.26 MB, free: 5.125 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.488/1.488, allocations: 230.6 MB / 256 MB, free: 7.984 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.7567/0.7567, allocations: 94.56 MB / 407 MB, free: 9.199 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.004098/0.004098, allocations: 88.45 kB / 0.5554 GB, free: 38.38 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1527, allocations: 73.05 MB / 0.6268 GB, free: 15.97 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4896/0.6423, allocations: 150.3 MB / 0.7735 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00581/0.6481, allocations: 4.664 MB / 0.7781 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008031/0.6489, allocations: 40.89 kB / 0.7781 GB, free: 2.125 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009596/0.6499, allocations: 300.8 kB / 0.7784 GB, free: 2.113 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.00198/0.6518, allocations: 0.6808 MB / 0.7791 GB, free: 2.086 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001543/0.6534, allocations: 0.5164 MB / 0.7796 GB, free: 2.066 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001515/0.6549, allocations: 0.9956 MB / 0.7805 GB, free: 2.062 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.6552, allocations: 103.3 kB / 0.7806 GB, free: 2.035 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.6564, allocations: 0.5458 MB / 0.7812 GB, free: 2.027 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007908/0.6572, allocations: 474.5 kB / 0.7816 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.6573, allocations: 43.38 kB / 0.7817 GB, free: 2.02 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002001/0.6593, allocations: 0.7921 MB / 0.7824 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.6595, allocations: 121.3 kB / 0.7826 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003974/0.6599, allocations: 315.8 kB / 0.7829 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001808/0.6617, allocations: 0.9694 MB / 0.7838 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.6617, allocations: 0 / 0.7838 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.773e-06/0.6617, allocations: 0 / 0.7838 GB, free: 1.934 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.159e-05/0.6617, allocations: 1.281 kB / 0.7838 GB, free: 1.934 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.001738/0.6634, allocations: 0.9135 MB / 0.7847 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.6635, allocations: 9.781 kB / 0.7847 GB, free: 17.39 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001292/0.6636, allocations: 80.3 kB / 0.7848 GB, free: 17.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009011/0.6645, allocations: 491.5 kB / 0.7852 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.654e-05/0.6645, allocations: 33.25 kB / 0.7853 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.6646, allocations: 43.25 kB / 0.7853 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007941/0.6654, allocations: 0.5168 MB / 0.7858 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.6654, allocations: 0 / 0.7858 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.62e-05/0.6655, allocations: 22 kB / 0.7858 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.311e-05/0.6655, allocations: 11.56 kB / 0.7859 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007405/0.6662, allocations: 497.9 kB / 0.7863 GB, free: 17.02 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002592/0.6688, allocations: 2.141 MB / 0.7884 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006951/0.6695, allocations: 336.5 kB / 0.7887 GB, free: 15.72 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/0.6698, allocations: 181.6 kB / 0.7889 GB, free: 15.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001861/0.6716, allocations: 0.9187 MB / 0.7898 GB, free: 15.43 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.6717, allocations: 40.62 kB / 0.7899 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.673e-06/0.6717, allocations: 0 / 0.7899 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001429/0.6731, allocations: 0.6484 MB / 0.7905 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.778e-05/0.6731, allocations: 60 kB / 0.7905 GB, free: 15.22 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004549/0.6736, allocations: 482.5 kB / 0.791 GB, free: 15.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.6736, allocations: 36.02 kB / 0.791 GB, free: 15.07 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001617/0.6738, allocations: 276.2 kB / 0.7913 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.244e-05/0.6739, allocations: 172.4 kB / 0.7915 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.674, allocations: 78.75 kB / 0.7915 GB, free: 14.82 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000168/0.6741, allocations: 374.6 kB / 0.7919 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002197/0.6744, allocations: 125.1 kB / 0.792 GB, free: 14.51 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.6746, allocations: 182.8 kB / 0.7922 GB, free: 14.47 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004941/0.6751, allocations: 344.5 kB / 0.7925 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.6751, allocations: 0 / 0.7925 GB, free: 14.42 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008337/0.6759, allocations: 0.5007 MB / 0.793 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.676, allocations: 5.312 kB / 0.793 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.676, allocations: 2.219 kB / 0.793 GB, free: 14.32 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/0.6762, allocations: 71.72 kB / 0.7931 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002862/0.6765, allocations: 93.2 kB / 0.7932 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002306/0.6788, allocations: 2.713 MB / 0.7958 GB, free: 11.84 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003782/0.6792, allocations: 45.42 kB / 0.7959 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.471e-05/0.6793, allocations: 19.55 kB / 0.7959 GB, free: 11.82 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.0002767/0.6795, allocations: 168.3 kB / 0.796 GB, free: 11.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001413/0.6797, allocations: 62.86 kB / 0.7961 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001211/0.6809, allocations: 0.7128 MB / 0.7968 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.6809, allocations: 4.938 kB / 0.7968 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.6809, allocations: 0 / 0.7968 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.323e-06/0.6809, allocations: 2.625 kB / 0.7968 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002291/0.6832, allocations: 1.161 MB / 0.7979 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.6832, allocations: 0 / 0.7979 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002557/0.6835, allocations: 75.66 kB / 0.798 GB, free: 11.17 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002414/0.6837, allocations: 75.94 kB / 0.7981 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.217e-05/0.6837, allocations: 14.91 kB / 0.7981 GB, free: 11.15 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002481/0.6862, allocations: 2.731 MB / 0.8008 GB, free: 8.684 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6862, allocations: 3.406 kB / 0.8008 GB, free: 8.684 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.6875, allocations: 0.7594 MB / 0.8015 GB, free: 8.449 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001731/0.6876, allocations: 65.58 kB / 0.8016 GB, free: 8.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.6877, allocations: 16.45 kB / 0.8016 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002317/0.688, allocations: 13.78 kB / 0.8016 GB, free: 8.406 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.316e-05/0.688, allocations: 43 kB / 0.8016 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.6881, allocations: 18.77 kB / 0.8017 GB, free: 8.398 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003931/0.6885, allocations: 368.6 kB / 0.802 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6885, allocations: 3.938 kB / 0.802 GB, free: 8.309 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007183/0.6892, allocations: 194.6 kB / 0.8022 GB, free: 8.289 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 (43): * Single equations (assignments): 41 * 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.0004258/0.6896, allocations: 277.6 kB / 0.8025 GB, free: 8.148 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001/0.6906, allocations: 0.5705 MB / 0.803 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.6906, allocations: 1.203 kB / 0.803 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005609/0.6912, allocations: 419.5 kB / 0.8034 GB, free: 7.688 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009668/0.6921, allocations: 188.3 kB / 0.8036 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002116/0.6943, allocations: 1.152 MB / 0.8047 GB, free: 7.07 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.6947, allocations: 0.8745 MB / 0.8056 GB, free: 6.359 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004186/0.6952, allocations: 125.8 kB / 0.8057 GB, free: 6.328 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.6953, allocations: 64.47 kB / 0.8058 GB, free: 6.32 MB / 0.5919 GB Notification: Performance of SimCode: time 1.192e-06/0.6953, allocations: 0 / 0.8058 GB, free: 6.32 MB / 0.5919 GB Notification: Performance of Templates: time 0.01952/0.7148, allocations: 10.86 MB / 0.8164 GB, free: 2.809 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/jenkins/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: 6.338388367090374]