Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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: 102.3 kB / 19.7 MB, free: 2.254 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.00138/0.00138, allocations: 217.9 kB / 23.01 MB, free: 4.609 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.334/1.334, allocations: 230.6 MB / 256.8 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 179] 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.7326/0.7326, allocations: 100.3 MB / 413.5 MB, free: 3.703 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: translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [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.002447/0.002447, allocations: 83.72 kB / 0.5645 GB, free: 35.59 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.122, allocations: 74.47 MB / 0.6372 GB, free: 7.199 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.4363/0.5583, allocations: 146 MB / 0.7798 GB, free: 188 kB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.003639/0.5619, allocations: 3.353 MB / 0.783 GB, free: 15.94 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004282/0.5623, allocations: 21.94 kB / 0.7831 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0006179/0.563, allocations: 215.6 kB / 0.7833 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.00111/0.5641, allocations: 0.4984 MB / 0.7837 GB, free: 15.7 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.000956/0.565, allocations: 411.8 kB / 0.7841 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.000756/0.5658, allocations: 0.7269 MB / 0.7849 GB, free: 15.46 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.566, allocations: 74.47 kB / 0.7849 GB, free: 15.45 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006195/0.5666, allocations: 381.2 kB / 0.7853 GB, free: 15.41 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004056/0.567, allocations: 362 kB / 0.7856 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 5.237e-05/0.567, allocations: 33.88 kB / 0.7857 GB, free: 15.39 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.5682, allocations: 0.5893 MB / 0.7862 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.5683, allocations: 90.56 kB / 0.7863 GB, free: 15.35 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0002554/0.5686, allocations: 244.5 kB / 0.7866 GB, free: 15.34 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.5697, allocations: 0.7364 MB / 0.7873 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.5697, allocations: 0.5 kB / 0.7873 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.613e-06/0.5697, allocations: 0.5938 kB / 0.7873 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.5697, allocations: 0 / 0.7873 GB, free: 15.29 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 83 * Number of variables: 83 Notification: Performance of Generate backend data structure: time 0.001474/0.5712, allocations: 0.7775 MB / 0.788 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.5712, allocations: 10.75 kB / 0.788 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001105/0.5713, allocations: 57.39 kB / 0.7881 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006081/0.572, allocations: 361.4 kB / 0.7884 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.862e-05/0.572, allocations: 25.78 kB / 0.7885 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.514e-05/0.572, allocations: 33.16 kB / 0.7885 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006267/0.5727, allocations: 428.8 kB / 0.7889 GB, free: 14.46 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.529e-05/0.5727, allocations: 7.938 kB / 0.7889 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.5727, allocations: 13.97 kB / 0.7889 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.165e-05/0.5727, allocations: 12.17 kB / 0.7889 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005902/0.5733, allocations: 378.8 kB / 0.7893 GB, free: 14.45 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002008/0.5753, allocations: 1.826 MB / 0.7911 GB, free: 13.23 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006654/0.576, allocations: 322.6 kB / 0.7914 GB, free: 13.2 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.5763, allocations: 149.9 kB / 0.7915 GB, free: 13.19 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001461/0.5777, allocations: 0.7583 MB / 0.7923 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003884/0.5781, allocations: 212 kB / 0.7925 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=37): time 1.674e-06/0.5781, allocations: 0 / 0.7925 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of matching and sorting (n=37): time 0.001202/0.5793, allocations: 0.5229 MB / 0.793 GB, free: 12.79 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.5794, allocations: 59.75 kB / 0.7931 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003168/0.5797, allocations: 357.2 kB / 0.7934 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.868e-05/0.5797, allocations: 38.95 kB / 0.7934 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.5799, allocations: 226.2 kB / 0.7936 GB, free: 12.45 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.58, allocations: 132.8 kB / 0.7938 GB, free: 12.37 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/0.5801, allocations: 74.06 kB / 0.7938 GB, free: 12.34 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.5802, allocations: 359.2 kB / 0.7942 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002312/0.5805, allocations: 115.8 kB / 0.7943 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.5807, allocations: 180.7 kB / 0.7945 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005169/0.5812, allocations: 334.2 kB / 0.7948 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.5812, allocations: 0 / 0.7948 GB, free: 11.88 MB / 0.5919 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000766/0.582, allocations: 469.3 kB / 0.7952 GB, free: 11.77 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/0.582, allocations: 31.89 kB / 0.7953 GB, free: 11.74 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.162e-06/0.582, allocations: 5.5 kB / 0.7953 GB, free: 11.73 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001973/0.5822, allocations: 49.91 kB / 0.7953 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.5825, allocations: 75.61 kB / 0.7954 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001234/0.5837, allocations: 1.425 MB / 0.7968 GB, free: 10.48 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.584, allocations: 47.95 kB / 0.7968 GB, free: 10.46 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.271e-05/0.584, allocations: 16.47 kB / 0.7968 GB, free: 10.46 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001767/0.5842, allocations: 163.4 kB / 0.797 GB, free: 10.34 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.558e-05/0.5842, allocations: 43.62 kB / 0.797 GB, free: 10.31 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009453/0.5852, allocations: 0.5129 MB / 0.7975 GB, free: 10.22 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.5852, allocations: 12.03 kB / 0.7976 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.5852, allocations: 0 / 0.7976 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.5852, allocations: 2.531 kB / 0.7976 GB, free: 10.21 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.5865, allocations: 0.9416 MB / 0.7985 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5865, allocations: 1.375 kB / 0.7985 GB, free: 9.891 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002138/0.5867, allocations: 69.44 kB / 0.7985 GB, free: 9.879 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001401/0.5869, allocations: 50.5 kB / 0.7986 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.5869, allocations: 12.67 kB / 0.7986 GB, free: 9.863 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.5881, allocations: 1.425 MB / 0.8 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.5881, allocations: 2.625 kB / 0.8 GB, free: 8.633 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009702/0.589, allocations: 0.6459 MB / 0.8006 GB, free: 8.434 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 6.724e-05/0.5891, allocations: 47.56 kB / 0.8007 GB, free: 8.402 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.153e-05/0.5892, allocations: 11.41 kB / 0.8007 GB, free: 8.402 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.5894, allocations: 14.84 kB / 0.8007 GB, free: 8.402 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.095e-05/0.5894, allocations: 45.17 kB / 0.8007 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.5895, allocations: 15.98 kB / 0.8008 GB, free: 8.395 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002363/0.5897, allocations: 266.6 kB / 0.801 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7e-08/0.5897, allocations: 0 / 0.801 GB, free: 8.312 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0005142/0.5902, allocations: 165.3 kB / 0.8012 GB, free: 8.289 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (flowResistance.rear.m_flow) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003334/0.5906, allocations: 245.1 kB / 0.8014 GB, free: 8.156 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0008135/0.5914, allocations: 484.1 kB / 0.8019 GB, free: 7.969 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5914, allocations: 4.062 kB / 0.8019 GB, free: 7.965 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0004135/0.5918, allocations: 286.9 kB / 0.8021 GB, free: 7.836 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006791/0.5925, allocations: 143.7 kB / 0.8023 GB, free: 7.816 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001547/0.594, allocations: 0.8853 MB / 0.8031 GB, free: 7.344 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004089/0.5944, allocations: 0.815 MB / 0.8039 GB, free: 6.645 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.5945, allocations: 52.36 kB / 0.804 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of SimCode: time 3.3e-07/0.5945, allocations: 0 / 0.804 GB, free: 6.637 MB / 0.5919 GB Notification: Performance of Templates: time 0.01127/0.6058, allocations: 9.276 MB / 0.813 GB, free: 2.605 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.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: 8.669231441803277]