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.001437/0.001437, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001739/0.001739, allocations: 213 kB / 22.25 MB, free: 4.855 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.514/1.514, allocations: 230.6 MB / 256 MB, free: 7.773 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.7693/0.7693, allocations: 94.62 MB / 407 MB, free: 8.848 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.002699/0.002699, allocations: 88.83 kB / 0.5554 GB, free: 38.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1267, allocations: 73.04 MB / 0.6267 GB, free: 15.68 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.502/0.6287, allocations: 129.2 MB / 0.7529 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005676/0.6343, allocations: 4.228 MB / 0.7571 GB, free: 3.559 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007712/0.6351, allocations: 43.34 kB / 0.7571 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009197/0.636, allocations: 274.3 kB / 0.7574 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002059/0.6381, allocations: 0.6651 MB / 0.758 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001541/0.6396, allocations: 0.5118 MB / 0.7585 GB, free: 3.516 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001463/0.6411, allocations: 0.9945 MB / 0.7595 GB, free: 3.512 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002865/0.6414, allocations: 98.38 kB / 0.7596 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001415/0.6428, allocations: 0.5433 MB / 0.7601 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009195/0.6437, allocations: 441.6 kB / 0.7605 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 9.891e-05/0.6438, allocations: 44.03 kB / 0.7606 GB, free: 3.496 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001605/0.6454, allocations: 0.6498 MB / 0.7612 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001674/0.6456, allocations: 127.4 kB / 0.7613 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003525/0.6459, allocations: 249.8 kB / 0.7616 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001785/0.6477, allocations: 0.958 MB / 0.7625 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6477, allocations: 3.266 kB / 0.7625 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.693e-06/0.6477, allocations: 0.9688 kB / 0.7625 GB, free: 3.414 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.716e-05/0.6478, allocations: 0 / 0.7625 GB, free: 3.414 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.00176/0.6495, allocations: 0.91 MB / 0.7634 GB, free: 18.88 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.6496, allocations: 8.812 kB / 0.7634 GB, free: 18.88 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004469/0.65, allocations: 102.5 kB / 0.7635 GB, free: 18.84 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009159/0.6509, allocations: 486.5 kB / 0.764 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.6509, allocations: 35.98 kB / 0.764 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.824e-05/0.651, allocations: 45.5 kB / 0.764 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007331/0.6518, allocations: 0.5111 MB / 0.7645 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.6518, allocations: 3.094 kB / 0.7645 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.719e-05/0.6518, allocations: 14.38 kB / 0.7646 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.6518, allocations: 11.59 kB / 0.7646 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006803/0.6525, allocations: 495.3 kB / 0.765 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.6548, allocations: 1.441 MB / 0.7664 GB, free: 17.94 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008474/0.6556, allocations: 334.2 kB / 0.7668 GB, free: 17.91 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003754/0.656, allocations: 183.8 kB / 0.7669 GB, free: 17.9 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00234/0.6584, allocations: 0.8373 MB / 0.7678 GB, free: 17.64 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.6584, allocations: 40.41 kB / 0.7678 GB, free: 17.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 3.416e-06/0.6584, allocations: 0.5625 kB / 0.7678 GB, free: 17.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001883/0.6603, allocations: 0.6324 MB / 0.7684 GB, free: 17.5 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.6603, allocations: 60.47 kB / 0.7685 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005203/0.6609, allocations: 418.9 kB / 0.7689 GB, free: 17.32 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.6609, allocations: 32.27 kB / 0.7689 GB, free: 17.29 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001794/0.6611, allocations: 280.8 kB / 0.7692 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.6612, allocations: 179.2 kB / 0.7693 GB, free: 17.05 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001175/0.6613, allocations: 78.81 kB / 0.7694 GB, free: 17.03 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001825/0.6615, allocations: 364.2 kB / 0.7698 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.6617, allocations: 130.4 kB / 0.7699 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.662, allocations: 183.9 kB / 0.7701 GB, free: 16.67 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005421/0.6625, allocations: 340.3 kB / 0.7704 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.6625, allocations: 2.344 kB / 0.7704 GB, free: 16.62 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.000911/0.6635, allocations: 0.4912 MB / 0.7709 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.6635, allocations: 9.844 kB / 0.7709 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.6635, allocations: 1.469 kB / 0.7709 GB, free: 16.53 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002941/0.6638, allocations: 62.69 kB / 0.7709 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003882/0.6642, allocations: 92.91 kB / 0.771 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002549/0.6667, allocations: 2.659 MB / 0.7736 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.6671, allocations: 31.75 kB / 0.7737 GB, free: 14.11 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.916e-05/0.6671, allocations: 26.12 kB / 0.7737 GB, free: 14.11 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.0002783/0.6674, allocations: 166.9 kB / 0.7738 GB, free: 14 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.6675, allocations: 59.83 kB / 0.7739 GB, free: 13.96 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001171/0.6687, allocations: 0.6791 MB / 0.7746 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.6687, allocations: 8.344 kB / 0.7746 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.6687, allocations: 1.375 kB / 0.7746 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.6687, allocations: 4.281 kB / 0.7746 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001652/0.6703, allocations: 0.992 MB / 0.7755 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.6703, allocations: 5.109 kB / 0.7755 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002758/0.6706, allocations: 67 kB / 0.7756 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002252/0.6708, allocations: 69.7 kB / 0.7757 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.6709, allocations: 15.45 kB / 0.7757 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.6731, allocations: 2.666 MB / 0.7783 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6731, allocations: 5.281 kB / 0.7783 GB, free: 11.12 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.6744, allocations: 0.726 MB / 0.779 GB, free: 10.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001191/0.6745, allocations: 52.75 kB / 0.7791 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.589e-05/0.6746, allocations: 14.19 kB / 0.7791 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.6748, allocations: 13.3 kB / 0.7791 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.6749, allocations: 40.91 kB / 0.7791 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-05/0.6749, allocations: 17.58 kB / 0.7791 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003553/0.6753, allocations: 314.8 kB / 0.7794 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6753, allocations: 0.8438 kB / 0.7794 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007034/0.676, allocations: 192.3 kB / 0.7796 GB, free: 10.75 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.0003995/0.6764, allocations: 252.6 kB / 0.7799 GB, free: 10.65 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009451/0.6773, allocations: 0.5633 MB / 0.7804 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.6773, allocations: 0 / 0.7804 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000557/0.6779, allocations: 429.4 kB / 0.7808 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007778/0.6787, allocations: 131.7 kB / 0.7809 GB, free: 10.16 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.6806, allocations: 1.117 MB / 0.782 GB, free: 9.676 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002288/0.6808, allocations: 274.1 kB / 0.7823 GB, free: 9.582 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003454/0.6811, allocations: 107.1 kB / 0.7824 GB, free: 9.566 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.6812, allocations: 55.42 kB / 0.7825 GB, free: 9.559 MB / 0.5919 GB Notification: Performance of SimCode: time 5.51e-07/0.6812, allocations: 3.938 kB / 0.7825 GB, free: 9.555 MB / 0.5919 GB Notification: Performance of Templates: time 0.01772/0.699, allocations: 9.99 MB / 0.7922 GB, free: 8.391 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.408637307584286]