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.001351/0.001351, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001539/0.001539, allocations: 177 kB / 23.49 MB, free: 1.055 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 0.9371/0.9371, allocations: 177.1 MB / 203.8 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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 0.7419/0.7419, allocations: 118.6 MB / 378.9 MB, free: 1.484 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.292e-06/1.292e-06, allocations: 0 / 483.6 MB, free: 8.316 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.37e-05/2.499e-05, allocations: 2.312 kB / 483.6 MB, free: 8.312 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1526/0.1526, allocations: 168.4 MB / 0.6367 GB, free: 8.105 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2634/0.4161, allocations: 11.44 MB / 0.6479 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.4178, allocations: 68.03 kB / 0.6479 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.002437/0.4202, allocations: 0.7426 MB / 0.6487 GB, free: 12.07 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.004662/0.4249, allocations: 1.849 MB / 0.6505 GB, free: 12.02 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.002754/0.4276, allocations: 1.157 MB / 0.6516 GB, free: 12 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.003559/0.4312, allocations: 2.791 MB / 0.6543 GB, free: 11.52 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009162/0.4321, allocations: 294 kB / 0.6546 GB, free: 27.43 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.4346, allocations: 1.516 MB / 0.6561 GB, free: 27.28 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001652/0.4363, allocations: 1.269 MB / 0.6573 GB, free: 27.17 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.000348/0.4366, allocations: 142.5 kB / 0.6575 GB, free: 27.17 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003233/0.4399, allocations: 1.7 MB / 0.6591 GB, free: 27.06 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0003226/0.4402, allocations: 381.9 kB / 0.6595 GB, free: 26.99 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0008893/0.4411, allocations: 0.6036 MB / 0.6601 GB, free: 26.92 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.004499/0.4456, allocations: 2.151 MB / 0.6622 GB, free: 26.64 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.4456, allocations: 0.875 kB / 0.6622 GB, free: 26.64 MB / 0.573 GB Notification: Performance of FrontEnd: time 2.455e-06/0.4456, allocations: 0.7031 kB / 0.6622 GB, free: 26.64 MB / 0.573 GB Notification: Performance of Transformations before backend: time 5.826e-05/0.4456, allocations: 0.8438 kB / 0.6622 GB, free: 26.64 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.004827/0.4505, allocations: 2.14 MB / 0.6643 GB, free: 25.61 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 5.103e-05/0.4505, allocations: 10.5 kB / 0.6643 GB, free: 25.61 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007905/0.4513, allocations: 320.2 kB / 0.6646 GB, free: 25.49 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.4535, allocations: 0.9735 MB / 0.6655 GB, free: 25.17 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.925e-05/0.4535, allocations: 89.33 kB / 0.6656 GB, free: 25.17 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002093/0.4538, allocations: 119.6 kB / 0.6657 GB, free: 25.17 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002489/0.4562, allocations: 1.017 MB / 0.6667 GB, free: 25.02 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.138e-05/0.4563, allocations: 4.062 kB / 0.6667 GB, free: 25.02 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.4564, allocations: 54.84 kB / 0.6668 GB, free: 25.01 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.066e-05/0.4564, allocations: 35.41 kB / 0.6668 GB, free: 25.01 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002058/0.4585, allocations: 0.7144 MB / 0.6675 GB, free: 24.98 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006504/0.465, allocations: 3.398 MB / 0.6708 GB, free: 24.08 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002034/0.467, allocations: 0.8557 MB / 0.6717 GB, free: 24.03 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008706/0.4679, allocations: 359.7 kB / 0.672 GB, free: 24.02 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00421/0.4721, allocations: 1.827 MB / 0.6738 GB, free: 23.63 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001168/0.4733, allocations: 482.8 kB / 0.6743 GB, free: 23.57 MB / 0.573 GB Notification: Performance of pre-optimization done (n=128): time 4.318e-06/0.4733, allocations: 0 / 0.6743 GB, free: 23.57 MB / 0.573 GB Notification: Performance of matching and sorting (n=129): time 0.007632/0.4809, allocations: 2.531 MB / 0.6767 GB, free: 23.02 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/0.481, allocations: 64.09 kB / 0.6768 GB, free: 22.96 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009356/0.4819, allocations: 0.699 MB / 0.6775 GB, free: 22.76 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 9.712e-05/0.482, allocations: 50.39 kB / 0.6775 GB, free: 22.73 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004408/0.4824, allocations: 0.601 MB / 0.6781 GB, free: 22.45 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003482/0.4828, allocations: 460.9 kB / 0.6786 GB, free: 22.14 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003589/0.4832, allocations: 215.8 kB / 0.6788 GB, free: 22.12 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.4833, allocations: 0.5223 MB / 0.6793 GB, free: 21.64 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006354/0.484, allocations: 275.3 kB / 0.6795 GB, free: 21.6 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007635/0.4847, allocations: 413.8 kB / 0.6799 GB, free: 21.47 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009501/0.4857, allocations: 0.736 MB / 0.6806 GB, free: 21.34 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.4857, allocations: 4.688 kB / 0.6806 GB, free: 21.34 MB / 0.573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001654/0.4874, allocations: 1.142 MB / 0.6818 GB, free: 21.12 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.4874, allocations: 32.36 kB / 0.6818 GB, free: 21.09 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.146e-06/0.4874, allocations: 0 / 0.6818 GB, free: 21.09 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004045/0.4878, allocations: 133.7 kB / 0.6819 GB, free: 21.07 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.4883, allocations: 246.8 kB / 0.6822 GB, free: 21.07 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.4906, allocations: 2.649 MB / 0.6847 GB, free: 19.08 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004636/0.4911, allocations: 48.47 kB / 0.6848 GB, free: 19.08 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.895e-05/0.4912, allocations: 52.3 kB / 0.6848 GB, free: 19.08 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.0003628/0.4915, allocations: 216.1 kB / 0.685 GB, free: 18.92 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002605/0.4918, allocations: 192.8 kB / 0.6852 GB, free: 18.84 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00222/0.494, allocations: 1.822 MB / 0.687 GB, free: 18.62 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.494, allocations: 19 kB / 0.687 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.494, allocations: 1.094 kB / 0.687 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.087e-05/0.494, allocations: 8.719 kB / 0.687 GB, free: 18.61 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002979/0.497, allocations: 2.451 MB / 0.6894 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.497, allocations: 3.062 kB / 0.6894 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000513/0.4975, allocations: 261.8 kB / 0.6897 GB, free: 18.19 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003117/0.4979, allocations: 130.8 kB / 0.6898 GB, free: 18.18 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.483e-05/0.4979, allocations: 49.05 kB / 0.6899 GB, free: 18.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/0.4996, allocations: 2.536 MB / 0.6923 GB, free: 16.18 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.4996, allocations: 0 / 0.6923 GB, free: 16.18 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002277/0.5019, allocations: 1.703 MB / 0.694 GB, free: 15.8 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005623/0.5024, allocations: 283.5 kB / 0.6943 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.5026, allocations: 28.84 kB / 0.6943 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003671/0.5029, allocations: 48.69 kB / 0.6943 GB, free: 15.72 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.5032, allocations: 125.8 kB / 0.6945 GB, free: 15.71 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001026/0.5033, allocations: 54.47 kB / 0.6945 GB, free: 15.71 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0004926/0.5038, allocations: 473.8 kB / 0.695 GB, free: 15.56 MB / 0.573 GB Notification: Performance of sort global known variables: time 6e-08/0.5038, allocations: 0 / 0.695 GB, free: 15.56 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.001547/0.5053, allocations: 0.5446 MB / 0.6955 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.0007719/0.5061, allocations: 0.5912 MB / 0.6961 GB, free: 15.36 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001529/0.5076, allocations: 1.156 MB / 0.6972 GB, free: 15.04 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5076, allocations: 1 kB / 0.6972 GB, free: 15.04 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007946/0.5084, allocations: 0.7705 MB / 0.698 GB, free: 14.83 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001315/0.5097, allocations: 0.5346 MB / 0.6985 GB, free: 14.75 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003624/0.5133, allocations: 2.448 MB / 0.7009 GB, free: 13.72 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/0.5136, allocations: 273.4 kB / 0.7011 GB, free: 13.63 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0009564/0.5145, allocations: 335.4 kB / 0.7014 GB, free: 13.56 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002931/0.5148, allocations: 158.4 kB / 0.7016 GB, free: 13.55 MB / 0.573 GB Notification: Performance of SimCode: time 2.866e-06/0.5148, allocations: 0 / 0.7016 GB, free: 13.55 MB / 0.573 GB Notification: Performance of Templates: time 0.03436/0.5492, allocations: 29.73 MB / 0.7306 GB, free: 2.215 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.695807002019137]