Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001452/0.001452, allocations: 82.59 kB / 21.43 MB, free: 3.07 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001585/0.001585, allocations: 166.1 kB / 24.82 MB, free: 9.258 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.025/1.025, allocations: 177 MB / 205.1 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 273.3 MB, free: 1.258 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.452e-05/2.637e-05, allocations: 5.266 kB / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.143/0.143, allocations: 20.3 MB / 293.6 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01989/0.1629, allocations: 15.56 MB / 309.2 MB, free: 9.418 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.1643, allocations: 44.44 kB / 309.2 MB, free: 9.391 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.1654, allocations: 403.5 kB / 309.6 MB, free: 9.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01345/0.1788, allocations: 5.346 MB / 315 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005413/0.1842, allocations: 2.375 MB / 317.3 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01055/0.1948, allocations: 9.225 MB / 326.6 MB, free: 12.06 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001143/0.1959, allocations: 0.6205 MB / 327.2 MB, free: 11.43 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009667/0.2056, allocations: 7.697 MB / 334.9 MB, free: 3.621 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.207, allocations: 0.7362 MB / 335.6 MB, free: 2.883 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002227/0.2073, allocations: 92 kB / 335.7 MB, free: 2.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01126/0.2185, allocations: 6.961 MB / 342.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003124/0.2188, allocations: 298.7 kB / 343 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007487/0.2196, allocations: 0.4911 MB / 343.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0117/0.2313, allocations: 6.079 MB / 349.5 MB, free: 4.945 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/0.2313, allocations: 4 kB / 349.5 MB, free: 4.941 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2313, allocations: 4 kB / 349.5 MB, free: 4.938 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.065e-05/0.2313, allocations: 3.938 kB / 349.5 MB, free: 4.934 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.004584/0.2359, allocations: 2.482 MB / 352 MB, free: 2.402 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.236, allocations: 15.98 kB / 352 MB, free: 2.387 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002588/0.2386, allocations: 0.9512 MB / 353 MB, free: 1.434 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.2399, allocations: 0.943 MB / 353.9 MB, free: 464 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.044e-05/0.2399, allocations: 74.39 kB / 354 MB, free: 388 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.436e-05/0.24, allocations: 104.3 kB / 354.1 MB, free: 284 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001856/0.2418, allocations: 1.773 MB / 355.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.929e-05/0.2419, allocations: 7.875 kB / 355.9 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.955e-05/0.2419, allocations: 54.94 kB / 355.9 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.2419, allocations: 24 kB / 356 MB, free: 14.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001341/0.2433, allocations: 0.9065 MB / 356.9 MB, free: 13.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005079/0.2484, allocations: 7.43 MB / 364.3 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001379/0.2497, allocations: 0.8641 MB / 365.2 MB, free: 4.707 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002017/0.2499, allocations: 192.8 kB / 365.3 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05355/0.3035, allocations: 30.48 MB / 395.8 MB, free: 6.039 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.3035, allocations: 49.88 kB / 395.9 MB, free: 5.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 2.755e-06/0.3035, allocations: 0 / 395.9 MB, free: 5.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.003443/0.307, allocations: 1.611 MB / 397.5 MB, free: 4.355 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.3071, allocations: 196.4 kB / 397.7 MB, free: 4.121 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006251/0.3077, allocations: 0.8244 MB / 398.5 MB, free: 3.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.663e-05/0.3077, allocations: 41.7 kB / 398.5 MB, free: 3.223 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003256/0.308, allocations: 0.6624 MB / 399.2 MB, free: 2.551 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001707/0.3082, allocations: 293.5 kB / 399.5 MB, free: 2.262 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.3084, allocations: 256.3 kB / 399.7 MB, free: 2.004 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3086, allocations: 0.5276 MB / 400.3 MB, free: 1.469 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001606/0.3087, allocations: 134.5 kB / 400.4 MB, free: 1.336 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004876/0.3092, allocations: 0.8767 MB / 401.3 MB, free: 160 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007152/0.3099, allocations: 0.9552 MB / 402.2 MB, free: 14.94 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.935e-06/0.3099, allocations: 4 kB / 402.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001225/0.3112, allocations: 0.931 MB / 403.2 MB, free: 13.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3112, allocations: 12.62 kB / 403.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.3112, allocations: 16 kB / 403.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.3125, allocations: 494.4 kB / 403.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.313, allocations: 279.5 kB / 404 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000723/0.3138, allocations: 1.852 MB / 405.8 MB, free: 11.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003954/0.3142, allocations: 119.1 kB / 405.9 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.386e-05/0.3142, allocations: 63.98 kB / 406 MB, free: 11.12 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 (leftBoundary1.medium.phase,rightBoundary1.medium.phase,suddenExpansion1.state_b_des.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_b.phase,leftBoundary2.medium.phase,rightBoundary2.medium.phase,suddenExpansion2.state_b_des.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_b.phase,leftAdaptor.state_b_des.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_a.phase,leftAdaptor.state_b.phase,rightAdaptor.state_b_des.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_a.phase,rightAdaptor.state_b.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.0002487/0.3145, allocations: 250.8 kB / 406.2 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.3146, allocations: 135.3 kB / 406.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001895/0.3165, allocations: 2.5 MB / 408.9 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/0.3165, allocations: 47.92 kB / 408.9 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.535e-06/0.3165, allocations: 0 / 408.9 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3165, allocations: 7.922 kB / 408.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002633/0.3192, allocations: 2.79 MB / 411.7 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.3192, allocations: 0 / 411.7 MB, free: 5.305 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/0.3196, allocations: 167.7 kB / 411.9 MB, free: 5.141 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006659/0.3202, allocations: 0.5666 MB / 412.4 MB, free: 4.57 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.165e-05/0.3203, allocations: 27.98 kB / 412.5 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009611/0.3212, allocations: 2.025 MB / 414.5 MB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3212, allocations: 0 / 414.5 MB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.3225, allocations: 1.5 MB / 416 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001876/0.3227, allocations: 182.3 kB / 416.2 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.854e-05/0.3227, allocations: 43.8 kB / 416.2 MB, free: 0.6719 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.323, allocations: 20 kB / 416.2 MB, free: 0.6523 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.254e-05/0.323, allocations: 60.55 kB / 416.3 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.266e-05/0.323, allocations: 27.98 kB / 416.3 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004008/0.3234, allocations: 0.5874 MB / 416.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3234, allocations: 0 / 416.9 MB, free: 15.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003414/0.3269, allocations: 1.302 MB / 418.2 MB, free: 14.67 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.003485/0.3303, allocations: 1.423 MB / 419.6 MB, free: 13.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001247/0.3316, allocations: 0.7711 MB / 420.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3316, allocations: 0 / 420.4 MB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006188/0.3322, allocations: 0.514 MB / 420.9 MB, free: 11.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001498/0.3337, allocations: 0.634 MB / 421.5 MB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.3366, allocations: 2.751 MB / 424.3 MB, free: 8.531 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002059/0.3368, allocations: 326.2 kB / 424.6 MB, free: 8.188 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001034/0.3378, allocations: 0.6107 MB / 425.2 MB, free: 7.582 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007754/0.3386, allocations: 0.5603 MB / 425.8 MB, free: 7.02 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.3386, allocations: 0 / 425.8 MB, free: 7.02 MB / 378.7 MB Notification: Performance of Templates: time 0.1715/0.5102, allocations: 62.66 MB / 488.5 MB, free: 69.66 MB / 378.7 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.043020106386393]