Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001359/0.001359, allocations: 84.73 kB / 19.44 MB, free: 356 kB / 13.93 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.001582/0.001582, allocations: 157.7 kB / 22.75 MB, free: 1.684 MB / 18.57 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.49/1.49, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.0/package.mo): time 1.023/1.023, allocations: 118.6 MB / 378.2 MB, free: 1.477 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermofluidStream 1.4.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: 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_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_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.744e-06/1.744e-06, allocations: 0 / 482.9 MB, free: 8.285 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.503e-05/2.677e-05, allocations: 3.594 kB / 482.9 MB, free: 8.281 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.CheckValve): time 0.2152/0.2152, allocations: 125.7 MB / 0.5943 GB, free: 2.965 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.008332/0.2235, allocations: 3.108 MB / 0.5973 GB, free: 15.85 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007877/0.2243, allocations: 27.75 kB / 0.5974 GB, free: 15.82 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.001132/0.2255, allocations: 198.5 kB / 0.5975 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.002196/0.2277, allocations: 0.5432 MB / 0.5981 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.001948/0.2296, allocations: 418.4 kB / 0.5985 GB, free: 14.67 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.001676/0.2313, allocations: 0.8199 MB / 0.5993 GB, free: 13.84 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003237/0.2316, allocations: 78.67 kB / 0.5993 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.2333, allocations: 0.4984 MB / 0.5998 GB, free: 13.26 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009226/0.2342, allocations: 331.2 kB / 0.6001 GB, free: 12.94 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 0.0001332/0.2343, allocations: 32 kB / 0.6002 GB, free: 12.91 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00176/0.2361, allocations: 0.495 MB / 0.6007 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001943/0.2363, allocations: 95.55 kB / 0.6008 GB, free: 12.32 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0004022/0.2367, allocations: 171.5 kB / 0.6009 GB, free: 12.15 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.002092/0.2388, allocations: 0.771 MB / 0.6017 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.2388, allocations: 0 / 0.6017 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2388, allocations: 4 kB / 0.6017 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.99e-05/0.2388, allocations: 0 / 0.6017 GB, free: 11.37 MB / 0.5261 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.002394/0.2412, allocations: 0.7839 MB / 0.6024 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.2412, allocations: 8.031 kB / 0.6024 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/0.2416, allocations: 100.4 kB / 0.6025 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.2426, allocations: 390.3 kB / 0.6029 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.071e-05/0.2427, allocations: 25.38 kB / 0.6029 GB, free: 10.01 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.742e-05/0.2428, allocations: 40.36 kB / 0.603 GB, free: 9.969 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.2438, allocations: 424.5 kB / 0.6034 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.2439, allocations: 192 / 0.6034 GB, free: 9.539 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/0.2439, allocations: 16.12 kB / 0.6034 GB, free: 9.523 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.2439, allocations: 8 kB / 0.6034 GB, free: 9.516 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001063/0.245, allocations: 382.4 kB / 0.6038 GB, free: 9.141 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003038/0.248, allocations: 1.238 MB / 0.605 GB, free: 7.852 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.2495, allocations: 330.7 kB / 0.6053 GB, free: 7.52 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005526/0.2501, allocations: 152.7 kB / 0.6054 GB, free: 7.367 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003034/0.2531, allocations: 0.7106 MB / 0.6061 GB, free: 6.637 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007923/0.2539, allocations: 211.1 kB / 0.6063 GB, free: 6.418 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=37): time 3.546e-06/0.2539, allocations: 0 / 0.6063 GB, free: 6.418 MB / 0.5261 GB Notification: Performance of matching and sorting (n=37): time 0.00266/0.2566, allocations: 0.5404 MB / 0.6069 GB, free: 5.867 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.624e-05/0.2566, allocations: 63.39 kB / 0.6069 GB, free: 5.793 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006886/0.2573, allocations: 345.6 kB / 0.6073 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.073e-05/0.2574, allocations: 33.7 kB / 0.6073 GB, free: 5.406 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003356/0.2577, allocations: 228.5 kB / 0.6075 GB, free: 5.176 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002077/0.2579, allocations: 130.9 kB / 0.6076 GB, free: 5.047 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002286/0.2582, allocations: 77.95 kB / 0.6077 GB, free: 4.961 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002936/0.2585, allocations: 350.8 kB / 0.608 GB, free: 4.609 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005428/0.259, allocations: 146.4 kB / 0.6082 GB, free: 4.461 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006363/0.2596, allocations: 200.6 kB / 0.6084 GB, free: 4.242 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001214/0.2609, allocations: 335.2 kB / 0.6087 GB, free: 3.891 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.2609, allocations: 0 / 0.6087 GB, free: 3.891 MB / 0.5261 GB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001988/0.2628, allocations: 0.5217 MB / 0.6092 GB, free: 3.348 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.768e-05/0.2629, allocations: 33.7 kB / 0.6092 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2629, allocations: 0 / 0.6092 GB, free: 3.309 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004293/0.2634, allocations: 44.83 kB / 0.6093 GB, free: 3.262 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005352/0.2639, allocations: 75.89 kB / 0.6093 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.2661, allocations: 1.405 MB / 0.6107 GB, free: 1.684 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003989/0.2665, allocations: 39.75 kB / 0.6108 GB, free: 1.645 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.738e-05/0.2666, allocations: 19.98 kB / 0.6108 GB, free: 1.625 MB / 0.5261 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.0003545/0.2669, allocations: 161.6 kB / 0.6109 GB, free: 1.461 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.2671, allocations: 67.66 kB / 0.611 GB, free: 1.395 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.2688, allocations: 0.5169 MB / 0.6115 GB, free: 0.875 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/0.2688, allocations: 4 kB / 0.6115 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.409e-06/0.2688, allocations: 0 / 0.6115 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.154e-06/0.2688, allocations: 3.938 kB / 0.6115 GB, free: 0.8672 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00272/0.2715, allocations: 0.8676 MB / 0.6124 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.051e-06/0.2715, allocations: 0 / 0.6124 GB, free: 15.95 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003984/0.2719, allocations: 59.91 kB / 0.6124 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003284/0.2722, allocations: 44.88 kB / 0.6125 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.985e-05/0.2723, allocations: 19.98 kB / 0.6125 GB, free: 15.83 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002245/0.2745, allocations: 1.397 MB / 0.6138 GB, free: 14.33 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.004e-05/0.2746, allocations: 7.875 kB / 0.6138 GB, free: 14.32 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002186/0.2767, allocations: 0.6664 MB / 0.6145 GB, free: 13.62 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.277, allocations: 83.62 kB / 0.6146 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.582e-05/0.2771, allocations: 4 kB / 0.6146 GB, free: 13.54 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003808/0.2775, allocations: 15.98 kB / 0.6146 GB, free: 13.52 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001656/0.2777, allocations: 39.94 kB / 0.6146 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.914e-05/0.2777, allocations: 11.98 kB / 0.6146 GB, free: 13.47 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0004907/0.2782, allocations: 251.2 kB / 0.6149 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2782, allocations: 0 / 0.6149 GB, free: 13.23 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001042/0.2792, allocations: 179.6 kB / 0.6151 GB, free: 13.05 MB / 0.5417 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.0006984/0.2799, allocations: 238.1 kB / 0.6153 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001819/0.2818, allocations: 0.4982 MB / 0.6158 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.2818, allocations: 0 / 0.6158 GB, free: 12.29 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0008911/0.2827, allocations: 290.3 kB / 0.616 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/0.2844, allocations: 195.2 kB / 0.6162 GB, free: 11.81 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003571/0.288, allocations: 0.8617 MB / 0.6171 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004148/0.2884, allocations: 216.3 kB / 0.6173 GB, free: 10.67 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005457/0.289, allocations: 94.41 kB / 0.6174 GB, free: 10.6 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.2892, allocations: 52.48 kB / 0.6174 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of SimCode: time 1.392e-06/0.2892, allocations: 0 / 0.6174 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of Templates: time 0.03029/0.3195, allocations: 9.276 MB / 0.6265 GB, free: 1.473 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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: 6.319796919007786]