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.001644/0.001644, 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.002174/0.002174, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.675/1.675, allocations: 230.6 MB / 256 MB, free: 7.785 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.9639/0.9639, allocations: 94.62 MB / 407 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: "" <> 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.002704/0.002704, allocations: 93.22 kB / 0.5549 GB, free: 38.43 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2029, allocations: 73.05 MB / 0.6263 GB, free: 172 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.7603/0.9632, allocations: 129.2 MB / 0.7524 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.007373/0.9706, allocations: 4.233 MB / 0.7566 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008982/0.9715, allocations: 40.38 kB / 0.7566 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.9725, allocations: 271.9 kB / 0.7569 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001964/0.9745, allocations: 0.6648 MB / 0.7575 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.9762, allocations: 0.5131 MB / 0.758 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001619/0.9778, allocations: 0.9912 MB / 0.759 GB, free: 3.262 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000327/0.9782, allocations: 99.81 kB / 0.7591 GB, free: 3.25 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.9798, allocations: 0.541 MB / 0.7596 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008168/0.9806, allocations: 443.5 kB / 0.76 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.839e-05/0.9807, allocations: 44.73 kB / 0.7601 GB, free: 3.246 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.9823, allocations: 0.6503 MB / 0.7607 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001825/0.9825, allocations: 125.2 kB / 0.7608 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003473/0.9829, allocations: 250.8 kB / 0.7611 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001829/0.9847, allocations: 0.9631 MB / 0.762 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.9847, allocations: 0 / 0.762 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.617e-06/0.9847, allocations: 0.9062 kB / 0.762 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.248e-05/0.9847, allocations: 3.188 kB / 0.762 GB, free: 3.156 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.002177/0.9869, allocations: 0.9078 MB / 0.7629 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.969e-05/0.987, allocations: 14.44 kB / 0.7629 GB, free: 18.62 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001151/0.9871, allocations: 81.78 kB / 0.763 GB, free: 18.58 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004358/0.9875, allocations: 102.5 kB / 0.7631 GB, free: 18.54 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001105/0.9886, allocations: 485.5 kB / 0.7636 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.713e-05/0.9886, allocations: 29.34 kB / 0.7636 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.306e-05/0.9887, allocations: 45.45 kB / 0.7636 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009855/0.9897, allocations: 0.514 MB / 0.7641 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.9897, allocations: 3.094 kB / 0.7641 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.038e-05/0.9898, allocations: 15.36 kB / 0.7642 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.55e-05/0.9898, allocations: 13.7 kB / 0.7642 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008353/0.9906, allocations: 491.8 kB / 0.7646 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002974/0.9936, allocations: 1.527 MB / 0.7661 GB, free: 17.61 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001065/0.9947, allocations: 333.4 kB / 0.7664 GB, free: 17.58 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004049/0.9951, allocations: 183.6 kB / 0.7666 GB, free: 17.57 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002452/0.9975, allocations: 0.8504 MB / 0.7675 GB, free: 17.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.808e-05/0.9976, allocations: 37.22 kB / 0.7675 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.124e-06/0.9976, allocations: 0.8125 kB / 0.7675 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001961/0.9995, allocations: 0.644 MB / 0.7681 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.9996, allocations: 58.98 kB / 0.7682 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006944/1, allocations: 484.7 kB / 0.7686 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.441e-05/1, allocations: 34.73 kB / 0.7687 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002345/1.001, allocations: 267.7 kB / 0.7689 GB, free: 16.83 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001175/1.001, allocations: 173.2 kB / 0.7691 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001374/1.001, allocations: 78.17 kB / 0.7692 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002413/1.001, allocations: 373.1 kB / 0.7695 GB, free: 16.39 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002693/1.001, allocations: 128.1 kB / 0.7696 GB, free: 16.39 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003009/1.002, allocations: 186.1 kB / 0.7698 GB, free: 16.35 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005831/1.002, allocations: 340.4 kB / 0.7701 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/1.002, allocations: 1.062 kB / 0.7701 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001061/1.003, allocations: 0.4999 MB / 0.7706 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.837e-05/1.003, allocations: 8.281 kB / 0.7706 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.258e-06/1.003, allocations: 2.062 kB / 0.7706 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003571/1.004, allocations: 65.98 kB / 0.7707 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/1.004, allocations: 92.77 kB / 0.7708 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002808/1.007, allocations: 2.702 MB / 0.7734 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002842/1.007, allocations: 42.31 kB / 0.7735 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.942e-05/1.007, allocations: 17 kB / 0.7735 GB, free: 13.72 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.0002935/1.008, allocations: 174 kB / 0.7737 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/1.008, allocations: 64.39 kB / 0.7737 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/1.009, allocations: 0.6796 MB / 0.7744 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/1.009, allocations: 5.188 kB / 0.7744 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/1.009, allocations: 5.312 kB / 0.7744 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.225e-06/1.009, allocations: 3.422 kB / 0.7744 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001843/1.011, allocations: 1.048 MB / 0.7754 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/1.011, allocations: 2.219 kB / 0.7754 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002701/1.011, allocations: 65.02 kB / 0.7755 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00021/1.011, allocations: 72.86 kB / 0.7756 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.485e-05/1.011, allocations: 14.97 kB / 0.7756 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002408/1.014, allocations: 2.702 MB / 0.7782 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/1.014, allocations: 9.5 kB / 0.7782 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001233/1.015, allocations: 0.7356 MB / 0.7789 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.753e-05/1.015, allocations: 63.94 kB / 0.779 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.045e-05/1.015, allocations: 15.78 kB / 0.779 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/1.015, allocations: 12.16 kB / 0.779 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.282e-05/1.015, allocations: 37.12 kB / 0.7791 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/1.016, allocations: 17.41 kB / 0.7791 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004375/1.016, allocations: 371.7 kB / 0.7794 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/1.016, allocations: 1 kB / 0.7794 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007127/1.017, allocations: 176.8 kB / 0.7796 GB, free: 10.25 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.001903/1.019, allocations: 1.438 MB / 0.781 GB, free: 9.484 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009964/1.02, allocations: 0.5556 MB / 0.7815 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/1.02, allocations: 0.9375 kB / 0.7815 GB, free: 9.254 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005649/1.02, allocations: 428.9 kB / 0.782 GB, free: 9.02 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009601/1.021, allocations: 182.8 kB / 0.7821 GB, free: 8.996 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006724/1.028, allocations: 4.718 MB / 0.7867 GB, free: 7.207 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002965/1.028, allocations: 271.7 kB / 0.787 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004116/1.029, allocations: 114.9 kB / 0.7871 GB, free: 7.09 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000288/1.029, allocations: 229.1 kB / 0.7873 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of SimCode: time 1.002e-06/1.029, allocations: 0.9062 kB / 0.7873 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05999/1.089, allocations: 17.56 MB / 0.8045 GB, free: 4.031 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.49/15.58, allocations: 7.094 kB / 0.8045 GB, free: 4.027 MB / 0.5919 GB " [Timeout remaining time 644] (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: 20.143298710230738]