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.001981/0.001981, 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.003315/0.003315, allocations: 220.3 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.617/1.617, 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.8901/0.8901, allocations: 94.57 MB / 407 MB, free: 9.176 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.002584/0.002584, allocations: 87.03 kB / 0.5549 GB, free: 38.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.179, allocations: 73.06 MB / 0.6263 GB, free: 484 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.6407/0.8197, allocations: 150.3 MB / 0.7731 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.006666/0.8264, allocations: 4.666 MB / 0.7776 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009851/0.8274, allocations: 40.44 kB / 0.7776 GB, free: 1.926 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001236/0.8286, allocations: 297.9 kB / 0.7779 GB, free: 1.914 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002278/0.8309, allocations: 0.6773 MB / 0.7786 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001426/0.8323, allocations: 0.5167 MB / 0.7791 GB, free: 1.871 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001296/0.8336, allocations: 0.9995 MB / 0.7801 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000263/0.8339, allocations: 101.5 kB / 0.7802 GB, free: 1.836 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001371/0.8353, allocations: 0.5407 MB / 0.7807 GB, free: 1.832 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.8363, allocations: 478.7 kB / 0.7812 GB, free: 1.824 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.8365, allocations: 47.12 kB / 0.7812 GB, free: 1.82 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00233/0.8388, allocations: 0.7881 MB / 0.782 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001982/0.839, allocations: 121.2 kB / 0.7821 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004271/0.8394, allocations: 312.7 kB / 0.7824 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002013/0.8414, allocations: 0.9817 MB / 0.7833 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.8414, allocations: 0 / 0.7833 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.214e-06/0.8414, allocations: 0 / 0.7833 GB, free: 1.727 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.094e-05/0.8415, allocations: 0 / 0.7833 GB, free: 1.727 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.001863/0.8433, allocations: 0.9118 MB / 0.7842 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.928e-05/0.8434, allocations: 9.625 kB / 0.7842 GB, free: 17.19 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.8435, allocations: 80.94 kB / 0.7843 GB, free: 17.15 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.8436, allocations: 84.17 kB / 0.7844 GB, free: 17.11 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001058/0.8447, allocations: 482.3 kB / 0.7849 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.427e-05/0.8447, allocations: 33.03 kB / 0.7849 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.584e-05/0.8448, allocations: 42.5 kB / 0.7849 GB, free: 16.89 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009141/0.8457, allocations: 0.5096 MB / 0.7854 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.8458, allocations: 1.156 kB / 0.7854 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.789e-05/0.8458, allocations: 17.44 kB / 0.7854 GB, free: 16.8 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.164e-05/0.8458, allocations: 18.2 kB / 0.7855 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007122/0.8465, allocations: 496.4 kB / 0.7859 GB, free: 16.79 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002598/0.8491, allocations: 2.139 MB / 0.788 GB, free: 15.51 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006938/0.8498, allocations: 332 kB / 0.7883 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003001/0.8501, allocations: 181.4 kB / 0.7885 GB, free: 15.48 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002081/0.8522, allocations: 0.9322 MB / 0.7894 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.8522, allocations: 37.19 kB / 0.7895 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.124e-06/0.8522, allocations: 0 / 0.7895 GB, free: 15.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001509/0.8537, allocations: 0.6469 MB / 0.7901 GB, free: 15.05 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.672e-05/0.8538, allocations: 57.09 kB / 0.7901 GB, free: 14.99 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005035/0.8543, allocations: 482.9 kB / 0.7906 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.763e-05/0.8543, allocations: 35.55 kB / 0.7906 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002189/0.8546, allocations: 269.6 kB / 0.7909 GB, free: 14.72 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.263e-05/0.8547, allocations: 168 kB / 0.7911 GB, free: 14.61 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001093/0.8548, allocations: 90.81 kB / 0.7911 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001798/0.8549, allocations: 369.3 kB / 0.7915 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002273/0.8552, allocations: 130.7 kB / 0.7916 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002595/0.8554, allocations: 182.1 kB / 0.7918 GB, free: 14.23 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005146/0.8559, allocations: 346 kB / 0.7921 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.8559, allocations: 0 / 0.7921 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008661/0.8568, allocations: 0.5043 MB / 0.7926 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.8568, allocations: 9.062 kB / 0.7926 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.8568, allocations: 0 / 0.7926 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002956/0.8571, allocations: 68.88 kB / 0.7927 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000295/0.8574, allocations: 86.98 kB / 0.7928 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002675/0.8601, allocations: 2.725 MB / 0.7954 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/0.8605, allocations: 44.77 kB / 0.7955 GB, free: 11.57 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.453e-05/0.8605, allocations: 17.75 kB / 0.7955 GB, free: 11.57 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.0003389/0.8609, allocations: 172.2 kB / 0.7957 GB, free: 11.46 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.861, allocations: 65.58 kB / 0.7957 GB, free: 11.42 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001303/0.8623, allocations: 0.7005 MB / 0.7964 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.813e-06/0.8623, allocations: 4.75 kB / 0.7964 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.8623, allocations: 0 / 0.7964 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/0.8624, allocations: 4.453 kB / 0.7964 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001877/0.8642, allocations: 1.163 MB / 0.7976 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.8642, allocations: 0 / 0.7976 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.8645, allocations: 78.83 kB / 0.7976 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002302/0.8647, allocations: 66.97 kB / 0.7977 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.244e-05/0.8647, allocations: 16.8 kB / 0.7977 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002588/0.8673, allocations: 2.729 MB / 0.8004 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.8673, allocations: 0 / 0.8004 GB, free: 8.445 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001483/0.8688, allocations: 0.7673 MB / 0.8011 GB, free: 8.211 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001993/0.869, allocations: 63.19 kB / 0.8012 GB, free: 8.172 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.123e-05/0.8691, allocations: 16.03 kB / 0.8012 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.8693, allocations: 10.28 kB / 0.8012 GB, free: 8.168 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.8694, allocations: 46.69 kB / 0.8013 GB, free: 8.16 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.967e-05/0.8695, allocations: 16.73 kB / 0.8013 GB, free: 8.16 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004213/0.8699, allocations: 371.2 kB / 0.8016 GB, free: 8.074 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8699, allocations: 0 / 0.8016 GB, free: 8.074 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00078/0.8707, allocations: 190.6 kB / 0.8018 GB, free: 8.055 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.002035/0.8727, allocations: 1.483 MB / 0.8033 GB, free: 7.238 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001128/0.8738, allocations: 0.5652 MB / 0.8038 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.8739, allocations: 0 / 0.8038 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.000651/0.8745, allocations: 433.2 kB / 0.8042 GB, free: 6.777 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001212/0.8757, allocations: 193.2 kB / 0.8044 GB, free: 6.738 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007832/0.8835, allocations: 4.761 MB / 0.809 GB, free: 4.844 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/0.8842, allocations: 0.8716 MB / 0.8099 GB, free: 4.133 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0005847/0.8848, allocations: 127.6 kB / 0.81 GB, free: 4.102 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000366/0.8852, allocations: 234.4 kB / 0.8102 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of SimCode: time 1.964e-06/0.8852, allocations: 0 / 0.8102 GB, free: 4.094 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06517/0.9503, allocations: 17.04 MB / 0.8269 GB, free: 13.25 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.36, allocations: 9.094 kB / 0.8269 GB, free: 13.25 MB / 0.6075 GB " [Timeout remaining time 645] (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: 19.590080420999584]