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.001321/0.001321, allocations: 101.9 kB / 19.73 MB, free: 1.992 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.001572/0.001572, allocations: 214.9 kB / 23.03 MB, free: 4.426 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.45/1.45, allocations: 230.6 MB / 256.8 MB, free: 7.805 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.7845/0.7845, allocations: 94.63 MB / 407.8 MB, free: 8.852 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance",fmuType="cs",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.002459/0.002459, allocations: 91.3 kB / 0.5557 GB, free: 38.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1302, allocations: 73.05 MB / 0.627 GB, free: 184 kB / 462.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.4933/0.6235, allocations: 129.1 MB / 0.7531 GB, free: 3.32 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.005591/0.6291, allocations: 4.22 MB / 0.7572 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007667/0.6299, allocations: 38.84 kB / 0.7573 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0009459/0.6308, allocations: 279.8 kB / 0.7575 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.001995/0.6328, allocations: 0.6631 MB / 0.7582 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.001675/0.6345, allocations: 0.5126 MB / 0.7587 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.001497/0.636, allocations: 0.9945 MB / 0.7597 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003096/0.6363, allocations: 100.4 kB / 0.7598 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00144/0.6378, allocations: 0.5485 MB / 0.7603 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009416/0.6387, allocations: 471.8 kB / 0.7607 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.000152/0.6389, allocations: 45.16 kB / 0.7608 GB, free: 3.254 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001677/0.6405, allocations: 0.6511 MB / 0.7614 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0001893/0.6407, allocations: 121.6 kB / 0.7615 GB, free: 3.242 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0004982/0.6412, allocations: 262.2 kB / 0.7618 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.001953/0.6432, allocations: 0.9583 MB / 0.7627 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.6432, allocations: 1.094 kB / 0.7627 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.673e-06/0.6432, allocations: 0 / 0.7627 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.838e-05/0.6432, allocations: 0 / 0.7627 GB, free: 3.16 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.002036/0.6452, allocations: 0.9198 MB / 0.7636 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.6453, allocations: 10.75 kB / 0.7636 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.948e-05/0.6453, allocations: 13.03 kB / 0.7636 GB, free: 18.63 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.446e-05/0.6454, allocations: 79.81 kB / 0.7637 GB, free: 18.59 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004895/0.6459, allocations: 102.8 kB / 0.7638 GB, free: 18.55 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001021/0.6469, allocations: 480.7 kB / 0.7643 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.002e-05/0.647, allocations: 35.38 kB / 0.7643 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.881e-05/0.647, allocations: 43.64 kB / 0.7644 GB, free: 18.34 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008213/0.6479, allocations: 0.5126 MB / 0.7649 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.6479, allocations: 0.9375 kB / 0.7649 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.685e-05/0.6479, allocations: 19.28 kB / 0.7649 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.186e-05/0.6479, allocations: 11.94 kB / 0.7649 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007176/0.6486, allocations: 497.4 kB / 0.7654 GB, free: 18.25 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00268/0.6513, allocations: 1.526 MB / 0.7668 GB, free: 17.61 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009421/0.6523, allocations: 336.8 kB / 0.7672 GB, free: 17.58 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004107/0.6527, allocations: 177.2 kB / 0.7673 GB, free: 17.57 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00241/0.6551, allocations: 0.8504 MB / 0.7682 GB, free: 17.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.6551, allocations: 41.16 kB / 0.7682 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.445e-06/0.6551, allocations: 0 / 0.7682 GB, free: 17.26 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001977/0.6571, allocations: 0.6392 MB / 0.7688 GB, free: 17.16 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.703e-05/0.6572, allocations: 58.94 kB / 0.7689 GB, free: 17.1 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006795/0.6578, allocations: 483.8 kB / 0.7693 GB, free: 16.98 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.44e-05/0.6579, allocations: 31.11 kB / 0.7694 GB, free: 16.95 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.6581, allocations: 274.9 kB / 0.7696 GB, free: 16.83 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001165/0.6582, allocations: 167.9 kB / 0.7698 GB, free: 16.72 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.6584, allocations: 82.39 kB / 0.7699 GB, free: 16.7 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001761/0.6585, allocations: 369 kB / 0.7702 GB, free: 16.39 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002535/0.6588, allocations: 130.2 kB / 0.7704 GB, free: 16.39 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000282/0.6591, allocations: 187.8 kB / 0.7705 GB, free: 16.35 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005514/0.6596, allocations: 340.4 kB / 0.7709 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.6596, allocations: 1.156 kB / 0.7709 GB, free: 16.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009866/0.6606, allocations: 0.4963 MB / 0.7713 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.6606, allocations: 5.5 kB / 0.7714 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.6606, allocations: 2.781 kB / 0.7714 GB, free: 16.21 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.661, allocations: 68.66 kB / 0.7714 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000426/0.6614, allocations: 89.58 kB / 0.7715 GB, free: 16.19 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002305/0.6637, allocations: 2.712 MB / 0.7742 GB, free: 13.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003559/0.664, allocations: 37.08 kB / 0.7742 GB, free: 13.72 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.466e-05/0.6641, allocations: 19.83 kB / 0.7742 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.0002842/0.6644, allocations: 173.4 kB / 0.7744 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.6645, allocations: 64.55 kB / 0.7744 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.6657, allocations: 0.68 MB / 0.7751 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.6657, allocations: 3.844 kB / 0.7751 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.6658, allocations: 2.469 kB / 0.7751 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.832e-06/0.6658, allocations: 6.75 kB / 0.7751 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001777/0.6675, allocations: 1.045 MB / 0.7761 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.6675, allocations: 1.375 kB / 0.7761 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002707/0.6678, allocations: 68.48 kB / 0.7762 GB, free: 13.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002201/0.668, allocations: 66.31 kB / 0.7763 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.6681, allocations: 16.02 kB / 0.7763 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002118/0.6702, allocations: 2.704 MB / 0.7789 GB, free: 10.64 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.6702, allocations: 9.734 kB / 0.7789 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.6713, allocations: 0.7425 MB / 0.7797 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.6715, allocations: 62.89 kB / 0.7797 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.784e-05/0.6715, allocations: 13.3 kB / 0.7797 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002627/0.6718, allocations: 12.36 kB / 0.7797 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.738e-05/0.6719, allocations: 35.56 kB / 0.7798 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.84e-05/0.6719, allocations: 25.12 kB / 0.7798 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004196/0.6723, allocations: 364 kB / 0.7801 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6723, allocations: 0 / 0.7801 GB, free: 10.27 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0006931/0.673, allocations: 182.3 kB / 0.7803 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.001702/0.6747, allocations: 1.435 MB / 0.7817 GB, free: 9.484 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0009999/0.6757, allocations: 0.5573 MB / 0.7823 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6757, allocations: 4.281 kB / 0.7823 GB, free: 9.25 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005558/0.6763, allocations: 426.5 kB / 0.7827 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.0009889/0.6773, allocations: 181.4 kB / 0.7828 GB, free: 9 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006452/0.6837, allocations: 4.728 MB / 0.7875 GB, free: 7.203 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.684, allocations: 270.5 kB / 0.7877 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003921/0.6844, allocations: 115.1 kB / 0.7878 GB, free: 7.09 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002905/0.6847, allocations: 229.4 kB / 0.788 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of SimCode: time 8.81e-07/0.6847, allocations: 0 / 0.788 GB, free: 7.082 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04731/0.732, allocations: 17.25 MB / 0.8049 GB, free: 4.426 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.98/13.71, allocations: 2.688 kB / 0.8049 GB, free: 4.426 MB / 0.5919 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.450114253908396]