Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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.00188/0.00188, allocations: 83.69 kB / 20.96 MB, free: 3.316 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.00204/0.00204, allocations: 161.3 kB / 24.27 MB, free: 12 kB / 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 1.697/1.697, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|suddenExpansion1.m_flow|suddenExpansion1.dp|suddenExpansion1.port_b_T|suddenExpansion2.m_flow|suddenExpansion2.dp|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.548e-05/2.714e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2077/0.2078, allocations: 64.7 MB / 337 MB, free: 1.188 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03628/0.244, allocations: 22.37 MB / 359.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0019/0.2459, allocations: 47.56 kB / 359.4 MB, free: 10.69 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.2484, allocations: 0.6787 MB / 360.1 MB, free: 10.01 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01724/0.2656, allocations: 5.908 MB / 366 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01016/0.2758, allocations: 3.473 MB / 369.5 MB, free: 0.5898 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02117/0.297, allocations: 9.16 MB / 378.6 MB, free: 7.312 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001518/0.2985, allocations: 0.6151 MB / 379.3 MB, free: 6.684 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003088/0.3016, allocations: 1.426 MB / 380.7 MB, free: 5.254 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001378/0.3029, allocations: 0.7128 MB / 381.4 MB, free: 4.539 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000204/0.3031, allocations: 92 kB / 381.5 MB, free: 4.449 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01592/0.3191, allocations: 7.312 MB / 388.8 MB, free: 13.13 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005297/0.3196, allocations: 298.7 kB / 389.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001047/0.3206, allocations: 0.4989 MB / 389.6 MB, free: 12.34 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01599/0.3366, allocations: 6.922 MB / 396.5 MB, free: 5.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.3366, allocations: 0 / 396.5 MB, free: 5.398 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.537e-06/0.3366, allocations: 7.984 kB / 396.5 MB, free: 5.391 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.262e-05/0.3367, allocations: 0 / 396.5 MB, free: 5.391 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006965/0.3436, allocations: 2.63 MB / 399.1 MB, free: 2.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.3437, allocations: 8.031 kB / 399.1 MB, free: 2.703 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005069/0.3487, allocations: 0.9831 MB / 400.1 MB, free: 1.719 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002101/0.3508, allocations: 0.9586 MB / 401.1 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.681e-05/0.3509, allocations: 74.39 kB / 401.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001755/0.3511, allocations: 104.4 kB / 401.3 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004267/0.3553, allocations: 2.078 MB / 403.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.312e-05/0.3554, allocations: 3.938 kB / 403.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001254/0.3555, allocations: 56 kB / 403.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.988e-05/0.3555, allocations: 27.98 kB / 403.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003534/0.3591, allocations: 1.42 MB / 404.8 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01137/0.3704, allocations: 8.291 MB / 413.1 MB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003006/0.3734, allocations: 1.072 MB / 414.2 MB, free: 3.098 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006892/0.3741, allocations: 368.7 kB / 414.6 MB, free: 2.73 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2829/0.657, allocations: 34.86 MB / 449.4 MB, free: 127.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.657, allocations: 45.7 kB / 449.5 MB, free: 127.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.725e-06/0.657, allocations: 0 / 449.5 MB, free: 127.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.007493/0.6645, allocations: 2.038 MB / 451.5 MB, free: 126.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.838e-05/0.6646, allocations: 193.9 kB / 451.7 MB, free: 126 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001384/0.666, allocations: 1.052 MB / 452.8 MB, free: 124.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.266e-05/0.6661, allocations: 37.7 kB / 452.8 MB, free: 124.9 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.6664, allocations: 0.6905 MB / 453.5 MB, free: 124.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002109/0.6666, allocations: 299.5 kB / 453.8 MB, free: 124 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003238/0.6669, allocations: 280.4 kB / 454 MB, free: 123.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.667, allocations: 0.5512 MB / 454.6 MB, free: 123.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004337/0.6675, allocations: 286.5 kB / 454.9 MB, free: 122.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006965/0.6682, allocations: 1.041 MB / 455.9 MB, free: 121.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.6693, allocations: 1.275 MB / 457.2 MB, free: 120 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.6693, allocations: 4 kB / 457.2 MB, free: 120 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001791/0.6711, allocations: 1.266 MB / 458.5 MB, free: 118.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.6711, allocations: 11.75 kB / 458.5 MB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.372e-05/0.6711, allocations: 16.88 kB / 458.5 MB, free: 118.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003054/0.6742, allocations: 0.5134 MB / 459 MB, free: 118.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.6758, allocations: 271.6 kB / 459.3 MB, free: 117.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001072/0.6768, allocations: 1.959 MB / 461.2 MB, free: 115.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008296/0.6777, allocations: 117.8 kB / 461.3 MB, free: 115.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.297e-05/0.6777, allocations: 71.98 kB / 461.4 MB, free: 115.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0004921/0.6782, allocations: 330.9 kB / 461.7 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.6785, allocations: 141.6 kB / 461.9 MB, free: 115.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002903/0.6814, allocations: 2.862 MB / 464.7 MB, free: 112.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.455e-05/0.6814, allocations: 51.86 kB / 464.8 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/0.6814, allocations: 2.938 kB / 464.8 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.552e-05/0.6815, allocations: 3.984 kB / 464.8 MB, free: 112.4 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005729/0.6872, allocations: 3.329 MB / 468.1 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.6872, allocations: 4 kB / 468.1 MB, free: 109.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.6884, allocations: 167.7 kB / 468.3 MB, free: 108.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002014/0.6904, allocations: 0.5902 MB / 468.9 MB, free: 108.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.5e-05/0.6905, allocations: 23.98 kB / 468.9 MB, free: 108.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/0.692, allocations: 2.136 MB / 471 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.692, allocations: 0 / 471 MB, free: 106.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003054/0.695, allocations: 1.777 MB / 472.8 MB, free: 104.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003634/0.6954, allocations: 183.7 kB / 473 MB, free: 104.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002421/0.6956, allocations: 43.73 kB / 473 MB, free: 104 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000792/0.6964, allocations: 16 kB / 473.1 MB, free: 104 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001281/0.6965, allocations: 64.48 kB / 473.1 MB, free: 103.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.56e-05/0.6966, allocations: 36.03 kB / 473.2 MB, free: 103.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001367/0.698, allocations: 0.7946 MB / 474 MB, free: 103.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.698, allocations: 0 / 474 MB, free: 103.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004878/0.7029, allocations: 1.314 MB / 475.3 MB, free: 101.8 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005762/0.7086, allocations: 1.393 MB / 476.7 MB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0029/0.7115, allocations: 1.074 MB / 477.7 MB, free: 99.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.7115, allocations: 7.938 kB / 477.7 MB, free: 99.42 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001524/0.7131, allocations: 0.6452 MB / 478.4 MB, free: 98.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003652/0.7167, allocations: 0.6224 MB / 479 MB, free: 98.18 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004452/0.7212, allocations: 2.927 MB / 481.9 MB, free: 95.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006671/0.7218, allocations: 0.7345 MB / 482.7 MB, free: 94.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001496/0.7233, allocations: 0.61 MB / 483.3 MB, free: 93.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003457/0.7237, allocations: 116.5 kB / 483.4 MB, free: 93.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.863e-06/0.7237, allocations: 0 / 483.4 MB, free: 93.75 MB / 378.7 MB Notification: Performance of Templates: time 0.08172/0.8054, allocations: 55.58 MB / 0.5263 GB, free: 38.66 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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: 8.595791142084636]