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.001454/0.001454, allocations: 108.5 kB / 16.46 MB, free: 6.453 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.001508/0.001508, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.621/1.621, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.8081/0.8081, allocations: 94.55 MB / 403.4 MB, free: 10.16 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: "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) [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.002408/0.002408, allocations: 87.95 kB / 0.5499 GB, free: 39.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1371, allocations: 73.03 MB / 0.6212 GB, free: 2.094 MB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.5853/0.7223, allocations: 150.1 MB / 0.7678 GB, free: 2.082 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006307/0.7286, allocations: 4.646 MB / 0.7723 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.7298, allocations: 41.5 kB / 0.7723 GB, free: 2 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.731, allocations: 295 kB / 0.7726 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002651/0.7337, allocations: 0.6755 MB / 0.7733 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001724/0.7354, allocations: 0.5038 MB / 0.7738 GB, free: 1.945 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001884/0.7373, allocations: 0.983 MB / 0.7747 GB, free: 1.941 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003497/0.7376, allocations: 101.8 kB / 0.7748 GB, free: 1.918 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001595/0.7392, allocations: 0.5423 MB / 0.7754 GB, free: 1.91 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009224/0.7402, allocations: 477.3 kB / 0.7758 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000147/0.7403, allocations: 43.41 kB / 0.7758 GB, free: 1.906 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00215/0.7425, allocations: 0.7835 MB / 0.7766 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.7426, allocations: 118.1 kB / 0.7767 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004645/0.7431, allocations: 317.7 kB / 0.777 GB, free: 1.883 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002429/0.7455, allocations: 0.972 MB / 0.778 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.7455, allocations: 0 / 0.778 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.105e-06/0.7455, allocations: 5.375 kB / 0.778 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.584e-05/0.7455, allocations: 0 / 0.778 GB, free: 1.805 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.002127/0.7477, allocations: 0.9889 MB / 0.779 GB, free: 17.18 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.7477, allocations: 9.625 kB / 0.779 GB, free: 17.18 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001156/0.7478, allocations: 85.33 kB / 0.779 GB, free: 17.14 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001739/0.748, allocations: 80.17 kB / 0.7791 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008718/0.7489, allocations: 0.5383 MB / 0.7796 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.982e-05/0.7489, allocations: 41.7 kB / 0.7797 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.139e-05/0.749, allocations: 43.16 kB / 0.7797 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008469/0.7498, allocations: 0.5085 MB / 0.7802 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.7498, allocations: 0 / 0.7802 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.7499, allocations: 14.03 kB / 0.7802 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.7499, allocations: 11.25 kB / 0.7802 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006969/0.7506, allocations: 490.3 kB / 0.7807 GB, free: 16.71 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002673/0.7532, allocations: 2.172 MB / 0.7828 GB, free: 15.4 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007131/0.754, allocations: 332.4 kB / 0.7832 GB, free: 15.38 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003011/0.7543, allocations: 184.7 kB / 0.7833 GB, free: 15.36 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002639/0.7569, allocations: 1.998 MB / 0.7853 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.7569, allocations: 40.66 kB / 0.7853 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.743e-06/0.7569, allocations: 0 / 0.7853 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001563/0.7585, allocations: 0.7976 MB / 0.7861 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.37e-05/0.7585, allocations: 56.47 kB / 0.7861 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005165/0.759, allocations: 483.7 kB / 0.7866 GB, free: 13.22 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.43e-05/0.7591, allocations: 38.03 kB / 0.7866 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001633/0.7593, allocations: 271.1 kB / 0.7869 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.117e-05/0.7593, allocations: 170 kB / 0.7871 GB, free: 12.96 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.7595, allocations: 81.86 kB / 0.7871 GB, free: 12.94 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001696/0.7596, allocations: 372.9 kB / 0.7875 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000234/0.7599, allocations: 130.7 kB / 0.7876 GB, free: 12.62 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002863/0.7601, allocations: 182.7 kB / 0.7878 GB, free: 12.59 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.7607, allocations: 343.9 kB / 0.7881 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.7607, allocations: 0 / 0.7881 GB, free: 12.54 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008314/0.7615, allocations: 0.5071 MB / 0.7886 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.7615, allocations: 4.75 kB / 0.7886 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.7615, allocations: 2.875 kB / 0.7886 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002997/0.7618, allocations: 67 kB / 0.7887 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002972/0.7621, allocations: 88.33 kB / 0.7888 GB, free: 12.41 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002406/0.7645, allocations: 2.92 MB / 0.7916 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003065/0.7648, allocations: 43.34 kB / 0.7917 GB, free: 9.684 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.865e-05/0.7649, allocations: 17.34 kB / 0.7917 GB, free: 9.684 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.0002501/0.7651, allocations: 178.8 kB / 0.7919 GB, free: 9.562 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.7652, allocations: 62.73 kB / 0.7919 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001234/0.7665, allocations: 0.7142 MB / 0.7926 GB, free: 9.387 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.7665, allocations: 5.125 kB / 0.7926 GB, free: 9.387 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.147e-06/0.7665, allocations: 0 / 0.7926 GB, free: 9.387 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.7665, allocations: 5.766 kB / 0.7926 GB, free: 9.387 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001776/0.7683, allocations: 1.184 MB / 0.7938 GB, free: 8.996 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.7683, allocations: 2.625 kB / 0.7938 GB, free: 8.996 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002456/0.7685, allocations: 78.58 kB / 0.7939 GB, free: 8.992 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002296/0.7687, allocations: 75.89 kB / 0.7939 GB, free: 8.969 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.544e-05/0.7688, allocations: 17.39 kB / 0.7939 GB, free: 8.969 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.7712, allocations: 2.926 MB / 0.7968 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7712, allocations: 0 / 0.7968 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001262/0.7725, allocations: 0.7626 MB / 0.7976 GB, free: 6.023 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000187/0.7726, allocations: 142.8 kB / 0.7977 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.639e-05/0.7727, allocations: 14.81 kB / 0.7977 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/0.7729, allocations: 12.91 kB / 0.7977 GB, free: 5.887 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001005/0.773, allocations: 38.45 kB / 0.7978 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.7731, allocations: 17.45 kB / 0.7978 GB, free: 5.883 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004184/0.7735, allocations: 372.4 kB / 0.7981 GB, free: 5.793 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.1e-08/0.7735, allocations: 0 / 0.7981 GB, free: 5.793 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0008535/0.7743, allocations: 198.5 kB / 0.7983 GB, free: 5.77 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.002274/0.7766, allocations: 1.472 MB / 0.7997 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001202/0.7778, allocations: 0.5672 MB / 0.8003 GB, free: 4.73 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.7778, allocations: 0 / 0.8003 GB, free: 4.73 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006791/0.7785, allocations: 429.4 kB / 0.8007 GB, free: 4.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/0.7796, allocations: 188.2 kB / 0.8009 GB, free: 4.469 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007408/0.787, allocations: 4.767 MB / 0.8055 GB, free: 2.566 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000582/0.7876, allocations: 0.8688 MB / 0.8064 GB, free: 1.859 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004616/0.7881, allocations: 123.2 kB / 0.8065 GB, free: 1.828 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002949/0.7884, allocations: 238.4 kB / 0.8067 GB, free: 1.82 MB / 0.5919 GB Notification: Performance of SimCode: time 1.522e-06/0.7884, allocations: 0 / 0.8067 GB, free: 1.82 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05474/0.8431, allocations: 16.75 MB / 0.8231 GB, free: 11.59 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/12.15, allocations: 12 kB / 0.8231 GB, free: 11.58 MB / 0.6075 GB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv --start-time 0 --stop-time 10 --timeout 1200 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv","/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] "Error: Could not read variable Time in file ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv. Warning: Get data of variable Time from file ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.096191161006573]