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.0008795/0.0008795, allocations: 80.94 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.001394/0.001394, allocations: 177 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 0.8814/0.8814, allocations: 177.1 MB / 203.8 MB, free: 5.488 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.6271/0.6271, allocations: 118.7 MB / 378.9 MB, free: 1.344 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.403e-06/1.403e-06, allocations: 0 / 430.8 MB, free: 13.35 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.889e-06/1.129e-05, allocations: 6.312 kB / 430.8 MB, free: 13.34 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2474/0.2474, allocations: 135.4 MB / 0.5529 GB, free: 3.941 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.003697/0.2511, allocations: 3.764 MB / 0.5566 GB, free: 180 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003507/0.2514, allocations: 63.44 kB / 0.5567 GB, free: 116 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005765/0.252, allocations: 369.1 kB / 0.557 GB, free: 15.75 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001297/0.2533, allocations: 1.238 MB / 0.5582 GB, free: 14.5 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008219/0.2541, allocations: 0.7207 MB / 0.5589 GB, free: 13.78 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001785/0.2559, allocations: 2.785 MB / 0.5617 GB, free: 10.99 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003212/0.2562, allocations: 310.7 kB / 0.562 GB, free: 10.65 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.2573, allocations: 1.438 MB / 0.5634 GB, free: 9.207 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001002/0.2583, allocations: 1.251 MB / 0.5646 GB, free: 7.953 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001284/0.2584, allocations: 140 kB / 0.5647 GB, free: 7.816 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005146/0.2589, allocations: 0.4916 MB / 0.5652 GB, free: 7.324 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002181/0.2591, allocations: 390.5 kB / 0.5656 GB, free: 6.941 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.0004119/0.2596, allocations: 0.5999 MB / 0.5661 GB, free: 6.344 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001372/0.2609, allocations: 1.662 MB / 0.5678 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.2609, allocations: 0 / 0.5678 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.152e-06/0.2609, allocations: 0 / 0.5678 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.418e-06/0.2609, allocations: 0 / 0.5678 GB, free: 4.676 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.001827/0.2628, allocations: 1.883 MB / 0.5696 GB, free: 2.754 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.2628, allocations: 8.031 kB / 0.5696 GB, free: 2.746 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.2631, allocations: 260.4 kB / 0.5699 GB, free: 2.492 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008925/0.264, allocations: 0.8326 MB / 0.5707 GB, free: 1.617 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.786e-05/0.264, allocations: 94.77 kB / 0.5708 GB, free: 1.523 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001083/0.2641, allocations: 124.3 kB / 0.5709 GB, free: 1.402 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008648/0.265, allocations: 0.9235 MB / 0.5718 GB, free: 444 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.265, allocations: 0 / 0.5718 GB, free: 444 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.2651, allocations: 55.94 kB / 0.5718 GB, free: 388 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.2651, allocations: 28 kB / 0.5719 GB, free: 360 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006135/0.2657, allocations: 0.4956 MB / 0.5724 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002993/0.2687, allocations: 2.531 MB / 0.5748 GB, free: 13.28 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000768/0.2695, allocations: 0.7499 MB / 0.5756 GB, free: 12.52 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002694/0.2697, allocations: 256.7 kB / 0.5758 GB, free: 12.26 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001869/0.2716, allocations: 1.402 MB / 0.5772 GB, free: 10.84 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004136/0.272, allocations: 428 kB / 0.5776 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=128): time 2.375e-06/0.272, allocations: 4 kB / 0.5776 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=129): time 0.002238/0.2743, allocations: 1.756 MB / 0.5793 GB, free: 8.625 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.023e-05/0.2743, allocations: 68.66 kB / 0.5794 GB, free: 8.543 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003507/0.2746, allocations: 0.6248 MB / 0.58 GB, free: 7.906 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.429e-05/0.2747, allocations: 49.7 kB / 0.58 GB, free: 7.852 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.2749, allocations: 427.2 kB / 0.5804 GB, free: 7.43 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002119/0.2751, allocations: 459.8 kB / 0.5809 GB, free: 6.977 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.2753, allocations: 202.8 kB / 0.5811 GB, free: 6.773 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002933/0.2756, allocations: 353.8 kB / 0.5814 GB, free: 6.422 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.2758, allocations: 187.1 kB / 0.5816 GB, free: 6.23 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.276, allocations: 294.7 kB / 0.5819 GB, free: 5.918 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005441/0.2766, allocations: 0.5811 MB / 0.5824 GB, free: 5.309 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.2766, allocations: 4 kB / 0.5824 GB, free: 5.305 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0008397/0.2774, allocations: 0.7756 MB / 0.5832 GB, free: 4.504 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.2775, allocations: 35.58 kB / 0.5832 GB, free: 4.465 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.2775, allocations: 192 / 0.5832 GB, free: 4.465 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002673/0.2777, allocations: 126.1 kB / 0.5833 GB, free: 4.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.2782, allocations: 224.8 kB / 0.5836 GB, free: 4.121 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00153/0.2797, allocations: 1.894 MB / 0.5854 GB, free: 2.141 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.28, allocations: 35.98 kB / 0.5854 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.424e-05/0.28, allocations: 35.98 kB / 0.5855 GB, free: 2.07 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.000199/0.2802, allocations: 164.5 kB / 0.5856 GB, free: 1.898 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.2804, allocations: 139.8 kB / 0.5858 GB, free: 1.762 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.2818, allocations: 1.378 MB / 0.5871 GB, free: 444 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.772e-06/0.2818, allocations: 12 kB / 0.5871 GB, free: 432 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.2818, allocations: 4 kB / 0.5871 GB, free: 428 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.2818, allocations: 11.91 kB / 0.5871 GB, free: 416 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.2838, allocations: 1.625 MB / 0.5887 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.096e-06/0.2838, allocations: 0 / 0.5887 GB, free: 14.73 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004289/0.2843, allocations: 211.7 kB / 0.5889 GB, free: 14.53 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002321/0.2845, allocations: 122.3 kB / 0.589 GB, free: 14.41 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.943e-05/0.2845, allocations: 39.97 kB / 0.5891 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.2856, allocations: 1.783 MB / 0.5908 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.2856, allocations: 0 / 0.5908 GB, free: 12.49 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.2868, allocations: 1.177 MB / 0.592 GB, free: 11.28 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002425/0.2871, allocations: 183.1 kB / 0.5921 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.112e-05/0.2872, allocations: 28 kB / 0.5922 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002494/0.2874, allocations: 39.3 kB / 0.5922 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.2875, allocations: 101 kB / 0.5923 GB, free: 10.94 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.882e-05/0.2876, allocations: 35.97 kB / 0.5923 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002087/0.2878, allocations: 324.7 kB / 0.5927 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8e-08/0.2878, allocations: 0 / 0.5927 GB, free: 10.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006001/0.2884, allocations: 455.5 kB / 0.5931 GB, free: 10.13 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.0002898/0.2887, allocations: 243.4 kB / 0.5933 GB, free: 9.887 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000873/0.2895, allocations: 0.8944 MB / 0.5942 GB, free: 8.957 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.2895, allocations: 15.94 kB / 0.5942 GB, free: 8.941 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005304/0.2901, allocations: 0.5758 MB / 0.5948 GB, free: 8.352 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001051/0.2911, allocations: 0.503 MB / 0.5953 GB, free: 7.871 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.294, allocations: 2.364 MB / 0.5976 GB, free: 5.457 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001624/0.2942, allocations: 265.8 kB / 0.5978 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0005173/0.2947, allocations: 284.3 kB / 0.5981 GB, free: 4.891 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006773/0.2954, allocations: 407.1 kB / 0.5985 GB, free: 4.484 MB / 0.5417 GB Notification: Performance of SimCode: time 8.11e-07/0.2954, allocations: 0 / 0.5985 GB, free: 4.484 MB / 0.5417 GB Notification: Performance of Templates: time 0.02715/0.3226, allocations: 26.66 MB / 0.6245 GB, free: 10.3 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: 3.869353129994124]