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.001299/0.001299, 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.001464/0.001464, allocations: 218.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.422/1.422, allocations: 230.6 MB / 256 MB, free: 7.965 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.7909/0.7909, allocations: 94.56 MB / 407 MB, free: 9.18 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.002648/0.002648, allocations: 81.3 kB / 0.555 GB, free: 38.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1628, allocations: 73.06 MB / 0.6263 GB, free: 480 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.6475/0.8102, allocations: 150.3 MB / 0.7731 GB, free: 1.992 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.007432/0.8177, allocations: 4.67 MB / 0.7776 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008777/0.8186, allocations: 39.09 kB / 0.7776 GB, free: 1.902 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001175/0.8197, allocations: 297.3 kB / 0.7779 GB, free: 1.895 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002486/0.8222, allocations: 0.6834 MB / 0.7786 GB, free: 1.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001794/0.824, allocations: 0.5114 MB / 0.7791 GB, free: 1.848 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001484/0.8255, allocations: 0.9991 MB / 0.7801 GB, free: 1.844 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002487/0.8257, allocations: 102.2 kB / 0.7802 GB, free: 1.816 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001308/0.8271, allocations: 0.5444 MB / 0.7807 GB, free: 1.809 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009332/0.828, allocations: 474.6 kB / 0.7812 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.8281, allocations: 43.56 kB / 0.7812 GB, free: 1.801 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.8303, allocations: 0.794 MB / 0.782 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000154/0.8305, allocations: 118 kB / 0.7821 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.8309, allocations: 314.7 kB / 0.7824 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002153/0.833, allocations: 0.9763 MB / 0.7833 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.833, allocations: 0 / 0.7833 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.234e-06/0.833, allocations: 0 / 0.7833 GB, free: 1.707 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.264e-05/0.833, allocations: 0 / 0.7833 GB, free: 1.707 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.002338/0.8354, allocations: 0.9123 MB / 0.7842 GB, free: 17.17 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.8354, allocations: 9.625 kB / 0.7842 GB, free: 17.17 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.297e-05/0.8355, allocations: 82.98 kB / 0.7843 GB, free: 17.13 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001124/0.8356, allocations: 78.8 kB / 0.7844 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001007/0.8366, allocations: 485 kB / 0.7849 GB, free: 16.87 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.005e-05/0.8367, allocations: 32.44 kB / 0.7849 GB, free: 16.87 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.442e-05/0.8367, allocations: 43.88 kB / 0.7849 GB, free: 16.87 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008923/0.8376, allocations: 0.5168 MB / 0.7854 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.8376, allocations: 2.156 kB / 0.7854 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.716e-05/0.8377, allocations: 18.81 kB / 0.7855 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.413e-05/0.8377, allocations: 10.12 kB / 0.7855 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008101/0.8385, allocations: 496.5 kB / 0.7859 GB, free: 16.77 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/0.8413, allocations: 2.139 MB / 0.788 GB, free: 15.5 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008268/0.8422, allocations: 338.6 kB / 0.7883 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002805/0.8425, allocations: 180.7 kB / 0.7885 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002258/0.8447, allocations: 0.9261 MB / 0.7894 GB, free: 15.18 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.8447, allocations: 38.69 kB / 0.7895 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 1.743e-06/0.8447, allocations: 0 / 0.7895 GB, free: 15.13 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001604/0.8463, allocations: 0.6481 MB / 0.7901 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/0.8464, allocations: 59.19 kB / 0.7902 GB, free: 14.96 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004425/0.8468, allocations: 485.5 kB / 0.7906 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.298e-05/0.8469, allocations: 35.38 kB / 0.7906 GB, free: 14.81 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002992/0.8472, allocations: 267.8 kB / 0.7909 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 8.963e-05/0.8473, allocations: 174 kB / 0.7911 GB, free: 14.58 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.8474, allocations: 80.81 kB / 0.7911 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.000181/0.8476, allocations: 371.3 kB / 0.7915 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.8478, allocations: 129.4 kB / 0.7916 GB, free: 14.25 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.848, allocations: 186.2 kB / 0.7918 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005918/0.8486, allocations: 342.5 kB / 0.7921 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.8486, allocations: 0.875 kB / 0.7921 GB, free: 14.16 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008851/0.8495, allocations: 0.4987 MB / 0.7926 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.8495, allocations: 7.125 kB / 0.7926 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.8495, allocations: 1.203 kB / 0.7926 GB, free: 14.06 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002997/0.8498, allocations: 73.89 kB / 0.7927 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.8501, allocations: 88.84 kB / 0.7928 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002452/0.8526, allocations: 2.719 MB / 0.7954 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.8529, allocations: 41.77 kB / 0.7955 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.187e-05/0.8529, allocations: 24.19 kB / 0.7955 GB, free: 11.55 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.0002152/0.8531, allocations: 171.3 kB / 0.7957 GB, free: 11.43 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.931e-05/0.8532, allocations: 64.8 kB / 0.7957 GB, free: 11.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.8545, allocations: 0.7081 MB / 0.7964 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.8546, allocations: 9.344 kB / 0.7964 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.8546, allocations: 0 / 0.7964 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.8546, allocations: 2.828 kB / 0.7964 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/0.8565, allocations: 1.16 MB / 0.7976 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.8565, allocations: 0 / 0.7976 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002365/0.8567, allocations: 76.36 kB / 0.7976 GB, free: 10.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.8569, allocations: 66.48 kB / 0.7977 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.438e-05/0.857, allocations: 17.55 kB / 0.7977 GB, free: 10.89 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.8594, allocations: 2.728 MB / 0.8004 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.8594, allocations: 2.156 kB / 0.8004 GB, free: 8.426 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.8606, allocations: 0.769 MB / 0.8011 GB, free: 8.188 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001256/0.8607, allocations: 60.59 kB / 0.8012 GB, free: 8.148 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002112/0.861, allocations: 16.12 kB / 0.8012 GB, free: 8.145 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.8612, allocations: 13.25 kB / 0.8012 GB, free: 8.145 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.593e-05/0.8613, allocations: 41.39 kB / 0.8013 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.862e-05/0.8613, allocations: 19.92 kB / 0.8013 GB, free: 8.141 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003764/0.8617, allocations: 367.2 kB / 0.8016 GB, free: 8.055 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1e-07/0.8617, allocations: 3.938 kB / 0.8016 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007496/0.8624, allocations: 196.3 kB / 0.8018 GB, free: 8.027 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.001937/0.8644, allocations: 1.482 MB / 0.8033 GB, free: 7.211 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001011/0.8654, allocations: 0.5601 MB / 0.8038 GB, free: 6.984 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.896e-06/0.8654, allocations: 4.25 kB / 0.8038 GB, free: 6.98 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006371/0.866, allocations: 430.9 kB / 0.8042 GB, free: 6.75 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.867, allocations: 190.9 kB / 0.8044 GB, free: 6.715 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006955/0.874, allocations: 4.759 MB / 0.8091 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.8745, allocations: 0.8776 MB / 0.8099 GB, free: 4.109 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003862/0.8748, allocations: 119.3 kB / 0.81 GB, free: 4.078 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/0.8753, allocations: 239.3 kB / 0.8103 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of SimCode: time 1.022e-06/0.8753, allocations: 3.406 kB / 0.8103 GB, free: 4.066 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06628/0.9415, allocations: 17.03 MB / 0.8269 GB, free: 13.23 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.76, allocations: 6.641 kB / 0.8269 GB, free: 13.22 MB / 0.6075 GB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.467922959011048]