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.001296/0.001296, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001262/0.001262, allocations: 177 kB / 23.36 MB, free: 1.125 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.8983/0.8983, allocations: 177.1 MB / 203.8 MB, free: 5.484 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.6413/0.6413, allocations: 118.6 MB / 378.9 MB, free: 1.359 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.112e-06/1.112e-06, allocations: 0 / 430.8 MB, free: 13.36 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.506e-06/9.618e-06, allocations: 2.312 kB / 430.8 MB, free: 13.35 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.TanValve): time 0.2433/0.2433, allocations: 135.4 MB / 0.5529 GB, free: 3.918 MB / 0.4948 GB Notification: Performance of NFInst.instExpressions: time 0.004381/0.2476, allocations: 3.763 MB / 0.5566 GB, free: 160 kB / 0.4948 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004147/0.2481, allocations: 71.38 kB / 0.5567 GB, free: 88 kB / 0.4948 GB Notification: Performance of NFTyping.typeComponents: time 0.0005863/0.2487, allocations: 369.1 kB / 0.557 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 0.001426/0.2501, allocations: 1.238 MB / 0.5582 GB, free: 14.48 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009609/0.251, allocations: 0.7129 MB / 0.5589 GB, free: 13.76 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 0.001694/0.2527, allocations: 2.785 MB / 0.5616 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003648/0.2531, allocations: 314.7 kB / 0.5619 GB, free: 10.62 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.2544, allocations: 1.438 MB / 0.5634 GB, free: 9.184 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00101/0.2554, allocations: 1.251 MB / 0.5646 GB, free: 7.93 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 0.0001277/0.2555, allocations: 144 kB / 0.5647 GB, free: 7.789 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005345/0.2561, allocations: 495.4 kB / 0.5652 GB, free: 7.305 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.2563, allocations: 394.5 kB / 0.5656 GB, free: 6.918 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 0.000406/0.2567, allocations: 0.5999 MB / 0.5661 GB, free: 6.32 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.001166/0.2579, allocations: 1.662 MB / 0.5678 GB, free: 4.652 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.2579, allocations: 0 / 0.5678 GB, free: 4.652 MB / 0.5105 GB Notification: Performance of FrontEnd: time 8.52e-07/0.2579, allocations: 0 / 0.5678 GB, free: 4.652 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 9.317e-06/0.2579, allocations: 0 / 0.5678 GB, free: 4.652 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.002067/0.2599, allocations: 1.883 MB / 0.5696 GB, free: 2.73 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.603e-05/0.26, allocations: 8.031 kB / 0.5696 GB, free: 2.723 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.2602, allocations: 260.4 kB / 0.5699 GB, free: 2.469 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008888/0.2611, allocations: 0.8288 MB / 0.5707 GB, free: 1.598 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.629e-05/0.2612, allocations: 90.78 kB / 0.5708 GB, free: 1.508 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000114/0.2613, allocations: 132.2 kB / 0.5709 GB, free: 1.379 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008602/0.2622, allocations: 0.9274 MB / 0.5718 GB, free: 416 kB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.2622, allocations: 0 / 0.5718 GB, free: 416 kB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.31e-05/0.2622, allocations: 47.94 kB / 0.5718 GB, free: 368 kB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.78e-05/0.2623, allocations: 32 kB / 0.5719 GB, free: 336 kB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006177/0.2629, allocations: 499.5 kB / 0.5723 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002804/0.2657, allocations: 2.542 MB / 0.5748 GB, free: 13.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007857/0.2665, allocations: 0.7508 MB / 0.5756 GB, free: 12.49 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000269/0.2667, allocations: 252.7 kB / 0.5758 GB, free: 12.24 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001973/0.2687, allocations: 1.402 MB / 0.5772 GB, free: 10.82 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004112/0.2691, allocations: 432 kB / 0.5776 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=128): time 2.344e-06/0.2691, allocations: 0 / 0.5776 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of matching and sorting (n=129): time 0.002247/0.2714, allocations: 1.748 MB / 0.5793 GB, free: 8.613 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.328e-05/0.2714, allocations: 76.66 kB / 0.5794 GB, free: 8.523 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003557/0.2718, allocations: 0.6248 MB / 0.58 GB, free: 7.887 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.454e-05/0.2718, allocations: 49.7 kB / 0.58 GB, free: 7.832 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.272, allocations: 423.2 kB / 0.5804 GB, free: 7.414 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.2722, allocations: 467.8 kB / 0.5809 GB, free: 6.953 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001886/0.2724, allocations: 198.8 kB / 0.5811 GB, free: 6.754 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.806e-05/0.2725, allocations: 353.8 kB / 0.5814 GB, free: 6.402 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002203/0.2727, allocations: 187.1 kB / 0.5816 GB, free: 6.211 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002601/0.2729, allocations: 298.7 kB / 0.5819 GB, free: 5.895 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005547/0.2735, allocations: 0.5772 MB / 0.5824 GB, free: 5.289 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.2735, allocations: 0 / 0.5824 GB, free: 5.289 MB / 0.5261 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00106/0.2746, allocations: 0.7795 MB / 0.5832 GB, free: 4.484 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.463e-05/0.2746, allocations: 33.69 kB / 0.5832 GB, free: 4.445 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.932e-06/0.2746, allocations: 8.188 kB / 0.5832 GB, free: 4.438 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.2749, allocations: 115.6 kB / 0.5833 GB, free: 4.32 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.2753, allocations: 220.8 kB / 0.5835 GB, free: 4.105 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001546/0.2769, allocations: 1.902 MB / 0.5854 GB, free: 2.117 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.2771, allocations: 37.23 kB / 0.5854 GB, free: 2.082 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.755e-05/0.2772, allocations: 35.98 kB / 0.5855 GB, free: 2.047 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.0002039/0.2774, allocations: 164.5 kB / 0.5856 GB, free: 1.875 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.2775, allocations: 139.8 kB / 0.5858 GB, free: 1.738 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.279, allocations: 1.377 MB / 0.5871 GB, free: 416 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.074e-06/0.279, allocations: 16 kB / 0.5871 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.815e-06/0.279, allocations: 0 / 0.5871 GB, free: 400 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.279, allocations: 11.91 kB / 0.5871 GB, free: 388 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001797/0.2808, allocations: 1.621 MB / 0.5887 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.2808, allocations: 0 / 0.5887 GB, free: 14.71 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004321/0.2812, allocations: 215.7 kB / 0.5889 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002377/0.2815, allocations: 121.6 kB / 0.589 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.151e-05/0.2815, allocations: 35.97 kB / 0.5891 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.2829, allocations: 1.786 MB / 0.5908 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.2829, allocations: 0 / 0.5908 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001211/0.2841, allocations: 1.177 MB / 0.592 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002407/0.2843, allocations: 187.1 kB / 0.5921 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.33e-05/0.2844, allocations: 28 kB / 0.5922 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2847, allocations: 35.3 kB / 0.5922 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001118/0.2848, allocations: 105 kB / 0.5923 GB, free: 10.91 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.79e-05/0.2848, allocations: 31.98 kB / 0.5923 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002121/0.285, allocations: 324.6 kB / 0.5926 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of sort global known variables: time 5e-08/0.285, allocations: 0 / 0.5926 GB, free: 10.55 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0006094/0.2856, allocations: 455.5 kB / 0.5931 GB, free: 10.11 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.0002926/0.2859, allocations: 239.8 kB / 0.5933 GB, free: 9.863 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0008789/0.2868, allocations: 0.8983 MB / 0.5942 GB, free: 8.93 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.603e-06/0.2868, allocations: 8 kB / 0.5942 GB, free: 8.922 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0005355/0.2873, allocations: 0.5719 MB / 0.5948 GB, free: 8.336 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.2884, allocations: 0.5102 MB / 0.5953 GB, free: 7.863 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.2914, allocations: 2.364 MB / 0.5976 GB, free: 5.445 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001658/0.2915, allocations: 265.8 kB / 0.5978 GB, free: 5.16 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.00052/0.2921, allocations: 282.2 kB / 0.5981 GB, free: 4.895 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006815/0.2927, allocations: 415 kB / 0.5985 GB, free: 4.48 MB / 0.5417 GB Notification: Performance of SimCode: time 6.01e-07/0.2927, allocations: 0 / 0.5985 GB, free: 4.48 MB / 0.5417 GB Notification: Performance of Templates: time 0.02748/0.3202, allocations: 26.66 MB / 0.6245 GB, free: 10.32 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 -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: 3.8837628881447017]