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.00154/0.00154, allocations: 80.98 kB / 19.76 MB, free: 1.898 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.001619/0.001619, allocations: 162.8 kB / 23.01 MB, free: 4.578 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.389/1.389, allocations: 177.2 MB / 203.4 MB, free: 9.254 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.7231/0.7231, allocations: 79.61 MB / 339.4 MB, free: 11.51 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.002483/0.002483, allocations: 88.59 kB / 0.4924 GB, free: 26.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1123, allocations: 74.59 MB / 0.5652 GB, free: 6.117 MB / 478.1 MB Notification: Performance of NFInst.instantiate(ThermofluidStream.Undirected.FlowControl.Tests.BasicControlValve): time 0.06563/0.1779, allocations: 59.42 MB / 0.6232 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02124/0.1991, allocations: 16.04 MB / 0.6389 GB, free: 10.4 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001964/0.2011, allocations: 111 kB / 0.639 GB, free: 10.29 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002803/0.2039, allocations: 1.067 MB / 0.64 GB, free: 9.219 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.007622/0.2115, allocations: 2.843 MB / 0.6428 GB, free: 6.359 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.004447/0.216, allocations: 1.589 MB / 0.6444 GB, free: 4.766 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.005391/0.2214, allocations: 3.903 MB / 0.6482 GB, free: 0.8438 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006874/0.2221, allocations: 387 kB / 0.6485 GB, free: 448 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003496/0.2256, allocations: 2.317 MB / 0.6508 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001836/0.2274, allocations: 1.438 MB / 0.6522 GB, free: 12.67 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0003044/0.2277, allocations: 192 kB / 0.6524 GB, free: 12.48 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003785/0.2315, allocations: 1.502 MB / 0.6539 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0004757/0.232, allocations: 497.8 kB / 0.6543 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.2331, allocations: 1.03 MB / 0.6553 GB, free: 9.453 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005874/0.239, allocations: 3.794 MB / 0.6591 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.239, allocations: 0 / 0.6591 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.533e-06/0.239, allocations: 0 / 0.6591 GB, free: 5.645 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.273e-05/0.239, allocations: 0 / 0.6591 GB, free: 5.645 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.005786/0.2448, allocations: 2.997 MB / 0.662 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.2449, allocations: 8.031 kB / 0.662 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.2459, allocations: 343.1 kB / 0.6623 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002532/0.2484, allocations: 1.371 MB / 0.6637 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.2485, allocations: 140.1 kB / 0.6638 GB, free: 0.6992 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/0.2488, allocations: 196.4 kB / 0.664 GB, free: 0.5078 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003619/0.2524, allocations: 2.242 MB / 0.6662 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.88e-05/0.2524, allocations: 3.938 kB / 0.6662 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001506/0.2526, allocations: 76 kB / 0.6662 GB, free: 14.14 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.111e-05/0.2526, allocations: 48 kB / 0.6663 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003751/0.2564, allocations: 2.294 MB / 0.6685 GB, free: 11.79 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008436/0.2648, allocations: 4.997 MB / 0.6734 GB, free: 6.715 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003092/0.2679, allocations: 1.777 MB / 0.6751 GB, free: 4.926 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.2694, allocations: 0.8893 MB / 0.676 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005763/0.2752, allocations: 2.781 MB / 0.6787 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001951/0.2771, allocations: 1.109 MB / 0.6798 GB, free: 76 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=200): time 4.077e-06/0.2771, allocations: 0 / 0.6798 GB, free: 76 kB / 0.5762 GB Notification: Performance of matching and sorting (n=200): time 0.005818/0.283, allocations: 2.742 MB / 0.6825 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.588e-05/0.2831, allocations: 158.5 kB / 0.6826 GB, free: 13.13 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001419/0.2845, allocations: 1.133 MB / 0.6837 GB, free: 11.99 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.2846, allocations: 61.7 kB / 0.6838 GB, free: 11.92 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007403/0.2853, allocations: 0.8794 MB / 0.6847 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005868/0.2859, allocations: 0.7009 MB / 0.6853 GB, free: 10.33 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004723/0.2864, allocations: 319.5 kB / 0.6857 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.2865, allocations: 305.1 kB / 0.6859 GB, free: 9.707 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001247/0.2878, allocations: 0.6655 MB / 0.6866 GB, free: 9.035 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.2893, allocations: 0.9979 MB / 0.6876 GB, free: 7.941 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002916/0.2922, allocations: 1.66 MB / 0.6892 GB, free: 6.211 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.2923, allocations: 3.938 kB / 0.6892 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004114/0.2964, allocations: 2.154 MB / 0.6913 GB, free: 4.023 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.882e-05/0.2964, allocations: 37.7 kB / 0.6913 GB, free: 3.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.406e-05/0.2964, allocations: 4 kB / 0.6913 GB, free: 3.977 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005696/0.297, allocations: 162.5 kB / 0.6915 GB, free: 3.809 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.2984, allocations: 387.4 kB / 0.6919 GB, free: 3.43 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2603/0.5587, allocations: 4.437 MB / 0.6962 GB, free: 123.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001235/0.5599, allocations: 151.6 kB / 0.6963 GB, free: 123.3 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001773/0.5601, allocations: 80.94 kB / 0.6964 GB, free: 123.3 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.000644/0.5607, allocations: 362.1 kB / 0.6968 GB, free: 123.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.561, allocations: 200.1 kB / 0.6969 GB, free: 123.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005205/0.5663, allocations: 3.1 MB / 0.7 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.5663, allocations: 21.78 kB / 0.7 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.5663, allocations: 6.188 kB / 0.7 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.023e-05/0.5663, allocations: 13.55 kB / 0.7 GB, free: 122.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006337/0.5726, allocations: 4.046 MB / 0.704 GB, free: 120.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5726, allocations: 2.969 kB / 0.704 GB, free: 120.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.5738, allocations: 380.2 kB / 0.7043 GB, free: 120.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004392/0.5743, allocations: 163 kB / 0.7045 GB, free: 120.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.5744, allocations: 66.33 kB / 0.7046 GB, free: 120.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002769/0.5771, allocations: 4.435 MB / 0.7089 GB, free: 116.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.5772, allocations: 2.875 kB / 0.7089 GB, free: 116.6 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005734/0.5829, allocations: 3.207 MB / 0.712 GB, free: 115.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009096/0.5838, allocations: 439.7 kB / 0.7124 GB, free: 114.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002419/0.584, allocations: 47.31 kB / 0.7125 GB, free: 114.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007954/0.5848, allocations: 59.52 kB / 0.7125 GB, free: 114.8 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003897/0.5852, allocations: 170.3 kB / 0.7127 GB, free: 114.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001782/0.5854, allocations: 81.52 kB / 0.7128 GB, free: 114.8 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001268/0.5867, allocations: 0.7864 MB / 0.7135 GB, free: 114.5 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5867, allocations: 0 / 0.7135 GB, free: 114.5 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002356/0.589, allocations: 0.8155 MB / 0.7143 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.001037/0.5901, allocations: 0.7773 MB / 0.7151 GB, free: 114.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.00359/0.5937, allocations: 2.14 MB / 0.7172 GB, free: 113.1 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.5937, allocations: 1.375 kB / 0.7172 GB, free: 113.1 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001777/0.5954, allocations: 1.306 MB / 0.7185 GB, free: 112.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/0.5977, allocations: 0.5835 MB / 0.719 GB, free: 112.2 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005373/0.6031, allocations: 3.838 MB / 0.7228 GB, free: 110.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006512/0.6037, allocations: 0.8972 MB / 0.7237 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001288/0.605, allocations: 464.8 kB / 0.7241 GB, free: 110.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000409/0.6054, allocations: 224.1 kB / 0.7243 GB, free: 110 MB / 0.5919 GB Notification: Performance of SimCode: time 6.81e-07/0.6054, allocations: 0 / 0.7243 GB, free: 110 MB / 0.5919 GB Notification: Performance of Templates: time 0.04496/0.6504, allocations: 37.8 MB / 0.7612 GB, free: 73.79 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 gbode -gbnls=internal -gberr=embedded -gbm=radauIIA3 -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.85078961821273]