Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001418/0.001418, allocations: 99.64 kB / 18.95 MB, free: 2.676 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.001488/0.001488, allocations: 216.8 kB / 22.25 MB, free: 5.258 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.552/1.552, allocations: 230.6 MB / 256 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/package.mo): time 0.9983/0.9983, allocations: 100.9 MB / 413.3 MB, free: 2.871 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream main/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_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_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.00254/0.00254, allocations: 87.78 kB / 0.5641 GB, free: 35.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1631, allocations: 74.62 MB / 0.6369 GB, free: 6.484 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.6413/0.8044, allocations: 129.2 MB / 0.7631 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006964/0.8114, allocations: 4.232 MB / 0.7672 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001014/0.8124, allocations: 43.28 kB / 0.7673 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.00103/0.8134, allocations: 271.1 kB / 0.7675 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002377/0.8158, allocations: 0.6665 MB / 0.7682 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001637/0.8175, allocations: 0.5152 MB / 0.7687 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001426/0.8189, allocations: 0.9916 MB / 0.7697 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00028/0.8192, allocations: 101 kB / 0.7697 GB, free: 3.07 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001209/0.8204, allocations: 0.5465 MB / 0.7703 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005988/0.821, allocations: 439.2 kB / 0.7707 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.388e-05/0.821, allocations: 44.19 kB / 0.7707 GB, free: 3.066 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001783/0.8228, allocations: 0.6491 MB / 0.7714 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.8231, allocations: 121.2 kB / 0.7715 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0005542/0.8236, allocations: 251.9 kB / 0.7717 GB, free: 3.051 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002831/0.8264, allocations: 0.9566 MB / 0.7727 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.8264, allocations: 0.7969 kB / 0.7727 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.595e-06/0.8264, allocations: 1.719 kB / 0.7727 GB, free: 2.98 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.333e-05/0.8265, allocations: 0 / 0.7727 GB, free: 2.98 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.002219/0.8287, allocations: 0.9177 MB / 0.7736 GB, free: 18.45 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.8287, allocations: 12.09 kB / 0.7736 GB, free: 18.45 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001025/0.8288, allocations: 83.95 kB / 0.7737 GB, free: 18.41 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004611/0.8293, allocations: 97.41 kB / 0.7738 GB, free: 18.37 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.8303, allocations: 481.1 kB / 0.7742 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.903e-05/0.8304, allocations: 32 kB / 0.7742 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.113e-05/0.8305, allocations: 43.16 kB / 0.7743 GB, free: 18.15 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009288/0.8314, allocations: 0.5115 MB / 0.7748 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.8314, allocations: 2.094 kB / 0.7748 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.948e-05/0.8315, allocations: 18.17 kB / 0.7748 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.242e-05/0.8315, allocations: 11.81 kB / 0.7748 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009481/0.8324, allocations: 496.2 kB / 0.7753 GB, free: 18.06 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/0.8353, allocations: 1.529 MB / 0.7768 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/0.8362, allocations: 334.4 kB / 0.7771 GB, free: 17.38 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003505/0.8366, allocations: 176.5 kB / 0.7773 GB, free: 17.38 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002161/0.8387, allocations: 0.8539 MB / 0.7781 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.995e-05/0.8388, allocations: 38.89 kB / 0.7781 GB, free: 17.06 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 4.078e-06/0.8388, allocations: 1.875 kB / 0.7781 GB, free: 17.06 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001605/0.8404, allocations: 0.6386 MB / 0.7788 GB, free: 16.96 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.476e-05/0.8404, allocations: 58.31 kB / 0.7788 GB, free: 16.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005886/0.841, allocations: 480.5 kB / 0.7793 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.464e-05/0.8411, allocations: 34.55 kB / 0.7793 GB, free: 16.75 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.8413, allocations: 270.7 kB / 0.7796 GB, free: 16.63 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.8414, allocations: 170.8 kB / 0.7797 GB, free: 16.52 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.8415, allocations: 85.08 kB / 0.7798 GB, free: 16.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0002082/0.8417, allocations: 373 kB / 0.7802 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.842, allocations: 129.4 kB / 0.7803 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002998/0.8423, allocations: 187.1 kB / 0.7805 GB, free: 16.15 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005919/0.8429, allocations: 335.1 kB / 0.7808 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.8429, allocations: 1.203 kB / 0.7808 GB, free: 16.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009719/0.8439, allocations: 0.5027 MB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.55e-05/0.8439, allocations: 7.531 kB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.8439, allocations: 0.75 kB / 0.7813 GB, free: 16 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/0.8442, allocations: 69.02 kB / 0.7814 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003658/0.8446, allocations: 89.16 kB / 0.7814 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.8475, allocations: 2.705 MB / 0.7841 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004082/0.8479, allocations: 42.2 kB / 0.7841 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.858e-05/0.8479, allocations: 18.62 kB / 0.7841 GB, free: 13.52 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.0003269/0.8482, allocations: 171 kB / 0.7843 GB, free: 13.41 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001131/0.8484, allocations: 65.08 kB / 0.7844 GB, free: 13.37 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.8495, allocations: 0.6826 MB / 0.785 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.8495, allocations: 6.031 kB / 0.785 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.8495, allocations: 0 / 0.785 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.8495, allocations: 3.953 kB / 0.785 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001802/0.8513, allocations: 1.054 MB / 0.7861 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.8513, allocations: 2.062 kB / 0.7861 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.8516, allocations: 68.52 kB / 0.7861 GB, free: 12.88 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000216/0.8518, allocations: 66.64 kB / 0.7862 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.302e-05/0.8518, allocations: 12.75 kB / 0.7862 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/0.8542, allocations: 2.711 MB / 0.7889 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.8542, allocations: 5.281 kB / 0.7889 GB, free: 10.42 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.8554, allocations: 0.7417 MB / 0.7896 GB, free: 10.19 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.8556, allocations: 63.95 kB / 0.7896 GB, free: 10.15 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.269e-05/0.8556, allocations: 15.97 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002313/0.8559, allocations: 10.88 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/0.8559, allocations: 39.06 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/0.856, allocations: 17.06 kB / 0.7897 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004607/0.8564, allocations: 370.1 kB / 0.7901 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.8564, allocations: 1.094 kB / 0.7901 GB, free: 10.05 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007986/0.8572, allocations: 181.6 kB / 0.7903 GB, free: 10.04 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.001823/0.8591, allocations: 1.435 MB / 0.7917 GB, free: 9.262 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009852/0.86, allocations: 0.5569 MB / 0.7922 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.86, allocations: 3.969 kB / 0.7922 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005745/0.8606, allocations: 420 kB / 0.7926 GB, free: 8.805 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009956/0.8616, allocations: 180.7 kB / 0.7928 GB, free: 8.789 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006749/0.8684, allocations: 4.732 MB / 0.7974 GB, free: 6.973 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.8688, allocations: 271.5 kB / 0.7977 GB, free: 6.875 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004986/0.8693, allocations: 115.5 kB / 0.7978 GB, free: 6.852 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003381/0.8696, allocations: 227.4 kB / 0.798 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of SimCode: time 1.623e-06/0.8696, allocations: 0 / 0.798 GB, free: 6.844 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05435/0.9239, allocations: 17.56 MB / 0.8151 GB, free: 2.547 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.72/13.64, allocations: 13.22 kB / 0.8151 GB, free: 2.539 MB / 0.5919 GB " [Timeout remaining time 646] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.sim & python3 -m fmpy simulate --output-file ThermofluidStream_dev_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_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance.fmu > ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance.pipe 2>&1) [Timeout 1260.0] diffSimulationResults("ThermofluidStream_dev_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_dev_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_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv. Warning: Get data of variable Time from file ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.83135456778109]