Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.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.00199/0.00199, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.002499/0.002499, allocations: 221.3 kB / 23 MB, free: 4.914 MB / 14.72 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] 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.7641/0.7641, allocations: 100.9 MB / 414.1 MB, free: 2.863 MB / 318.1 MB " [Timeout remaining time 179] Using package ThermofluidStream with version 1.2.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.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") translateModel(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|boundary_rear.fore.m_flow|boundary_rear1.fore.m_flow|boundary_rear2.fore.m_flow|pulse.T_start|pulse.count",fileNamePrefix="ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve") [Timeout 660] "Notification: ThermofluidStream requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ThermofluidStream requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002563/0.002563, allocations: 89.12 kB / 0.5653 GB, free: 35.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1192, allocations: 74.63 MB / 0.6382 GB, free: 6.09 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.06774/0.1869, allocations: 59.75 MB / 0.6965 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02249/0.2094, allocations: 16.03 MB / 0.7122 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002191/0.2116, allocations: 111 kB / 0.7123 GB, free: 9.941 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.003179/0.2148, allocations: 1.071 MB / 0.7133 GB, free: 8.863 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007639/0.2224, allocations: 2.843 MB / 0.7161 GB, free: 6.004 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.00438/0.2268, allocations: 1.581 MB / 0.7176 GB, free: 4.418 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005108/0.2319, allocations: 3.903 MB / 0.7215 GB, free: 0.4961 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007127/0.2326, allocations: 383 kB / 0.7218 GB, free: 96 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002764/0.2354, allocations: 1.673 MB / 0.7235 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.2372, allocations: 1.442 MB / 0.7249 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0002728/0.2375, allocations: 192 kB / 0.7251 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003765/0.2412, allocations: 1.49 MB / 0.7265 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004563/0.2417, allocations: 0.49 MB / 0.727 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001067/0.2427, allocations: 1.038 MB / 0.728 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00543/0.2482, allocations: 3.794 MB / 0.7317 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2482, allocations: 0 / 0.7317 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2482, allocations: 0 / 0.7317 GB, free: 5.941 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 3.332e-05/0.2482, allocations: 0 / 0.7317 GB, free: 5.941 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 479 * Number of variables: 479 Notification: Performance of Generate backend data structure: time 0.005504/0.2537, allocations: 2.989 MB / 0.7346 GB, free: 2.898 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.2538, allocations: 17.45 kB / 0.7346 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001128/0.2549, allocations: 343.1 kB / 0.735 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003028/0.2579, allocations: 1.374 MB / 0.7363 GB, free: 1.129 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001309/0.258, allocations: 148.1 kB / 0.7365 GB, free: 0.9844 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000291/0.2583, allocations: 188.4 kB / 0.7366 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003645/0.262, allocations: 2.242 MB / 0.7388 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.863e-05/0.262, allocations: 0 / 0.7388 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001584/0.2622, allocations: 87.97 kB / 0.7389 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.121e-05/0.2622, allocations: 48 kB / 0.7389 GB, free: 14.38 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003762/0.266, allocations: 2.291 MB / 0.7412 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0085/0.2745, allocations: 4.993 MB / 0.7461 GB, free: 7.008 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003095/0.2776, allocations: 1.781 MB / 0.7478 GB, free: 5.219 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00149/0.2791, allocations: 0.8853 MB / 0.7487 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005972/0.285, allocations: 2.788 MB / 0.7514 GB, free: 1.516 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001828/0.2869, allocations: 1.101 MB / 0.7525 GB, free: 380 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 4.439e-06/0.2869, allocations: 0 / 0.7525 GB, free: 380 kB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.2668/0.5537, allocations: 2.735 MB / 0.7551 GB, free: 110.6 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.5538, allocations: 153.7 kB / 0.7553 GB, free: 110.5 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001544/0.5553, allocations: 1.14 MB / 0.7564 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.732e-05/0.5554, allocations: 62.33 kB / 0.7565 GB, free: 110.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005817/0.556, allocations: 0.8787 MB / 0.7573 GB, free: 109.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004117/0.5564, allocations: 0.6944 MB / 0.758 GB, free: 109.1 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004385/0.5569, allocations: 324.8 kB / 0.7583 GB, free: 109 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.054e-05/0.5569, allocations: 302.9 kB / 0.7586 GB, free: 108.7 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.5581, allocations: 0.6647 MB / 0.7592 GB, free: 108.4 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.5594, allocations: 0.9976 MB / 0.7602 GB, free: 107.8 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002606/0.562, allocations: 1.663 MB / 0.7618 GB, free: 106.9 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.562, allocations: 1.375 kB / 0.7618 GB, free: 106.9 MB / 0.5762 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.003685/0.5657, allocations: 2.157 MB / 0.7639 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/0.5658, allocations: 34.44 kB / 0.764 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.5658, allocations: 5.797 kB / 0.764 GB, free: 105.9 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/0.5663, allocations: 159 kB / 0.7641 GB, free: 105.8 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.5676, allocations: 398.2 kB / 0.7645 GB, free: 105.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003041/0.5706, allocations: 4.438 MB / 0.7688 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001025/0.5716, allocations: 152 kB / 0.769 GB, free: 101.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001987/0.5718, allocations: 85.52 kB / 0.7691 GB, free: 101.6 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (214): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006999/0.5725, allocations: 362.1 kB / 0.7694 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003658/0.5729, allocations: 202 kB / 0.7696 GB, free: 101.3 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005412/0.5783, allocations: 3.096 MB / 0.7726 GB, free: 100 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/0.5783, allocations: 21.16 kB / 0.7727 GB, free: 100 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5783, allocations: 3.125 kB / 0.7727 GB, free: 100 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.553e-05/0.5784, allocations: 11.11 kB / 0.7727 GB, free: 100 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006628/0.585, allocations: 4.045 MB / 0.7766 GB, free: 98.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.585, allocations: 2.281 kB / 0.7766 GB, free: 98.2 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/0.5862, allocations: 382 kB / 0.777 GB, free: 98.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004343/0.5866, allocations: 155.4 kB / 0.7771 GB, free: 98.11 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.5867, allocations: 70.34 kB / 0.7772 GB, free: 98.08 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.5894, allocations: 4.436 MB / 0.7815 GB, free: 93.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.5894, allocations: 2.547 kB / 0.7815 GB, free: 93.98 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004549/0.594, allocations: 3.212 MB / 0.7847 GB, free: 92.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007486/0.5947, allocations: 440.6 kB / 0.7851 GB, free: 92.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.5949, allocations: 45.92 kB / 0.7851 GB, free: 92.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007115/0.5956, allocations: 51.89 kB / 0.7852 GB, free: 92.21 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.5959, allocations: 179.8 kB / 0.7854 GB, free: 92.19 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001271/0.596, allocations: 80.56 kB / 0.7854 GB, free: 92.17 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008321/0.5968, allocations: 0.7847 MB / 0.7862 GB, free: 91.87 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5968, allocations: 3.938 kB / 0.7862 GB, free: 91.87 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.00166/0.5985, allocations: 0.8111 MB / 0.787 GB, free: 91.7 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (flowResistance6.rear.m_flow,flowResistance2.rear.m_flow,flowResistance4.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 (213): * Single equations (assignments): 208 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,4,100.0%), (1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008477/0.5993, allocations: 0.7853 MB / 0.7878 GB, free: 91.36 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002902/0.6022, allocations: 2.144 MB / 0.7899 GB, free: 89.36 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.6022, allocations: 0 / 0.7899 GB, free: 89.36 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.6037, allocations: 1.301 MB / 0.7911 GB, free: 88.12 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/0.6058, allocations: 0.578 MB / 0.7917 GB, free: 87.59 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005201/0.611, allocations: 3.891 MB / 0.7955 GB, free: 83.69 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006008/0.6116, allocations: 0.8964 MB / 0.7964 GB, free: 82.75 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006048/0.6123, allocations: 247.9 kB / 0.7966 GB, free: 82.51 MB / 0.5762 GB Notification: Performance of SimCode: time 8.01e-07/0.6123, allocations: 0 / 0.7966 GB, free: 82.51 MB / 0.5762 GB Notification: Performance of Templates: time 0.05064/0.6629, allocations: 63.11 MB / 0.8582 GB, free: 19.5 MB / 0.5762 GB " [Timeout remaining time 659] make -j1 -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.makefile [Timeout 660] (rm -f ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; mkfifo ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe ; head -c 1048576 < ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe >> ../files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.sim & ./ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve -abortSlowSimulation -alarm=1200 -emit_protected -lv LOG_STATS > ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.pipe 2>&1) [Timeout 1200] diffSimulationResults("ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_res.mat","/mnt/ReferenceFiles/ThermofluidStream-main-regression/ReferenceData/ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve_ref.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ThermofluidStream_dev_ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.650095465127379]