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.001313/0.001313, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001024/0.001024, allocations: 181 kB / 23.36 MB, free: 1.133 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.007/1.007, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.7509/0.7509, allocations: 118.7 MB / 378.9 MB, free: 1.336 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 2.375e-06/2.375e-06, allocations: 0 / 430.9 MB, free: 13.29 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.711e-05/2.949e-05, allocations: 2.312 kB / 430.9 MB, free: 13.29 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.3619/0.3619, allocations: 135.4 MB / 0.553 GB, free: 3.648 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.007948/0.3699, allocations: 3.759 MB / 0.5567 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001585/0.3714, allocations: 67.38 kB / 0.5568 GB, free: 15.82 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 0.001053/0.3725, allocations: 361.1 kB / 0.5571 GB, free: 15.47 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.002995/0.3755, allocations: 1.238 MB / 0.5583 GB, free: 14.22 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.3773, allocations: 0.6857 MB / 0.559 GB, free: 13.54 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.00373/0.3811, allocations: 2.785 MB / 0.5617 GB, free: 10.74 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006025/0.3817, allocations: 310.7 kB / 0.562 GB, free: 10.4 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00269/0.3844, allocations: 1.434 MB / 0.5634 GB, free: 8.965 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001923/0.3863, allocations: 1.251 MB / 0.5646 GB, free: 7.711 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.000322/0.3866, allocations: 144 kB / 0.5648 GB, free: 7.57 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001266/0.3879, allocations: 0.5306 MB / 0.5653 GB, free: 7.039 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0003422/0.3882, allocations: 390.5 kB / 0.5657 GB, free: 6.656 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0008337/0.3891, allocations: 0.6038 MB / 0.5662 GB, free: 6.055 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.002905/0.392, allocations: 1.651 MB / 0.5679 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.392, allocations: 0 / 0.5679 GB, free: 4.398 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.122e-06/0.392, allocations: 4 kB / 0.5679 GB, free: 4.395 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.104e-05/0.392, allocations: 0 / 0.5679 GB, free: 4.395 MB / 0.5105 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.003024/0.395, allocations: 1.887 MB / 0.5697 GB, free: 2.469 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.3951, allocations: 12.03 kB / 0.5697 GB, free: 2.457 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004875/0.3956, allocations: 260.4 kB / 0.57 GB, free: 2.203 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001373/0.3969, allocations: 0.8288 MB / 0.5708 GB, free: 1.332 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.986e-05/0.397, allocations: 94.78 kB / 0.5709 GB, free: 1.238 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001419/0.3971, allocations: 120.3 kB / 0.571 GB, free: 1.121 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.3984, allocations: 0.9351 MB / 0.5719 GB, free: 144 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.3985, allocations: 0 / 0.5719 GB, free: 144 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.897e-05/0.3985, allocations: 51.94 kB / 0.5719 GB, free: 92 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.3986, allocations: 28 kB / 0.572 GB, free: 64 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008945/0.3995, allocations: 0.4917 MB / 0.5724 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004428/0.4039, allocations: 2.531 MB / 0.5749 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001119/0.405, allocations: 0.7498 MB / 0.5757 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/0.4054, allocations: 260.7 kB / 0.5759 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002017/0.4074, allocations: 1.41 MB / 0.5773 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004999/0.4079, allocations: 424 kB / 0.5777 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=128): time 3.196e-06/0.4079, allocations: 0 / 0.5777 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of matching and sorting (n=129): time 0.002702/0.4106, allocations: 1.752 MB / 0.5794 GB, free: 8.348 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.4107, allocations: 64.72 kB / 0.5795 GB, free: 8.27 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004374/0.4111, allocations: 0.6326 MB / 0.5801 GB, free: 7.625 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.214e-05/0.4112, allocations: 45.7 kB / 0.5801 GB, free: 7.574 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000219/0.4114, allocations: 423.3 kB / 0.5805 GB, free: 7.156 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002456/0.4116, allocations: 467.8 kB / 0.581 GB, free: 6.695 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.4118, allocations: 190.8 kB / 0.5811 GB, free: 6.504 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003645/0.4122, allocations: 357.8 kB / 0.5815 GB, free: 6.148 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002486/0.4124, allocations: 187.1 kB / 0.5817 GB, free: 5.957 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.4127, allocations: 301.9 kB / 0.582 GB, free: 5.637 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005814/0.4133, allocations: 0.5772 MB / 0.5825 GB, free: 5.031 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4133, allocations: 0 / 0.5825 GB, free: 5.031 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0009982/0.4143, allocations: 0.7808 MB / 0.5833 GB, free: 4.227 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.825e-05/0.4143, allocations: 37.7 kB / 0.5833 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.4143, allocations: 0 / 0.5833 GB, free: 4.184 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003177/0.4147, allocations: 124.9 kB / 0.5834 GB, free: 4.059 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005174/0.4152, allocations: 243.7 kB / 0.5837 GB, free: 3.82 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002089/0.4173, allocations: 1.897 MB / 0.5855 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004336/0.4177, allocations: 31.98 kB / 0.5856 GB, free: 1.805 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.313e-05/0.4178, allocations: 38.56 kB / 0.5856 GB, free: 1.77 MB / 0.5261 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.0002824/0.4181, allocations: 180.4 kB / 0.5858 GB, free: 1.582 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.4183, allocations: 131.8 kB / 0.5859 GB, free: 1.453 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001596/0.4199, allocations: 1.381 MB / 0.5872 GB, free: 124 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.4199, allocations: 12 kB / 0.5872 GB, free: 112 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.4199, allocations: 8 kB / 0.5873 GB, free: 104 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4199, allocations: 7.922 kB / 0.5873 GB, free: 96 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002411/0.4223, allocations: 1.621 MB / 0.5888 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.4223, allocations: 0 / 0.5888 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004908/0.4228, allocations: 235.7 kB / 0.5891 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002772/0.4231, allocations: 125.4 kB / 0.5892 GB, free: 14.07 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.636e-05/0.4231, allocations: 31.98 kB / 0.5892 GB, free: 14.04 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.4245, allocations: 1.786 MB / 0.591 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4245, allocations: 4 kB / 0.591 GB, free: 12.16 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001358/0.4259, allocations: 1.173 MB / 0.5921 GB, free: 10.95 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002837/0.4261, allocations: 183.1 kB / 0.5923 GB, free: 10.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.397e-05/0.4262, allocations: 28 kB / 0.5923 GB, free: 10.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002648/0.4265, allocations: 36.02 kB / 0.5923 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.4266, allocations: 101.1 kB / 0.5924 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.846e-05/0.4267, allocations: 39.28 kB / 0.5925 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002412/0.4269, allocations: 324.7 kB / 0.5928 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.4269, allocations: 0 / 0.5928 GB, free: 10.24 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0008711/0.4278, allocations: 455.5 kB / 0.5932 GB, free: 9.797 MB / 0.5417 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 (129): * Single equations (assignments): 126 * 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.0003859/0.4282, allocations: 239.8 kB / 0.5935 GB, free: 9.555 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.001088/0.4293, allocations: 0.9021 MB / 0.5943 GB, free: 8.617 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/0.4293, allocations: 12 kB / 0.5943 GB, free: 8.605 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.000606/0.4299, allocations: 0.5719 MB / 0.5949 GB, free: 8.02 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001545/0.4315, allocations: 0.5092 MB / 0.5954 GB, free: 7.543 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003347/0.4348, allocations: 2.356 MB / 0.5977 GB, free: 5.137 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002112/0.435, allocations: 257.8 kB / 0.5979 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0007189/0.4357, allocations: 284.4 kB / 0.5982 GB, free: 4.578 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007598/0.4365, allocations: 411.1 kB / 0.5986 GB, free: 4.168 MB / 0.5417 GB Notification: Performance of SimCode: time 1.743e-06/0.4365, allocations: 0 / 0.5986 GB, free: 4.168 MB / 0.5417 GB Notification: Performance of Templates: time 0.0372/0.4737, allocations: 26.67 MB / 0.6247 GB, free: 9.996 MB / 0.573 GB " [Timeout remaining time 660] 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 -s gbode -gbm=radauIIA3 -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.488003928214312]