Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_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.001468/0.001468, allocations: 88.72 kB / 19.44 MB, free: 352 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.001663/0.001663, allocations: 157.6 kB / 22.75 MB, free: 1.68 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.532/1.532, allocations: 177.1 MB / 203.1 MB, free: 5.613 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.12/1.12, allocations: 118.6 MB / 378.2 MB, free: 1.523 MB / 346.7 MB " [Timeout remaining time 178] 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.FlowControl.Tests.CheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|pulse.T_start|pulse.count|source.outlet.m_flow",fileNamePrefix="ThermofluidStream_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_ThermofluidStream.FlowControl.Tests.CheckValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 482.9 MB, free: 8.254 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.802e-05/2.972e-05, allocations: 3.656 kB / 482.9 MB, free: 8.25 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.FlowControl.Tests.CheckValve): time 0.1947/0.1947, allocations: 125.1 MB / 0.5937 GB, free: 3.594 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.004666/0.1994, allocations: 2.543 MB / 0.5962 GB, free: 1.043 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005251/0.1999, allocations: 23.75 kB / 0.5962 GB, free: 1.02 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.0007898/0.2007, allocations: 170.7 kB / 0.5963 GB, free: 0.8516 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.00153/0.2023, allocations: 429.2 kB / 0.5968 GB, free: 440 kB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001076/0.2033, allocations: 314.6 kB / 0.5971 GB, free: 124 kB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001004/0.2043, allocations: 0.6141 MB / 0.5977 GB, free: 15.5 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002118/0.2045, allocations: 57.92 kB / 0.5977 GB, free: 15.44 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009401/0.2055, allocations: 370.9 kB / 0.5981 GB, free: 15.08 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004222/0.2059, allocations: 199.4 kB / 0.5983 GB, free: 14.88 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 6.601e-05/0.206, allocations: 24 kB / 0.5983 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.2072, allocations: 447 kB / 0.5987 GB, free: 14.42 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 0.0001374/0.2074, allocations: 71.62 kB / 0.5988 GB, free: 14.35 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 0.0002172/0.2076, allocations: 119.6 kB / 0.5989 GB, free: 14.23 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.001313/0.2089, allocations: 0.5957 MB / 0.5995 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2089, allocations: 0 / 0.5995 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.083e-06/0.2089, allocations: 0 / 0.5995 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.556e-06/0.2089, allocations: 4 kB / 0.5995 GB, free: 13.63 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001771/0.2107, allocations: 0.709 MB / 0.6002 GB, free: 12.89 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.2107, allocations: 12.03 kB / 0.6002 GB, free: 12.88 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002258/0.211, allocations: 72.53 kB / 0.6002 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008731/0.2118, allocations: 374.4 kB / 0.6006 GB, free: 12.41 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.2119, allocations: 20.88 kB / 0.6006 GB, free: 12.39 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.455e-05/0.2119, allocations: 28.33 kB / 0.6007 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006407/0.2126, allocations: 276.1 kB / 0.6009 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.2126, allocations: 192 / 0.6009 GB, free: 12.07 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.468e-05/0.2126, allocations: 11.94 kB / 0.6009 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.2126, allocations: 4 kB / 0.6009 GB, free: 12.06 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005703/0.2132, allocations: 229.8 kB / 0.6011 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001615/0.2148, allocations: 0.8073 MB / 0.6019 GB, free: 10.99 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.2155, allocations: 214.3 kB / 0.6021 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/0.2157, allocations: 100.8 kB / 0.6022 GB, free: 10.67 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009326/0.2167, allocations: 468 kB / 0.6027 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004122/0.2171, allocations: 151.8 kB / 0.6028 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.2171, allocations: 0 / 0.6028 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of matching and sorting (n=23): time 0.00136/0.2184, allocations: 395.2 kB / 0.6032 GB, free: 9.641 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.098e-05/0.2185, allocations: 63.41 kB / 0.6033 GB, free: 9.566 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006305/0.2191, allocations: 361.6 kB / 0.6036 GB, free: 9.207 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.2192, allocations: 29.7 kB / 0.6036 GB, free: 9.172 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.2194, allocations: 220.3 kB / 0.6039 GB, free: 8.953 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.93e-05/0.2195, allocations: 79.33 kB / 0.6039 GB, free: 8.875 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.2196, allocations: 49.7 kB / 0.604 GB, free: 8.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000225/0.2198, allocations: 354.7 kB / 0.6043 GB, free: 8.465 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.2201, allocations: 105.7 kB / 0.6044 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003018/0.2204, allocations: 149 kB / 0.6046 GB, free: 8.191 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005099/0.2209, allocations: 220.4 kB / 0.6048 GB, free: 7.961 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2209, allocations: 0 / 0.6048 GB, free: 7.961 MB / 0.5261 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009504/0.2218, allocations: 397.2 kB / 0.6051 GB, free: 7.555 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.363e-05/0.2219, allocations: 44.91 kB / 0.6052 GB, free: 7.508 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.2219, allocations: 3.938 kB / 0.6052 GB, free: 7.504 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.2223, allocations: 52.75 kB / 0.6052 GB, free: 7.449 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002365/0.2225, allocations: 43.97 kB / 0.6053 GB, free: 7.406 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.2242, allocations: 1.394 MB / 0.6066 GB, free: 5.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002621/0.2244, allocations: 23.83 kB / 0.6067 GB, free: 5.883 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.63e-05/0.2245, allocations: 15.98 kB / 0.6067 GB, free: 5.867 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (26): * Single equations (assignments): 24 * 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.0002475/0.2247, allocations: 153.7 kB / 0.6068 GB, free: 5.707 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001558/0.2249, allocations: 51.77 kB / 0.6069 GB, free: 5.656 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009236/0.2258, allocations: 338.4 kB / 0.6072 GB, free: 5.316 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.2258, allocations: 3.938 kB / 0.6072 GB, free: 5.312 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.2258, allocations: 4 kB / 0.6072 GB, free: 5.309 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.2258, allocations: 144 / 0.6072 GB, free: 5.309 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001387/0.2272, allocations: 0.6499 MB / 0.6078 GB, free: 4.617 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.2272, allocations: 4 kB / 0.6078 GB, free: 4.613 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000183/0.2274, allocations: 44 kB / 0.6079 GB, free: 4.57 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.2276, allocations: 40.81 kB / 0.6079 GB, free: 4.527 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.2277, allocations: 15.98 kB / 0.6079 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001504/0.2292, allocations: 1.397 MB / 0.6093 GB, free: 3.012 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2292, allocations: 8.094 kB / 0.6093 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001145/0.2303, allocations: 0.503 MB / 0.6098 GB, free: 2.48 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.2305, allocations: 63.66 kB / 0.6099 GB, free: 2.418 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.181e-05/0.2305, allocations: 8 kB / 0.6099 GB, free: 2.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.2308, allocations: 15.98 kB / 0.6099 GB, free: 2.395 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.2309, allocations: 31.88 kB / 0.6099 GB, free: 2.363 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/0.2309, allocations: 16.06 kB / 0.6099 GB, free: 2.348 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0003416/0.2313, allocations: 255.2 kB / 0.6102 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2313, allocations: 0 / 0.6102 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006071/0.2319, allocations: 127.8 kB / 0.6103 GB, free: 1.98 MB / 0.5261 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.0005977/0.2325, allocations: 227.9 kB / 0.6105 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009868/0.2334, allocations: 422.9 kB / 0.6109 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2334, allocations: 0 / 0.6109 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0004954/0.2339, allocations: 239.5 kB / 0.6111 GB, free: 1.062 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009258/0.2349, allocations: 149 kB / 0.6113 GB, free: 0.9219 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.237, allocations: 0.7431 MB / 0.612 GB, free: 148 kB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.2372, allocations: 191.8 kB / 0.6122 GB, free: 15.94 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0002435/0.2374, allocations: 61.8 kB / 0.6123 GB, free: 15.89 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.2376, allocations: 40.48 kB / 0.6123 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of SimCode: time 1.242e-06/0.2376, allocations: 0 / 0.6123 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of Templates: time 0.01729/0.2549, allocations: 7.621 MB / 0.6197 GB, free: 8.406 MB / 0.5417 GB " [Timeout remaining time 660] make -j1 -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.sim & ./ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_ThermofluidStream.FlowControl.Tests.CheckValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.FlowControl.Tests.CheckValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_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: 6.5129158240160905]