Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.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.001566/0.001566, allocations: 84.59 kB / 19.76 MB, free: 2.023 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.001765/0.001765, allocations: 159.4 kB / 23.01 MB, free: 4.961 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.392/1.392, allocations: 177.2 MB / 203.4 MB, free: 8.957 MB / 190.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.7214/0.7214, allocations: 79.61 MB / 339.4 MB, free: 10.96 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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve") translateModel(ThermofluidStream.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.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.002486/0.002486, allocations: 84.34 kB / 0.4923 GB, free: 26.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1169, allocations: 74.59 MB / 0.5652 GB, free: 6 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1528/0.2697, allocations: 124 MB / 0.6863 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.004503/0.2742, allocations: 3.307 MB / 0.6895 GB, free: 6.191 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003024/0.2745, allocations: 23.75 kB / 0.6895 GB, free: 6.168 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.0005838/0.2751, allocations: 154.9 kB / 0.6897 GB, free: 6.016 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.001029/0.2761, allocations: 393.8 kB / 0.6901 GB, free: 5.629 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008373/0.277, allocations: 291 kB / 0.6903 GB, free: 5.344 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.0006512/0.2776, allocations: 0.525 MB / 0.6908 GB, free: 4.816 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.2778, allocations: 57.98 kB / 0.6909 GB, free: 4.754 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005348/0.2783, allocations: 270.9 kB / 0.6912 GB, free: 4.488 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003404/0.2786, allocations: 215 kB / 0.6914 GB, free: 4.277 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 4.758e-05/0.2787, allocations: 24 kB / 0.6914 GB, free: 4.254 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008359/0.2795, allocations: 427.3 kB / 0.6918 GB, free: 3.836 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.2796, allocations: 75.62 kB / 0.6919 GB, free: 3.762 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.2798, allocations: 139.3 kB / 0.692 GB, free: 3.625 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.0008129/0.2806, allocations: 0.537 MB / 0.6925 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.2806, allocations: 0 / 0.6925 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.212e-06/0.2806, allocations: 0 / 0.6925 GB, free: 3.086 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.2806, allocations: 0 / 0.6925 GB, free: 3.086 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001317/0.2819, allocations: 0.6974 MB / 0.6932 GB, free: 2.352 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.282, allocations: 9.469 kB / 0.6932 GB, free: 2.344 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.2821, allocations: 44.66 kB / 0.6933 GB, free: 2.301 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006206/0.2827, allocations: 319.3 kB / 0.6936 GB, free: 1.961 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.631e-05/0.2827, allocations: 20.62 kB / 0.6936 GB, free: 1.941 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.894e-05/0.2828, allocations: 24 kB / 0.6936 GB, free: 1.918 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005236/0.2833, allocations: 270.7 kB / 0.6939 GB, free: 1.637 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.117e-05/0.2833, allocations: 0 / 0.6939 GB, free: 1.637 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/0.2833, allocations: 4 kB / 0.6939 GB, free: 1.633 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.2833, allocations: 8 kB / 0.6939 GB, free: 1.625 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005078/0.2838, allocations: 225.9 kB / 0.6941 GB, free: 1.406 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001293/0.2851, allocations: 0.7172 MB / 0.6948 GB, free: 0.6523 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005441/0.2857, allocations: 226.3 kB / 0.695 GB, free: 432 kB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002355/0.2859, allocations: 97.83 kB / 0.6951 GB, free: 332 kB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2427/0.5286, allocations: 472.1 kB / 0.6955 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00036/0.529, allocations: 156.8 kB / 0.6957 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=23): time 2.515e-06/0.529, allocations: 0 / 0.6957 GB, free: 133.9 MB / 0.5919 GB Notification: Performance of matching and sorting (n=23): time 0.00115/0.5302, allocations: 387.8 kB / 0.6961 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/0.5302, allocations: 58.02 kB / 0.6961 GB, free: 133.8 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.5305, allocations: 329.4 kB / 0.6964 GB, free: 133.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.5306, allocations: 30.48 kB / 0.6965 GB, free: 133.6 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.5307, allocations: 203 kB / 0.6967 GB, free: 133.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.042e-05/0.5307, allocations: 84.66 kB / 0.6967 GB, free: 133.5 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.313e-05/0.5308, allocations: 47.52 kB / 0.6968 GB, free: 133.5 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.001e-05/0.5309, allocations: 347.6 kB / 0.6971 GB, free: 133.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.5311, allocations: 105.5 kB / 0.6972 GB, free: 133.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.5313, allocations: 141.2 kB / 0.6974 GB, free: 133.1 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.5317, allocations: 218.1 kB / 0.6976 GB, free: 133 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.5317, allocations: 0 / 0.6976 GB, free: 133 MB / 0.5919 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007124/0.5324, allocations: 378.1 kB / 0.6979 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 3.349e-05/0.5324, allocations: 36.38 kB / 0.698 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.65e-06/0.5325, allocations: 0.625 kB / 0.698 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002224/0.5327, allocations: 41.73 kB / 0.698 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002111/0.5329, allocations: 43.7 kB / 0.698 GB, free: 132.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008875/0.5338, allocations: 1.4 MB / 0.6994 GB, free: 131.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.534, allocations: 22.47 kB / 0.6994 GB, free: 131.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.534, allocations: 12.11 kB / 0.6994 GB, free: 131.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (25): * Single equations (assignments): 23 * 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.0001202/0.5341, allocations: 142.8 kB / 0.6996 GB, free: 131.5 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.816e-05/0.5342, allocations: 45.44 kB / 0.6996 GB, free: 131.5 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000726/0.5349, allocations: 335.4 kB / 0.6999 GB, free: 131.4 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.5349, allocations: 3.797 kB / 0.6999 GB, free: 131.4 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.5349, allocations: 4.094 kB / 0.6999 GB, free: 131.4 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.5349, allocations: 1.641 kB / 0.6999 GB, free: 131.4 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.5359, allocations: 0.6648 MB / 0.7006 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.5359, allocations: 1 kB / 0.7006 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001645/0.5361, allocations: 39.45 kB / 0.7006 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001352/0.5362, allocations: 44.5 kB / 0.7007 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.12e-05/0.5363, allocations: 8.188 kB / 0.7007 GB, free: 130.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000784/0.537, allocations: 1.388 MB / 0.702 GB, free: 129.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.537, allocations: 7.875 kB / 0.702 GB, free: 129.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008567/0.5379, allocations: 0.498 MB / 0.7025 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.772e-05/0.538, allocations: 37.06 kB / 0.7026 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.538, allocations: 6.594 kB / 0.7026 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001974/0.5382, allocations: 19.09 kB / 0.7026 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.615e-05/0.5383, allocations: 24.2 kB / 0.7026 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.231e-05/0.5383, allocations: 13.22 kB / 0.7026 GB, free: 129.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0002157/0.5385, allocations: 233.2 kB / 0.7029 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.5385, allocations: 0 / 0.7029 GB, free: 129.2 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0004708/0.539, allocations: 130.3 kB / 0.703 GB, free: 129.1 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (flowResistance.inlet.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 (22): * Single equations (assignments): 19 * 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.0003153/0.5393, allocations: 216 kB / 0.7032 GB, free: 129 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0007592/0.5401, allocations: 417.2 kB / 0.7036 GB, free: 128.8 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.5401, allocations: 0 / 0.7036 GB, free: 128.8 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0003663/0.5404, allocations: 237.9 kB / 0.7038 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005712/0.541, allocations: 101.4 kB / 0.7039 GB, free: 128.6 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.5421, allocations: 0.693 MB / 0.7046 GB, free: 128.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.5423, allocations: 185.1 kB / 0.7048 GB, free: 128.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001674/0.5424, allocations: 60.94 kB / 0.7048 GB, free: 128.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.155e-05/0.5425, allocations: 34.92 kB / 0.7048 GB, free: 128.1 MB / 0.5919 GB Notification: Performance of SimCode: time 4.51e-07/0.5425, allocations: 2.594 kB / 0.7049 GB, free: 128.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.01211/0.5546, allocations: 6.496 MB / 0.7112 GB, free: 126.4 MB / 0.5919 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -s ida -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.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: 5.673317250912078]