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.001494/0.001494, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001843/0.001843, allocations: 219.8 kB / 23.03 MB, free: 4.945 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.489/1.489, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.8018/0.8018, allocations: 100.3 MB / 413.5 MB, free: 3.418 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance,fileNamePrefix="ThermofluidStream_dev_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.002441/0.002441, allocations: 94.94 kB / 0.564 GB, free: 35.94 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1392, allocations: 74.45 MB / 0.6367 GB, free: 7.395 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance): time 0.5761/0.7153, allocations: 129.1 MB / 0.7628 GB, free: 3.195 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00635/0.7216, allocations: 4.224 MB / 0.7669 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001009/0.7226, allocations: 38.28 kB / 0.767 GB, free: 3.168 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.7238, allocations: 271.8 kB / 0.7672 GB, free: 3.16 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002722/0.7265, allocations: 0.668 MB / 0.7679 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.002705/0.7292, allocations: 0.5093 MB / 0.7684 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.002285/0.7315, allocations: 0.9943 MB / 0.7693 GB, free: 3.129 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000448/0.732, allocations: 104.8 kB / 0.7694 GB, free: 3.109 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002369/0.7343, allocations: 0.5446 MB / 0.77 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001523/0.7359, allocations: 472.9 kB / 0.7704 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002299/0.7361, allocations: 44.16 kB / 0.7705 GB, free: 3.105 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002238/0.7383, allocations: 0.6606 MB / 0.7711 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.000253/0.7386, allocations: 121.6 kB / 0.7712 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.000676/0.7393, allocations: 255 kB / 0.7715 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003004/0.7423, allocations: 0.9592 MB / 0.7724 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/0.7423, allocations: 0.5 kB / 0.7724 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.973e-06/0.7423, allocations: 0.7812 kB / 0.7724 GB, free: 3.012 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 3.004e-05/0.7423, allocations: 0.5 kB / 0.7724 GB, free: 3.012 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.002857/0.7452, allocations: 0.9066 MB / 0.7733 GB, free: 18.48 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.7452, allocations: 11.14 kB / 0.7733 GB, free: 18.48 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.637e-05/0.7453, allocations: 11.94 kB / 0.7733 GB, free: 18.47 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001274/0.7454, allocations: 86.14 kB / 0.7734 GB, free: 18.43 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006526/0.746, allocations: 98.86 kB / 0.7735 GB, free: 18.39 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.7473, allocations: 484.4 kB / 0.7739 GB, free: 18.18 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.911e-05/0.7473, allocations: 34.55 kB / 0.774 GB, free: 18.18 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.963e-05/0.7474, allocations: 43.09 kB / 0.774 GB, free: 18.18 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009345/0.7484, allocations: 0.5094 MB / 0.7745 GB, free: 18.09 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.015e-05/0.7484, allocations: 6.359 kB / 0.7745 GB, free: 18.09 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.196e-05/0.7484, allocations: 18.81 kB / 0.7745 GB, free: 18.09 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.571e-05/0.7484, allocations: 9.781 kB / 0.7745 GB, free: 18.09 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000878/0.7493, allocations: 497.8 kB / 0.775 GB, free: 18.08 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002901/0.7522, allocations: 1.528 MB / 0.7765 GB, free: 17.44 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009028/0.7531, allocations: 336.1 kB / 0.7768 GB, free: 17.41 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003631/0.7535, allocations: 185.3 kB / 0.777 GB, free: 17.4 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002442/0.7559, allocations: 0.8492 MB / 0.7778 GB, free: 17.12 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.756, allocations: 38.12 kB / 0.7779 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=47): time 2.344e-06/0.756, allocations: 0 / 0.7779 GB, free: 17.09 MB / 0.5919 GB Notification: Performance of matching and sorting (n=47): time 0.001627/0.7576, allocations: 0.6439 MB / 0.7785 GB, free: 16.99 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.993e-05/0.7576, allocations: 57.59 kB / 0.7786 GB, free: 16.93 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005855/0.7582, allocations: 484 kB / 0.779 GB, free: 16.81 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.7583, allocations: 34.7 kB / 0.7791 GB, free: 16.78 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001872/0.7585, allocations: 269 kB / 0.7793 GB, free: 16.66 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.7586, allocations: 170.2 kB / 0.7795 GB, free: 16.55 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.7587, allocations: 80.52 kB / 0.7796 GB, free: 16.54 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001926/0.7589, allocations: 371.2 kB / 0.7799 GB, free: 16.22 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.7591, allocations: 127 kB / 0.78 GB, free: 16.22 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.7594, allocations: 185.6 kB / 0.7802 GB, free: 16.18 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005558/0.76, allocations: 342.2 kB / 0.7805 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.76, allocations: 0.9062 kB / 0.7805 GB, free: 16.13 MB / 0.5919 GB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009385/0.7609, allocations: 0.5006 MB / 0.781 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.7609, allocations: 5.406 kB / 0.781 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.761, allocations: 2.438 kB / 0.781 GB, free: 16.04 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002973/0.7613, allocations: 69.55 kB / 0.7811 GB, free: 16.02 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003512/0.7616, allocations: 89.44 kB / 0.7812 GB, free: 16.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002317/0.7639, allocations: 2.709 MB / 0.7838 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.7644, allocations: 44.94 kB / 0.7839 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.21e-05/0.7644, allocations: 21.02 kB / 0.7839 GB, free: 13.54 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.0002892/0.7647, allocations: 165.3 kB / 0.784 GB, free: 13.43 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001381/0.7648, allocations: 66.02 kB / 0.7841 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001231/0.7661, allocations: 0.6791 MB / 0.7848 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.7661, allocations: 3.625 kB / 0.7848 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.7661, allocations: 4.719 kB / 0.7848 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.7661, allocations: 6.516 kB / 0.7848 GB, free: 13.25 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001893/0.768, allocations: 1.043 MB / 0.7858 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.768, allocations: 1.031 kB / 0.7858 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002777/0.7683, allocations: 71.06 kB / 0.7859 GB, free: 12.91 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002305/0.7685, allocations: 67.73 kB / 0.7859 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.095e-05/0.7685, allocations: 13.92 kB / 0.786 GB, free: 12.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002172/0.7707, allocations: 2.71 MB / 0.7886 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.698e-06/0.7707, allocations: 7.062 kB / 0.7886 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.7719, allocations: 0.7423 MB / 0.7893 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001751/0.7721, allocations: 67.17 kB / 0.7894 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.7722, allocations: 11.97 kB / 0.7894 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000279/0.7725, allocations: 10.53 kB / 0.7894 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.094e-05/0.7726, allocations: 37.02 kB / 0.7895 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.7726, allocations: 21.2 kB / 0.7895 GB, free: 10.17 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0004554/0.7731, allocations: 365.8 kB / 0.7898 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7731, allocations: 0.9062 kB / 0.7898 GB, free: 10.08 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0007887/0.7739, allocations: 181.6 kB / 0.79 GB, free: 10.06 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.001838/0.7757, allocations: 1.43 MB / 0.7914 GB, free: 9.297 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.000966/0.7767, allocations: 0.5644 MB / 0.7919 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.7767, allocations: 0 / 0.7919 GB, free: 9.062 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0005526/0.7772, allocations: 419.4 kB / 0.7923 GB, free: 8.84 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001027/0.7782, allocations: 181.7 kB / 0.7925 GB, free: 8.824 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006881/0.7851, allocations: 4.735 MB / 0.7971 GB, free: 7.008 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002776/0.7854, allocations: 270.2 kB / 0.7974 GB, free: 6.914 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004194/0.7858, allocations: 115.8 kB / 0.7975 GB, free: 6.895 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002834/0.7861, allocations: 224 kB / 0.7977 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of SimCode: time 1.072e-06/0.7861, allocations: 0.9688 kB / 0.7977 GB, free: 6.887 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05065/0.8368, allocations: 17.26 MB / 0.8146 GB, free: 3.094 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.9, allocations: 20.53 kB / 0.8146 GB, free: 3.082 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ThermofluidStream_dev_ThermofluidStream.Undirected.Processes.Tests.TestFlowResistance_res.mat --tempDir=temp_ThermofluidStream_dev_ThermofluidStream_Undirected_Processes_Tests_TestFlowResistance_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=1200 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.72242270805873]