Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_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.001842/0.001842, allocations: 81.5 kB / 19.44 MB, free: 344 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.00212/0.00212, allocations: 173.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.561/1.561, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 1.064/1.064, allocations: 118.6 MB / 378.2 MB, free: 1.461 MB / 346.7 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.4.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.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_dev_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_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 482.9 MB, free: 8.305 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.521e-05/2.658e-05, allocations: 10.25 kB / 482.9 MB, free: 8.293 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2479/0.2479, allocations: 168.2 MB / 0.6358 GB, free: 8.258 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2992/0.5471, allocations: 11.45 MB / 0.647 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00188/0.549, allocations: 67.81 kB / 0.6471 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.5512, allocations: 0.7405 MB / 0.6478 GB, free: 12.05 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.005086/0.5563, allocations: 1.853 MB / 0.6496 GB, free: 12 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.003227/0.5595, allocations: 1.157 MB / 0.6508 GB, free: 11.97 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.00411/0.5636, allocations: 2.793 MB / 0.6535 GB, free: 11.49 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009398/0.5646, allocations: 291.2 kB / 0.6538 GB, free: 27.41 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002653/0.5672, allocations: 1.51 MB / 0.6552 GB, free: 27.26 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.5688, allocations: 1.27 MB / 0.6565 GB, free: 27.15 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.00019/0.569, allocations: 144.3 kB / 0.6566 GB, free: 27.15 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003736/0.5727, allocations: 1.696 MB / 0.6583 GB, free: 27.04 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002923/0.573, allocations: 384.5 kB / 0.6586 GB, free: 26.97 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0007053/0.5737, allocations: 0.6001 MB / 0.6592 GB, free: 26.9 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.00436/0.5781, allocations: 2.728 MB / 0.6619 GB, free: 26.62 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.5781, allocations: 0 / 0.6619 GB, free: 26.62 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5781, allocations: 0 / 0.6619 GB, free: 26.62 MB / 0.573 GB Notification: Performance of Transformations before backend: time 3.266e-05/0.5781, allocations: 0.875 kB / 0.6619 GB, free: 26.62 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.004283/0.5824, allocations: 2.228 MB / 0.6641 GB, free: 25.59 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.5824, allocations: 9.5 kB / 0.6641 GB, free: 25.59 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006459/0.5831, allocations: 323.1 kB / 0.6644 GB, free: 25.47 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001672/0.5848, allocations: 0.9819 MB / 0.6653 GB, free: 25.15 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.822e-05/0.5848, allocations: 90.69 kB / 0.6654 GB, free: 25.14 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001823/0.585, allocations: 123 kB / 0.6655 GB, free: 25.14 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/0.5873, allocations: 1.279 MB / 0.6668 GB, free: 25.01 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/0.5873, allocations: 0 / 0.6668 GB, free: 25.01 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001147/0.5874, allocations: 55.23 kB / 0.6668 GB, free: 25 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.492e-05/0.5874, allocations: 29.47 kB / 0.6669 GB, free: 25 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002216/0.5896, allocations: 1.058 MB / 0.6679 GB, free: 24.99 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006735/0.5964, allocations: 3.815 MB / 0.6716 GB, free: 24.07 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/0.5985, allocations: 1.033 MB / 0.6726 GB, free: 24.02 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009595/0.5995, allocations: 0.5117 MB / 0.6731 GB, free: 24 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004235/0.6037, allocations: 2.008 MB / 0.6751 GB, free: 23.61 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001217/0.6049, allocations: 0.6278 MB / 0.6757 GB, free: 23.55 MB / 0.573 GB Notification: Performance of pre-optimization done (n=128): time 3.917e-06/0.6049, allocations: 0 / 0.6757 GB, free: 23.55 MB / 0.573 GB Notification: Performance of matching and sorting (n=129): time 0.006423/0.6114, allocations: 3.223 MB / 0.6789 GB, free: 22.99 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.6114, allocations: 64.97 kB / 0.6789 GB, free: 22.93 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008045/0.6122, allocations: 0.8498 MB / 0.6797 GB, free: 22.74 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.174e-05/0.6123, allocations: 46.08 kB / 0.6798 GB, free: 22.71 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004289/0.6128, allocations: 0.6313 MB / 0.6804 GB, free: 22.42 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002697/0.613, allocations: 488.6 kB / 0.6809 GB, free: 22.12 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003326/0.6134, allocations: 240.8 kB / 0.6811 GB, free: 22.09 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0003101/0.6137, allocations: 0.5455 MB / 0.6816 GB, free: 21.61 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007289/0.6144, allocations: 419.4 kB / 0.682 GB, free: 21.58 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008369/0.6152, allocations: 0.5767 MB / 0.6826 GB, free: 21.45 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001616/0.6169, allocations: 1.06 MB / 0.6836 GB, free: 21.32 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.6169, allocations: 2.938 kB / 0.6836 GB, free: 21.32 MB / 0.573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002684/0.6195, allocations: 1.452 MB / 0.6851 GB, free: 21.09 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/0.6196, allocations: 36.58 kB / 0.6851 GB, free: 21.06 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.6196, allocations: 0 / 0.6851 GB, free: 21.06 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005905/0.6202, allocations: 161.3 kB / 0.6852 GB, free: 21.05 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008616/0.621, allocations: 247.8 kB / 0.6855 GB, free: 21.05 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004261/0.6253, allocations: 3.072 MB / 0.6885 GB, free: 19.06 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008148/0.6261, allocations: 44.97 kB / 0.6885 GB, free: 19.06 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000143/0.6263, allocations: 54.69 kB / 0.6886 GB, free: 19.06 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.0006175/0.6269, allocations: 320.6 kB / 0.6889 GB, free: 18.9 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004397/0.6273, allocations: 189.2 kB / 0.6891 GB, free: 18.82 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003723/0.631, allocations: 2.237 MB / 0.6912 GB, free: 18.62 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.6311, allocations: 19.06 kB / 0.6913 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.6311, allocations: 3.25 kB / 0.6913 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.644e-05/0.6311, allocations: 8.391 kB / 0.6913 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005297/0.6364, allocations: 2.996 MB / 0.6942 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.792e-06/0.6364, allocations: 4.844 kB / 0.6942 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000884/0.6373, allocations: 261.3 kB / 0.6945 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005145/0.6378, allocations: 154.7 kB / 0.6946 GB, free: 18.17 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.6379, allocations: 48.72 kB / 0.6946 GB, free: 18.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003118/0.641, allocations: 2.887 MB / 0.6975 GB, free: 16.19 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.641, allocations: 1.094 kB / 0.6975 GB, free: 16.19 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003973/0.645, allocations: 2.264 MB / 0.6997 GB, free: 15.79 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006769/0.6457, allocations: 287.3 kB / 0.7 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/0.6458, allocations: 33.58 kB / 0.7 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.6464, allocations: 45.45 kB / 0.7 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002258/0.6466, allocations: 122.6 kB / 0.7001 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000115/0.6467, allocations: 58.84 kB / 0.7002 GB, free: 15.71 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0006416/0.6474, allocations: 0.5579 MB / 0.7007 GB, free: 15.56 MB / 0.573 GB Notification: Performance of sort global known variables: time 8.1e-08/0.6474, allocations: 0.9062 kB / 0.7007 GB, free: 15.56 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.00154/0.6489, allocations: 0.5398 MB / 0.7013 GB, free: 15.52 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.0009442/0.6499, allocations: 0.5915 MB / 0.7019 GB, free: 15.36 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.002522/0.6524, allocations: 1.466 MB / 0.7033 GB, free: 15.03 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.6524, allocations: 0 / 0.7033 GB, free: 15.03 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.001433/0.6538, allocations: 0.9304 MB / 0.7042 GB, free: 14.82 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002465/0.6563, allocations: 0.5299 MB / 0.7047 GB, free: 14.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004722/0.661, allocations: 2.611 MB / 0.7073 GB, free: 13.73 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/0.6616, allocations: 0.605 MB / 0.7079 GB, free: 13.6 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.001236/0.6628, allocations: 339.8 kB / 0.7082 GB, free: 13.53 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004359/0.6632, allocations: 162.5 kB / 0.7083 GB, free: 13.52 MB / 0.573 GB Notification: Performance of SimCode: time 3.096e-06/0.6632, allocations: 1.031 kB / 0.7083 GB, free: 13.52 MB / 0.573 GB Notification: Performance of Templates: time 0.04844/0.7117, allocations: 29.71 MB / 0.7373 GB, free: 1.152 MB / 0.573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.TanValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_dev_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_dev_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.696988003910519]