Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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.001828/0.001828, allocations: 93.47 kB / 19.44 MB, free: 336 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.001988/0.001988, allocations: 169.2 kB / 22.76 MB, free: 1.664 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.556/1.556, 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.084/1.084, allocations: 118.6 MB / 378.2 MB, free: 1.492 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.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.TanValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_fore.rear.m_flow|pulse.T_start|pulse.count|tanValve.rear.m_flow",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0 / 482.9 MB, free: 8.324 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.454e-05/2.614e-05, allocations: 8.156 kB / 482.9 MB, free: 8.32 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2455/0.2455, allocations: 168.2 MB / 0.6358 GB, free: 8.277 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.3109/0.5564, allocations: 11.45 MB / 0.647 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001606/0.558, allocations: 68.91 kB / 0.6471 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.5602, allocations: 0.7437 MB / 0.6478 GB, free: 12.11 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.005194/0.5654, allocations: 1.848 MB / 0.6496 GB, free: 12.06 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.003444/0.5689, allocations: 1.159 MB / 0.6508 GB, free: 12.04 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.004375/0.5732, allocations: 2.785 MB / 0.6535 GB, free: 11.55 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009196/0.5742, allocations: 292.1 kB / 0.6538 GB, free: 27.47 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002675/0.5768, allocations: 1.518 MB / 0.6552 GB, free: 27.32 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001929/0.5788, allocations: 1.266 MB / 0.6565 GB, free: 27.21 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002402/0.579, allocations: 142.8 kB / 0.6566 GB, free: 27.21 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003879/0.5829, allocations: 1.694 MB / 0.6583 GB, free: 27.1 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003211/0.5832, allocations: 390.6 kB / 0.6586 GB, free: 27.03 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0009097/0.5841, allocations: 0.5967 MB / 0.6592 GB, free: 26.96 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.005662/0.5898, allocations: 2.728 MB / 0.6619 GB, free: 26.69 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.5898, allocations: 1.062 kB / 0.6619 GB, free: 26.69 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.803e-06/0.5898, allocations: 3.938 kB / 0.6619 GB, free: 26.68 MB / 0.573 GB Notification: Performance of Transformations before backend: time 4.038e-05/0.5898, allocations: 2.406 kB / 0.6619 GB, free: 26.68 MB / 0.573 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 305 * Number of variables: 305 Notification: Performance of Generate backend data structure: time 0.004673/0.5945, allocations: 2.22 MB / 0.6641 GB, free: 25.65 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5945, allocations: 12.38 kB / 0.6641 GB, free: 25.65 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006747/0.5952, allocations: 325.4 kB / 0.6644 GB, free: 25.53 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.5969, allocations: 0.9849 MB / 0.6653 GB, free: 25.21 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.534e-05/0.597, allocations: 89.59 kB / 0.6654 GB, free: 25.21 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002084/0.5972, allocations: 117.6 kB / 0.6655 GB, free: 25.21 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002425/0.5997, allocations: 1.276 MB / 0.6668 GB, free: 25.07 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.163e-05/0.5997, allocations: 4.078 kB / 0.6668 GB, free: 25.07 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001132/0.5998, allocations: 53.83 kB / 0.6668 GB, free: 25.07 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.435e-05/0.5998, allocations: 29.28 kB / 0.6669 GB, free: 25.07 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002227/0.6021, allocations: 1.06 MB / 0.6679 GB, free: 25.05 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006642/0.6087, allocations: 3.815 MB / 0.6716 GB, free: 24.13 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002158/0.6109, allocations: 1.033 MB / 0.6726 GB, free: 24.07 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009758/0.6118, allocations: 0.5061 MB / 0.6731 GB, free: 24.06 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004382/0.6162, allocations: 2.013 MB / 0.6751 GB, free: 23.66 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001289/0.6175, allocations: 0.6327 MB / 0.6757 GB, free: 23.6 MB / 0.573 GB Notification: Performance of pre-optimization done (n=128): time 4.238e-06/0.6175, allocations: 1.062 kB / 0.6757 GB, free: 23.6 MB / 0.573 GB Notification: Performance of matching and sorting (n=129): time 0.006747/0.6243, allocations: 3.221 MB / 0.6789 GB, free: 23.05 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.524e-05/0.6243, allocations: 67.72 kB / 0.6789 GB, free: 22.98 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001001/0.6253, allocations: 0.8491 MB / 0.6798 GB, free: 22.79 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.341e-05/0.6254, allocations: 45.95 kB / 0.6798 GB, free: 22.76 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004072/0.6258, allocations: 0.6318 MB / 0.6804 GB, free: 22.48 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.000284/0.6261, allocations: 484.7 kB / 0.6809 GB, free: 22.18 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003736/0.6265, allocations: 244.8 kB / 0.6811 GB, free: 22.15 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000294/0.6268, allocations: 0.5453 MB / 0.6816 GB, free: 21.67 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007276/0.6275, allocations: 420.1 kB / 0.682 GB, free: 21.63 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008774/0.6284, allocations: 0.5693 MB / 0.6826 GB, free: 21.5 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.63, allocations: 1.066 MB / 0.6836 GB, free: 21.37 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.63, allocations: 0 / 0.6836 GB, free: 21.37 MB / 0.573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002831/0.6329, allocations: 1.452 MB / 0.6851 GB, free: 21.14 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 5.728e-05/0.6329, allocations: 33.2 kB / 0.6851 GB, free: 21.11 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.6329, allocations: 3.438 kB / 0.6851 GB, free: 21.11 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006463/0.6336, allocations: 161 kB / 0.6852 GB, free: 21.1 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009117/0.6345, allocations: 245.2 kB / 0.6855 GB, free: 21.1 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004354/0.6388, allocations: 3.076 MB / 0.6885 GB, free: 19.11 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008456/0.6397, allocations: 46.77 kB / 0.6885 GB, free: 19.11 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/0.6398, allocations: 55.12 kB / 0.6886 GB, free: 19.11 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (126): * Single equations (assignments): 124 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006428/0.6405, allocations: 318.7 kB / 0.6889 GB, free: 18.95 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004185/0.6409, allocations: 193.6 kB / 0.6891 GB, free: 18.88 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003946/0.6448, allocations: 2.241 MB / 0.6913 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.6449, allocations: 20.59 kB / 0.6913 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.646e-05/0.6449, allocations: 2.344 kB / 0.6913 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.26e-05/0.6449, allocations: 8.719 kB / 0.6913 GB, free: 18.65 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005581/0.6505, allocations: 2.998 MB / 0.6942 GB, free: 18.23 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.6505, allocations: 3.688 kB / 0.6942 GB, free: 18.23 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009327/0.6514, allocations: 258.9 kB / 0.6945 GB, free: 18.23 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005431/0.652, allocations: 154.3 kB / 0.6946 GB, free: 18.21 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.93e-05/0.6521, allocations: 48.53 kB / 0.6947 GB, free: 18.21 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003121/0.6552, allocations: 2.882 MB / 0.6975 GB, free: 16.22 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.6552, allocations: 0 / 0.6975 GB, free: 16.22 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004032/0.6592, allocations: 2.268 MB / 0.6997 GB, free: 15.83 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006757/0.6599, allocations: 281.7 kB / 0.7 GB, free: 15.76 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001581/0.6601, allocations: 32.73 kB / 0.7 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005594/0.6606, allocations: 44.77 kB / 0.7 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/0.6609, allocations: 123.6 kB / 0.7002 GB, free: 15.75 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.661, allocations: 53.36 kB / 0.7002 GB, free: 15.75 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006763/0.6617, allocations: 0.5591 MB / 0.7007 GB, free: 15.6 MB / 0.573 GB Notification: Performance of sort global known variables: time 9e-08/0.6617, allocations: 0.9688 kB / 0.7007 GB, free: 15.6 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001788/0.6634, allocations: 0.5438 MB / 0.7013 GB, free: 15.55 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (flowResistance1.rear.m_flow,flowResistance2.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 (141): * Single equations (assignments): 138 * 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 {(3,11,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001107/0.6645, allocations: 0.593 MB / 0.7019 GB, free: 15.4 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002721/0.6673, allocations: 1.47 MB / 0.7033 GB, free: 15.07 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.6673, allocations: 1.031 kB / 0.7033 GB, free: 15.07 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.6689, allocations: 0.9239 MB / 0.7042 GB, free: 14.87 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002632/0.6715, allocations: 0.5258 MB / 0.7047 GB, free: 14.79 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004774/0.6763, allocations: 2.617 MB / 0.7073 GB, free: 13.77 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005739/0.6769, allocations: 0.6095 MB / 0.7079 GB, free: 13.64 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001279/0.6782, allocations: 332.7 kB / 0.7082 GB, free: 13.57 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003859/0.6786, allocations: 156.1 kB / 0.7083 GB, free: 13.56 MB / 0.573 GB Notification: Performance of SimCode: time 2.154e-06/0.6786, allocations: 0 / 0.7083 GB, free: 13.56 MB / 0.573 GB Notification: Performance of Templates: time 0.04711/0.7257, allocations: 29.7 MB / 0.7373 GB, free: 1.152 MB / 0.573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.TanValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.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: 7.625173341017216]