Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.002298/0.002298, allocations: 85.48 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.002739/0.002739, allocations: 173.2 kB / 22.76 MB, free: 1.66 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.584/1.584, allocations: 177.1 MB / 203.1 MB, free: 5.445 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.037/1.037, allocations: 118.6 MB / 378.2 MB, free: 1.465 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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.204e-06/2.204e-06, allocations: 0 / 482.9 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.746e-05/3.967e-05, allocations: 2.312 kB / 482.9 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.09855/0.09859, allocations: 68.86 MB / 0.5388 GB, free: 12.02 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.02996/0.1285, allocations: 18.48 MB / 0.5569 GB, free: 9.488 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003219/0.1318, allocations: 114.9 kB / 0.557 GB, free: 9.375 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003952/0.1357, allocations: 1.113 MB / 0.5581 GB, free: 8.254 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009872/0.1456, allocations: 3.119 MB / 0.5611 GB, free: 5.113 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006159/0.1518, allocations: 1.65 MB / 0.5627 GB, free: 3.457 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.007876/0.1596, allocations: 4.394 MB / 0.567 GB, free: 15.04 MB / 0.4948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.161, allocations: 379.3 kB / 0.5674 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006663/0.1676, allocations: 2.384 MB / 0.5697 GB, free: 12.25 MB / 0.4948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003166/0.1708, allocations: 1.312 MB / 0.571 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of NFPackage.collectConstants: time 0.0005991/0.1714, allocations: 192 kB / 0.5712 GB, free: 10.75 MB / 0.4948 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005322/0.1767, allocations: 1.512 MB / 0.5726 GB, free: 9.234 MB / 0.4948 GB Notification: Performance of NFScalarize.scalarize: time 0.0008101/0.1775, allocations: 0.5133 MB / 0.5731 GB, free: 8.719 MB / 0.4948 GB Notification: Performance of NFVerifyModel.verify: time 0.002149/0.1797, allocations: 0.9196 MB / 0.574 GB, free: 7.797 MB / 0.4948 GB Notification: Performance of NFConvertDAE.convert: time 0.009909/0.1896, allocations: 3.971 MB / 0.5779 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.1896, allocations: 0 / 0.5779 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.753e-06/0.1896, allocations: 0 / 0.5779 GB, free: 3.812 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.931e-05/0.1897, allocations: 0 / 0.5779 GB, free: 3.812 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.007543/0.1972, allocations: 3.324 MB / 0.5812 GB, free: 436 kB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.1973, allocations: 12.03 kB / 0.5812 GB, free: 424 kB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001621/0.1989, allocations: 0.5453 MB / 0.5817 GB, free: 15.86 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003303/0.2022, allocations: 1.503 MB / 0.5832 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.2023, allocations: 148.1 kB / 0.5833 GB, free: 14.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003051/0.2027, allocations: 196.3 kB / 0.5835 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003909/0.2066, allocations: 1.952 MB / 0.5854 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.091e-05/0.2066, allocations: 192 / 0.5854 GB, free: 11.98 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001645/0.2068, allocations: 88.06 kB / 0.5855 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.678e-05/0.2068, allocations: 47.98 kB / 0.5855 GB, free: 11.84 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00332/0.2101, allocations: 1.541 MB / 0.587 GB, free: 10.3 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01134/0.2215, allocations: 5.705 MB / 0.5926 GB, free: 4.496 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003571/0.2251, allocations: 1.712 MB / 0.5943 GB, free: 2.781 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/0.2268, allocations: 0.814 MB / 0.5951 GB, free: 1.965 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007219/0.234, allocations: 2.878 MB / 0.5979 GB, free: 15.06 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002076/0.2361, allocations: 1.11 MB / 0.599 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=200): time 4.788e-06/0.2361, allocations: 0 / 0.599 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=200): time 0.006569/0.2427, allocations: 2.618 MB / 0.6015 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002623/0.2429, allocations: 154.5 kB / 0.6017 GB, free: 11.09 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.2451, allocations: 1.452 MB / 0.6031 GB, free: 9.617 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001696/0.2452, allocations: 61.7 kB / 0.6032 GB, free: 9.551 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001073/0.2463, allocations: 1.013 MB / 0.6042 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008449/0.2472, allocations: 0.7321 MB / 0.6049 GB, free: 7.785 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006282/0.2478, allocations: 377.2 kB / 0.6052 GB, free: 7.41 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002422/0.248, allocations: 476.8 kB / 0.6057 GB, free: 6.941 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.2493, allocations: 0.5835 MB / 0.6063 GB, free: 6.352 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00196/0.2513, allocations: 1.231 MB / 0.6075 GB, free: 4.93 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.2546, allocations: 1.639 MB / 0.6091 GB, free: 3.195 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.31e-05/0.2546, allocations: 8 kB / 0.6091 GB, free: 3.188 MB / 0.5261 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004775/0.2594, allocations: 2.115 MB / 0.6111 GB, free: 1.039 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.998e-05/0.2595, allocations: 33.7 kB / 0.6112 GB, free: 1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/0.2595, allocations: 8 kB / 0.6112 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008386/0.2603, allocations: 194.9 kB / 0.6114 GB, free: 0.7891 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.2618, allocations: 387.5 kB / 0.6117 GB, free: 420 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006195/0.268, allocations: 6.045 MB / 0.6176 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/0.2697, allocations: 158.9 kB / 0.6178 GB, free: 9.836 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002407/0.2699, allocations: 91.97 kB / 0.6179 GB, free: 9.746 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001165/0.2711, allocations: 404.2 kB / 0.6182 GB, free: 9.34 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006943/0.2718, allocations: 278.6 kB / 0.6185 GB, free: 9.066 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006509/0.2783, allocations: 3.223 MB / 0.6217 GB, free: 5.91 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/0.2783, allocations: 24 kB / 0.6217 GB, free: 5.887 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2783, allocations: 0 / 0.6217 GB, free: 5.887 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.742e-05/0.2783, allocations: 11.91 kB / 0.6217 GB, free: 5.875 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009245/0.2876, allocations: 4.269 MB / 0.6259 GB, free: 1.516 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.189e-05/0.2876, allocations: 8.188 kB / 0.6259 GB, free: 1.508 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.289, allocations: 371.5 kB / 0.6262 GB, free: 1.145 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000795/0.2898, allocations: 198.8 kB / 0.6264 GB, free: 0.9375 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001587/0.29, allocations: 71.95 kB / 0.6265 GB, free: 0.8672 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006566/0.2965, allocations: 6.039 MB / 0.6324 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2965, allocations: 96 / 0.6324 GB, free: 10.46 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006767/0.3033, allocations: 3.101 MB / 0.6354 GB, free: 7.305 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/0.3047, allocations: 449.7 kB / 0.6358 GB, free: 6.863 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002681/0.305, allocations: 51.89 kB / 0.6359 GB, free: 6.812 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008103/0.3058, allocations: 51.97 kB / 0.6359 GB, free: 6.762 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003928/0.3062, allocations: 173.6 kB / 0.6361 GB, free: 6.59 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/0.3064, allocations: 83.95 kB / 0.6362 GB, free: 6.508 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.001576/0.308, allocations: 0.9128 MB / 0.6371 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7e-08/0.308, allocations: 0 / 0.6371 GB, free: 5.602 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.00286/0.3108, allocations: 0.8655 MB / 0.6379 GB, free: 4.734 MB / 0.5573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001656/0.3125, allocations: 0.7882 MB / 0.6387 GB, free: 3.953 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.004726/0.3172, allocations: 2.272 MB / 0.6409 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.3172, allocations: 1.312 kB / 0.6409 GB, free: 1.605 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.002511/0.3197, allocations: 1.485 MB / 0.6424 GB, free: 64 kB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2298/0.5495, allocations: 0.884 MB / 0.6432 GB, free: 86.87 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0087/0.5582, allocations: 4.115 MB / 0.6472 GB, free: 85.34 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008733/0.5591, allocations: 0.9153 MB / 0.6481 GB, free: 85.18 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.001853/0.561, allocations: 0.4893 MB / 0.6486 GB, free: 85.09 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005126/0.5615, allocations: 237.8 kB / 0.6488 GB, free: 85.09 MB / 0.5573 GB Notification: Performance of SimCode: time 1.553e-06/0.5615, allocations: 0 / 0.6488 GB, free: 85.09 MB / 0.5573 GB Notification: Performance of Templates: time 0.06734/0.6288, allocations: 44.54 MB / 0.6923 GB, free: 69.46 MB / 0.5573 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 240] diffSimulationResults("ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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: 8.107273916946724]