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.001061/0.001061, allocations: 79.69 kB / 21.7 MB, free: 2.848 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.001156/0.001156, allocations: 167.7 kB / 24.99 MB, free: 8.219 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 0.9522/0.9522, allocations: 177 MB / 205.2 MB, free: 5.531 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 3.487e-06/3.487e-06, allocations: 4 kB / 273 MB, free: 1.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.861e-05/2.209e-05, allocations: 10.25 kB / 273 MB, free: 1.723 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1612/0.1612, allocations: 64.85 MB / 337.8 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01906/0.1803, allocations: 22.37 MB / 360.2 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008621/0.1811, allocations: 39.62 kB / 360.2 MB, free: 10.29 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001374/0.1825, allocations: 0.6826 MB / 360.9 MB, free: 9.605 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01015/0.1927, allocations: 5.921 MB / 366.8 MB, free: 3.664 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006129/0.1988, allocations: 3.469 MB / 370.3 MB, free: 184 kB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01067/0.2095, allocations: 9.16 MB / 379.5 MB, free: 6.902 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009559/0.2104, allocations: 0.615 MB / 380.1 MB, free: 6.277 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.2122, allocations: 1.426 MB / 381.5 MB, free: 4.848 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007825/0.213, allocations: 0.7128 MB / 382.2 MB, free: 4.133 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.2132, allocations: 92 kB / 382.3 MB, free: 4.043 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009649/0.2228, allocations: 7.305 MB / 389.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002124/0.223, allocations: 310.7 kB / 389.9 MB, free: 12.43 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004457/0.2235, allocations: 0.4949 MB / 390.4 MB, free: 11.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00783/0.2313, allocations: 6.449 MB / 396.9 MB, free: 5.465 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.2313, allocations: 4 kB / 396.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2313, allocations: 0 / 396.9 MB, free: 5.461 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.177e-05/0.2313, allocations: 4 kB / 396.9 MB, free: 5.457 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.00423/0.2356, allocations: 2.563 MB / 399.4 MB, free: 2.844 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2356, allocations: 15.98 kB / 399.5 MB, free: 2.828 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003125/0.2387, allocations: 0.9786 MB / 400.4 MB, free: 1.848 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001184/0.2399, allocations: 0.9508 MB / 401.4 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.549e-05/0.24, allocations: 74.39 kB / 401.5 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.87e-05/0.2401, allocations: 104.4 kB / 401.6 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002358/0.2424, allocations: 1.844 MB / 403.4 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.29e-05/0.2424, allocations: 11.88 kB / 403.4 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.097e-05/0.2425, allocations: 44 kB / 403.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.2425, allocations: 31.98 kB / 403.5 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001741/0.2443, allocations: 1.014 MB / 404.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005122/0.2494, allocations: 7.742 MB / 412.2 MB, free: 5.496 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.251, allocations: 0.9086 MB / 413.2 MB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002999/0.2513, allocations: 236.8 kB / 413.4 MB, free: 4.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1792/0.4305, allocations: 34.83 MB / 448.2 MB, free: 129.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.174e-05/0.4306, allocations: 47.08 kB / 448.3 MB, free: 129.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 2.084e-06/0.4306, allocations: 9.203 kB / 448.3 MB, free: 129.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.003223/0.4338, allocations: 1.693 MB / 450 MB, free: 128.3 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.4338, allocations: 196.2 kB / 450.2 MB, free: 128.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000558/0.4344, allocations: 0.8483 MB / 451 MB, free: 127.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.594e-05/0.4344, allocations: 33.7 kB / 451 MB, free: 127.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002225/0.4346, allocations: 0.6594 MB / 451.7 MB, free: 126.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.4348, allocations: 296.6 kB / 452 MB, free: 126.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/0.4349, allocations: 248.4 kB / 452.2 MB, free: 126.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.876e-05/0.435, allocations: 0.5199 MB / 452.7 MB, free: 125.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002266/0.4352, allocations: 174.3 kB / 452.9 MB, free: 125.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.4356, allocations: 0.9039 MB / 453.8 MB, free: 124.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007137/0.4363, allocations: 1.014 MB / 454.8 MB, free: 123.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.054e-06/0.4363, allocations: 4.562 kB / 454.8 MB, free: 123.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001018/0.4374, allocations: 1.019 MB / 455.9 MB, free: 122.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.4374, allocations: 11.75 kB / 455.9 MB, free: 122.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.4374, allocations: 16 kB / 455.9 MB, free: 122 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.4388, allocations: 495.4 kB / 456.4 MB, free: 121.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.4393, allocations: 283.5 kB / 456.6 MB, free: 121.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004923/0.4398, allocations: 1.862 MB / 458.5 MB, free: 119.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.4402, allocations: 115.8 kB / 458.6 MB, free: 119.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.305e-05/0.4402, allocations: 63.98 kB / 458.7 MB, free: 119.2 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.000202/0.4404, allocations: 251.8 kB / 458.9 MB, free: 119 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.4406, allocations: 135.3 kB / 459.1 MB, free: 118.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.4423, allocations: 2.791 MB / 461.9 MB, free: 116.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/0.4424, allocations: 43.94 kB / 461.9 MB, free: 116 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.112e-06/0.4424, allocations: 7.812 kB / 461.9 MB, free: 116 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.4424, allocations: 10.52 kB / 461.9 MB, free: 116 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.4445, allocations: 3.079 MB / 465 MB, free: 113 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.182e-06/0.4445, allocations: 7.984 kB / 465 MB, free: 112.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003645/0.4449, allocations: 163.8 kB / 465.2 MB, free: 112.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006157/0.4455, allocations: 0.576 MB / 465.7 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.4455, allocations: 27.98 kB / 465.8 MB, free: 112.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005614/0.4461, allocations: 2.064 MB / 467.8 MB, free: 110.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4461, allocations: 0 / 467.8 MB, free: 110.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.4472, allocations: 1.625 MB / 469.5 MB, free: 108.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.232e-05/0.4473, allocations: 174.4 kB / 469.6 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.094e-05/0.4473, allocations: 51.66 kB / 469.7 MB, free: 108.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002117/0.4475, allocations: 16 kB / 469.7 MB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.819e-05/0.4476, allocations: 64.48 kB / 469.8 MB, free: 108.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.794e-05/0.4476, allocations: 36.02 kB / 469.8 MB, free: 108 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004155/0.448, allocations: 0.6345 MB / 470.4 MB, free: 107.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.448, allocations: 4 kB / 470.4 MB, free: 107.4 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002224/0.4503, allocations: 1.314 MB / 471.7 MB, free: 106.1 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.002393/0.4527, allocations: 1.408 MB / 473.1 MB, free: 104.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.4537, allocations: 0.8612 MB / 474 MB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.4537, allocations: 4 kB / 474 MB, free: 103.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005939/0.4543, allocations: 0.5707 MB / 474.6 MB, free: 103.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.4557, allocations: 0.6272 MB / 475.2 MB, free: 102.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002388/0.458, allocations: 2.8 MB / 478 MB, free: 99.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001481/0.4582, allocations: 318.2 kB / 478.3 MB, free: 99.57 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006179/0.4588, allocations: 0.6199 MB / 478.9 MB, free: 98.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/0.4589, allocations: 116.5 kB / 479.1 MB, free: 98.87 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.4589, allocations: 3.938 kB / 479.1 MB, free: 98.87 MB / 378.7 MB Notification: Performance of Templates: time 0.04141/0.5004, allocations: 55.6 MB / 0.5221 GB, free: 43.68 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.23987408913672]