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.0009577/0.0009577, allocations: 92.2 kB / 20.19 MB, free: 4.355 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.0009239/0.0009239, allocations: 169 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.9898/0.9898, allocations: 177.1 MB / 203.8 MB, free: 5.648 MB / 186.7 MB " [Timeout remaining time 179] 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 0.6593/0.6593, allocations: 118.6 MB / 378.9 MB, free: 1.52 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.683e-06/1.683e-06, allocations: 0 / 483.6 MB, free: 8.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.752e-05/1.921e-05, allocations: 5.406 kB / 483.6 MB, free: 8.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.1453/0.1454, allocations: 168.4 MB / 0.6367 GB, free: 8.117 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.2443/0.3897, allocations: 11.45 MB / 0.6479 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001198/0.3909, allocations: 68.25 kB / 0.648 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 0.001587/0.3925, allocations: 0.7408 MB / 0.6487 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.003178/0.3957, allocations: 1.85 MB / 0.6505 GB, free: 12.12 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.00235/0.398, allocations: 1.16 MB / 0.6516 GB, free: 12.1 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.002874/0.4009, allocations: 2.785 MB / 0.6543 GB, free: 11.62 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006857/0.4016, allocations: 293.5 kB / 0.6546 GB, free: 27.54 MB / 0.573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002028/0.4036, allocations: 1.517 MB / 0.6561 GB, free: 27.38 MB / 0.573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001404/0.405, allocations: 1.268 MB / 0.6573 GB, free: 27.28 MB / 0.573 GB Notification: Performance of NFPackage.collectConstants: time 0.0002215/0.4052, allocations: 142.1 kB / 0.6575 GB, free: 27.28 MB / 0.573 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002571/0.4078, allocations: 1.697 MB / 0.6591 GB, free: 27.16 MB / 0.573 GB Notification: Performance of NFScalarize.scalarize: time 0.0002262/0.408, allocations: 386.3 kB / 0.6595 GB, free: 27.09 MB / 0.573 GB Notification: Performance of NFVerifyModel.verify: time 0.0005533/0.4086, allocations: 0.6046 MB / 0.6601 GB, free: 27.02 MB / 0.573 GB Notification: Performance of NFConvertDAE.convert: time 0.002505/0.4111, allocations: 2.149 MB / 0.6622 GB, free: 26.75 MB / 0.573 GB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.4111, allocations: 0.5156 kB / 0.6622 GB, free: 26.75 MB / 0.573 GB Notification: Performance of FrontEnd: time 1.202e-06/0.4111, allocations: 3.938 kB / 0.6622 GB, free: 26.75 MB / 0.573 GB Notification: Performance of Transformations before backend: time 2.475e-05/0.4111, allocations: 0 / 0.6622 GB, free: 26.75 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.002791/0.4139, allocations: 2.14 MB / 0.6643 GB, free: 25.71 MB / 0.573 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.4139, allocations: 9.375 kB / 0.6643 GB, free: 25.71 MB / 0.573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004584/0.4144, allocations: 320.9 kB / 0.6646 GB, free: 25.59 MB / 0.573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001158/0.4156, allocations: 0.9733 MB / 0.6656 GB, free: 25.28 MB / 0.573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.511e-05/0.4156, allocations: 89.31 kB / 0.6656 GB, free: 25.27 MB / 0.573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.4157, allocations: 122.1 kB / 0.6658 GB, free: 25.27 MB / 0.573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.4171, allocations: 1.021 MB / 0.6668 GB, free: 25.12 MB / 0.573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.983e-05/0.4172, allocations: 0 / 0.6668 GB, free: 25.12 MB / 0.573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.48e-05/0.4172, allocations: 53.48 kB / 0.6668 GB, free: 25.12 MB / 0.573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.399e-05/0.4173, allocations: 33 kB / 0.6668 GB, free: 25.11 MB / 0.573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.4185, allocations: 0.7182 MB / 0.6675 GB, free: 25.09 MB / 0.573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003778/0.4223, allocations: 3.397 MB / 0.6709 GB, free: 24.18 MB / 0.573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.4236, allocations: 0.8501 MB / 0.6717 GB, free: 24.13 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005503/0.4241, allocations: 368.5 kB / 0.672 GB, free: 24.11 MB / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00241/0.4265, allocations: 1.82 MB / 0.6738 GB, free: 23.73 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007035/0.4272, allocations: 487.4 kB / 0.6743 GB, free: 23.67 MB / 0.573 GB Notification: Performance of pre-optimization done (n=128): time 2.585e-06/0.4272, allocations: 0.875 kB / 0.6743 GB, free: 23.67 MB / 0.573 GB Notification: Performance of matching and sorting (n=129): time 0.004304/0.4315, allocations: 2.533 MB / 0.6768 GB, free: 23.12 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.4316, allocations: 64.94 kB / 0.6768 GB, free: 23.05 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005096/0.4321, allocations: 0.6926 MB / 0.6775 GB, free: 22.86 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 6.271e-05/0.4321, allocations: 49.52 kB / 0.6775 GB, free: 22.83 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002704/0.4324, allocations: 0.6005 MB / 0.6781 GB, free: 22.54 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002072/0.4326, allocations: 465.1 kB / 0.6786 GB, free: 22.24 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.4328, allocations: 212.2 kB / 0.6788 GB, free: 22.22 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.433, allocations: 0.522 MB / 0.6793 GB, free: 21.74 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003726/0.4333, allocations: 275.2 kB / 0.6795 GB, free: 21.7 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004351/0.4338, allocations: 414.3 kB / 0.6799 GB, free: 21.57 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008839/0.4347, allocations: 0.7398 MB / 0.6807 GB, free: 21.44 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.4347, allocations: 0 / 0.6807 GB, free: 21.44 MB / 0.573 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001475/0.4361, allocations: 1.145 MB / 0.6818 GB, free: 21.21 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.4362, allocations: 36.3 kB / 0.6818 GB, free: 21.18 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.4362, allocations: 3.75 kB / 0.6818 GB, free: 21.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003583/0.4365, allocations: 126 kB / 0.6819 GB, free: 21.17 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005065/0.4371, allocations: 241.4 kB / 0.6822 GB, free: 21.17 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.4395, allocations: 2.66 MB / 0.6848 GB, free: 19.18 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002974/0.4398, allocations: 44.69 kB / 0.6848 GB, free: 19.18 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/0.4399, allocations: 48.36 kB / 0.6849 GB, free: 19.18 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.0002448/0.4401, allocations: 213.5 kB / 0.6851 GB, free: 19.02 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002365/0.4404, allocations: 195.3 kB / 0.6852 GB, free: 18.94 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002168/0.4425, allocations: 1.818 MB / 0.687 GB, free: 18.73 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.4425, allocations: 20.69 kB / 0.687 GB, free: 18.72 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.4426, allocations: 2.344 kB / 0.687 GB, free: 18.72 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.4426, allocations: 8.484 kB / 0.687 GB, free: 18.72 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002721/0.4453, allocations: 2.459 MB / 0.6895 GB, free: 18.3 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.4453, allocations: 0 / 0.6895 GB, free: 18.3 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004885/0.4458, allocations: 262 kB / 0.6897 GB, free: 18.3 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002777/0.4461, allocations: 133.4 kB / 0.6898 GB, free: 18.29 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.035e-05/0.4461, allocations: 41.62 kB / 0.6899 GB, free: 18.29 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001523/0.4476, allocations: 2.544 MB / 0.6924 GB, free: 16.29 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.4476, allocations: 3.938 kB / 0.6924 GB, free: 16.29 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002011/0.4497, allocations: 1.704 MB / 0.694 GB, free: 15.9 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000345/0.45, allocations: 285.7 kB / 0.6943 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001036/0.4501, allocations: 28.17 kB / 0.6943 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003149/0.4504, allocations: 46.62 kB / 0.6944 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000178/0.4506, allocations: 124.3 kB / 0.6945 GB, free: 15.82 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.962e-05/0.4507, allocations: 51.55 kB / 0.6945 GB, free: 15.82 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.0003608/0.451, allocations: 476.4 kB / 0.695 GB, free: 15.67 MB / 0.573 GB Notification: Performance of sort global known variables: time 9e-08/0.451, allocations: 0 / 0.695 GB, free: 15.67 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.0009904/0.452, allocations: 0.5402 MB / 0.6955 GB, free: 15.62 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.0007045/0.4527, allocations: 0.5896 MB / 0.6961 GB, free: 15.47 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.4541, allocations: 1.153 MB / 0.6972 GB, free: 15.15 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4541, allocations: 0 / 0.6972 GB, free: 15.15 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.0007741/0.4549, allocations: 0.7749 MB / 0.698 GB, free: 14.93 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001272/0.4561, allocations: 0.532 MB / 0.6985 GB, free: 14.86 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003039/0.4592, allocations: 2.448 MB / 0.7009 GB, free: 13.83 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001815/0.4593, allocations: 274.5 kB / 0.7011 GB, free: 13.74 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0006342/0.46, allocations: 337.9 kB / 0.7015 GB, free: 13.67 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002595/0.4602, allocations: 157.6 kB / 0.7016 GB, free: 13.66 MB / 0.573 GB Notification: Performance of SimCode: time 1.032e-06/0.4602, allocations: 0.9688 kB / 0.7016 GB, free: 13.66 MB / 0.573 GB Notification: Performance of Templates: time 0.03029/0.4905, allocations: 29.72 MB / 0.7306 GB, free: 2.316 MB / 0.573 GB " [Timeout remaining time 660] 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","",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.563252313062549]