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.001611/0.001611, allocations: 78.64 kB / 19.76 MB, free: 1.875 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.001803/0.001803, allocations: 156.2 kB / 23.01 MB, free: 4.602 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.376/1.376, allocations: 177.2 MB / 203.4 MB, free: 8.973 MB / 190.1 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.7145/0.7145, allocations: 79.61 MB / 339.4 MB, free: 10.98 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.002471/0.002471, allocations: 88.02 kB / 0.4924 GB, free: 26.05 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1193, allocations: 74.58 MB / 0.5652 GB, free: 6.004 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.06545/0.1848, allocations: 59.75 MB / 0.6236 GB, free: 10.04 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02117/0.2059, allocations: 16.04 MB / 0.6392 GB, free: 9.945 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002121/0.2081, allocations: 114.9 kB / 0.6393 GB, free: 9.832 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00285/0.2109, allocations: 1.059 MB / 0.6404 GB, free: 8.766 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007181/0.2181, allocations: 2.839 MB / 0.6431 GB, free: 5.91 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004164/0.2223, allocations: 1.598 MB / 0.6447 GB, free: 4.309 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005372/0.2276, allocations: 3.899 MB / 0.6485 GB, free: 400 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008209/0.2285, allocations: 379.1 kB / 0.6489 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003117/0.2316, allocations: 1.669 MB / 0.6505 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002223/0.2338, allocations: 1.442 MB / 0.6519 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003624/0.2342, allocations: 192 kB / 0.6521 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004239/0.2384, allocations: 1.494 MB / 0.6535 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.00058/0.239, allocations: 0.4939 MB / 0.654 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001418/0.2404, allocations: 1.03 MB / 0.655 GB, free: 9.652 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.007038/0.2474, allocations: 3.79 MB / 0.6587 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.2474, allocations: 4 kB / 0.6587 GB, free: 5.844 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2474, allocations: 3.938 kB / 0.6587 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.161e-05/0.2475, allocations: 0 / 0.6587 GB, free: 5.84 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.005877/0.2534, allocations: 2.99 MB / 0.6617 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.2534, allocations: 9.469 kB / 0.6617 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.2545, allocations: 355 kB / 0.662 GB, free: 2.441 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002543/0.257, allocations: 1.371 MB / 0.6633 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.2571, allocations: 144.1 kB / 0.6635 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002622/0.2574, allocations: 188.4 kB / 0.6637 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00358/0.261, allocations: 2.238 MB / 0.6659 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.887e-05/0.261, allocations: 0 / 0.6659 GB, free: 14.41 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001569/0.2612, allocations: 76 kB / 0.6659 GB, free: 14.34 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.277e-05/0.2612, allocations: 48 kB / 0.666 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003714/0.2649, allocations: 2.298 MB / 0.6682 GB, free: 11.99 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009071/0.274, allocations: 4.997 MB / 0.6731 GB, free: 6.914 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003227/0.2772, allocations: 1.792 MB / 0.6748 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001501/0.2787, allocations: 0.8775 MB / 0.6757 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005963/0.2847, allocations: 2.789 MB / 0.6784 GB, free: 1.418 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00184/0.2865, allocations: 1.101 MB / 0.6795 GB, free: 280 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 3.878e-06/0.2865, allocations: 4 kB / 0.6795 GB, free: 276 kB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.00582/0.2924, allocations: 2.742 MB / 0.6822 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.984e-05/0.2925, allocations: 150.5 kB / 0.6823 GB, free: 13.34 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001439/0.2939, allocations: 1.141 MB / 0.6834 GB, free: 12.19 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.294, allocations: 61.7 kB / 0.6835 GB, free: 12.12 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007531/0.2948, allocations: 0.8835 MB / 0.6844 GB, free: 11.23 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005916/0.2953, allocations: 0.6931 MB / 0.685 GB, free: 10.53 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004874/0.2958, allocations: 327.5 kB / 0.6854 GB, free: 10.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.296, allocations: 309.1 kB / 0.6856 GB, free: 9.895 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001222/0.2972, allocations: 0.6576 MB / 0.6863 GB, free: 9.23 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.2987, allocations: 0.9979 MB / 0.6873 GB, free: 8.137 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0029/0.3016, allocations: 1.664 MB / 0.6889 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.124e-06/0.3017, allocations: 0 / 0.6889 GB, free: 6.402 MB / 0.5919 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004177/0.3058, allocations: 2.154 MB / 0.691 GB, free: 4.219 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.669e-05/0.3059, allocations: 33.7 kB / 0.691 GB, free: 4.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.3059, allocations: 12 kB / 0.691 GB, free: 4.168 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005721/0.3065, allocations: 162.4 kB / 0.6912 GB, free: 4 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.3078, allocations: 391.5 kB / 0.6916 GB, free: 3.617 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2585/0.5663, allocations: 4.431 MB / 0.6959 GB, free: 122.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.5676, allocations: 147 kB / 0.696 GB, free: 122.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000196/0.5678, allocations: 92.17 kB / 0.6961 GB, free: 122.8 MB / 0.5919 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.0007033/0.5685, allocations: 361.1 kB / 0.6965 GB, free: 122.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003787/0.5689, allocations: 198.9 kB / 0.6967 GB, free: 122.7 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005457/0.5744, allocations: 3.098 MB / 0.6997 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.486e-05/0.5744, allocations: 21.38 kB / 0.6997 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.5744, allocations: 3.375 kB / 0.6997 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.107e-05/0.5744, allocations: 10.36 kB / 0.6997 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006244/0.5807, allocations: 4.049 MB / 0.7037 GB, free: 120.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.5807, allocations: 1.031 kB / 0.7037 GB, free: 120.7 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.5818, allocations: 378.1 kB / 0.704 GB, free: 120.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004331/0.5823, allocations: 166.8 kB / 0.7042 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.5824, allocations: 66.17 kB / 0.7043 GB, free: 120.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002656/0.585, allocations: 4.43 MB / 0.7086 GB, free: 116.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.585, allocations: 3.875 kB / 0.7086 GB, free: 116.5 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005838/0.5909, allocations: 3.208 MB / 0.7117 GB, free: 115.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009839/0.5919, allocations: 436.5 kB / 0.7121 GB, free: 114.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/0.5921, allocations: 48.06 kB / 0.7122 GB, free: 114.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007728/0.5928, allocations: 63.19 kB / 0.7122 GB, free: 114.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003867/0.5932, allocations: 166 kB / 0.7124 GB, free: 114.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.5934, allocations: 86.22 kB / 0.7125 GB, free: 114.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001259/0.5947, allocations: 0.7821 MB / 0.7132 GB, free: 114.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 7.1e-08/0.5947, allocations: 0 / 0.7132 GB, free: 114.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.001954/0.5966, allocations: 0.8168 MB / 0.714 GB, free: 114.3 MB / 0.5919 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.001052/0.5977, allocations: 0.7775 MB / 0.7148 GB, free: 114.1 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003472/0.6011, allocations: 2.138 MB / 0.7169 GB, free: 113.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.6011, allocations: 4.781 kB / 0.7169 GB, free: 113.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.6029, allocations: 1.307 MB / 0.7182 GB, free: 112.4 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002279/0.6051, allocations: 0.5835 MB / 0.7187 GB, free: 112.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00531/0.6105, allocations: 3.84 MB / 0.7225 GB, free: 110.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006478/0.6111, allocations: 0.8933 MB / 0.7234 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001245/0.6123, allocations: 459.8 kB / 0.7238 GB, free: 110 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00043/0.6128, allocations: 222.5 kB / 0.724 GB, free: 110 MB / 0.5919 GB Notification: Performance of SimCode: time 1.382e-06/0.6128, allocations: 0 / 0.724 GB, free: 110 MB / 0.5919 GB Notification: Performance of Templates: time 0.04719/0.66, allocations: 37.81 MB / 0.7609 GB, free: 73.77 MB / 0.5919 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 -s ida -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: 6.872682341025211]