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.001415/0.001415, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001916/0.001916, allocations: 161 kB / 24.56 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 0.9213/0.9213, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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.142e-06/1.142e-06, allocations: 0 / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.093e-05, allocations: 2.312 kB / 273 MB, free: 1.555 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1236/0.1237, allocations: 20.55 MB / 293.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.1378, allocations: 15.8 MB / 309.3 MB, free: 9.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006341/0.1385, allocations: 44.06 kB / 309.3 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000699/0.1392, allocations: 396.9 kB / 309.7 MB, free: 8.965 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008837/0.148, allocations: 5.339 MB / 315.1 MB, free: 5.355 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003726/0.1517, allocations: 2.379 MB / 317.5 MB, free: 3.605 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009262/0.161, allocations: 9.229 MB / 326.7 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007881/0.1618, allocations: 0.6215 MB / 327.3 MB, free: 11.24 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001427/0.1632, allocations: 1.387 MB / 328.7 MB, free: 9.848 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007006/0.1639, allocations: 0.72 MB / 329.4 MB, free: 9.129 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/0.164, allocations: 92 kB / 329.5 MB, free: 9.039 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008685/0.1727, allocations: 6.965 MB / 336.5 MB, free: 2.066 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001972/0.1729, allocations: 302.7 kB / 336.8 MB, free: 1.77 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004069/0.1733, allocations: 0.4949 MB / 337.3 MB, free: 1.273 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005855/0.1792, allocations: 6.097 MB / 343.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1792, allocations: 4 kB / 343.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1792, allocations: 0 / 343.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.1792, allocations: 0 / 343.4 MB, free: 11.16 MB / 298.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.003283/0.1825, allocations: 2.478 MB / 345.8 MB, free: 8.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1825, allocations: 8.031 kB / 345.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002559/0.1851, allocations: 0.9824 MB / 346.8 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001303/0.1864, allocations: 0.9547 MB / 347.8 MB, free: 6.652 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.257e-05/0.1864, allocations: 79.33 kB / 347.9 MB, free: 6.574 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.543e-05/0.1865, allocations: 100.4 kB / 348 MB, free: 6.477 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001956/0.1885, allocations: 1.844 MB / 349.8 MB, free: 4.363 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.126e-05/0.1885, allocations: 11.88 kB / 349.8 MB, free: 4.352 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.1886, allocations: 44 kB / 349.9 MB, free: 4.309 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.859e-05/0.1886, allocations: 28 kB / 349.9 MB, free: 4.281 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.1902, allocations: 1.026 MB / 350.9 MB, free: 3.254 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005066/0.1952, allocations: 7.715 MB / 358.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001477/0.1967, allocations: 0.9162 MB / 359.5 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.197, allocations: 236.8 kB / 359.8 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05848/0.2555, allocations: 34.86 MB / 394.6 MB, free: 7.242 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/0.2555, allocations: 41.89 kB / 394.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 2.845e-06/0.2555, allocations: 0 / 394.7 MB, free: 7.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.003345/0.2589, allocations: 1.704 MB / 396.4 MB, free: 5.477 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.2589, allocations: 196.4 kB / 396.6 MB, free: 5.242 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006746/0.2596, allocations: 0.8521 MB / 397.4 MB, free: 4.363 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/0.2597, allocations: 41.7 kB / 397.5 MB, free: 4.316 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005451/0.2602, allocations: 0.6509 MB / 398.1 MB, free: 3.656 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001415/0.2603, allocations: 293.5 kB / 398.4 MB, free: 3.367 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002097/0.2606, allocations: 248.5 kB / 398.6 MB, free: 3.117 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.2607, allocations: 0.5199 MB / 399.2 MB, free: 2.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002459/0.2609, allocations: 170.5 kB / 399.3 MB, free: 2.422 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005355/0.2615, allocations: 0.9042 MB / 400.2 MB, free: 1.215 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008027/0.2623, allocations: 1.018 MB / 401.2 MB, free: 15.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.2623, allocations: 4 kB / 401.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001114/0.2634, allocations: 1.012 MB / 402.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.2634, allocations: 12 kB / 402.3 MB, free: 14.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/0.2634, allocations: 20.09 kB / 402.3 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001488/0.2649, allocations: 0.4895 MB / 402.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005355/0.2654, allocations: 279.6 kB / 403.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009475/0.2664, allocations: 1.857 MB / 404.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/0.2667, allocations: 119.1 kB / 405 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.787e-05/0.2668, allocations: 67.98 kB / 405.1 MB, free: 12.01 MB / 362.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.0002246/0.267, allocations: 242.8 kB / 405.3 MB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.2672, allocations: 139.2 kB / 405.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/0.2693, allocations: 2.799 MB / 408.3 MB, free: 8.816 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.732e-05/0.2693, allocations: 47.92 kB / 408.3 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2693, allocations: 3.938 kB / 408.3 MB, free: 8.766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.214e-06/0.2693, allocations: 3.984 kB / 408.3 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0025/0.2718, allocations: 3.081 MB / 411.4 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.022e-06/0.2718, allocations: 3.812 kB / 411.4 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.2722, allocations: 167.7 kB / 411.6 MB, free: 5.453 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009488/0.2732, allocations: 0.5823 MB / 412.2 MB, free: 4.867 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.194e-05/0.2732, allocations: 23.98 kB / 412.2 MB, free: 4.844 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007804/0.274, allocations: 2.068 MB / 414.2 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.274, allocations: 0 / 414.2 MB, free: 2.719 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.2752, allocations: 1.621 MB / 415.9 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.2753, allocations: 178.3 kB / 416 MB, free: 0.8555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.946e-05/0.2754, allocations: 43.72 kB / 416.1 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002083/0.2756, allocations: 16 kB / 416.1 MB, free: 0.7969 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.444e-05/0.2757, allocations: 60.55 kB / 416.2 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.429e-05/0.2757, allocations: 35.92 kB / 416.2 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004882/0.2762, allocations: 0.6422 MB / 416.8 MB, free: 56 kB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2762, allocations: 0 / 416.8 MB, free: 56 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.002215/0.2784, allocations: 1.306 MB / 418.1 MB, free: 14.75 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.002745/0.2812, allocations: 1.392 MB / 419.5 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00115/0.2823, allocations: 0.8572 MB / 420.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2823, allocations: 0 / 420.4 MB, free: 12.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006687/0.283, allocations: 0.5726 MB / 421 MB, free: 11.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.2844, allocations: 0.6317 MB / 421.6 MB, free: 11.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.2872, allocations: 2.788 MB / 424.4 MB, free: 8.477 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001982/0.2874, allocations: 322.2 kB / 424.7 MB, free: 8.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006531/0.288, allocations: 0.6059 MB / 425.3 MB, free: 7.535 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000168/0.2882, allocations: 120.5 kB / 425.4 MB, free: 7.418 MB / 378.7 MB Notification: Performance of SimCode: time 9.52e-07/0.2882, allocations: 4 kB / 425.4 MB, free: 7.414 MB / 378.7 MB Notification: Performance of Templates: time 0.1528/0.441, allocations: 55.28 MB / 480.7 MB, free: 77.02 MB / 378.7 MB " [Timeout remaining time 660] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.159406526014209]