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.00149/0.00149, allocations: 80.06 kB / 20.49 MB, free: 1.387 MB / 14.72 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.001523/0.001523, allocations: 160.8 kB / 23.74 MB, free: 4.578 MB / 14.72 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.451/1.451, allocations: 177.1 MB / 204 MB, free: 9.234 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001918/0.001918, allocations: 57.56 kB / 324.7 MB, free: 396 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1125, allocations: 53.38 MB / 378.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06389/0.1764, allocations: 57.29 MB / 435.4 MB, free: 6.18 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02986/0.2062, allocations: 20.09 MB / 455.5 MB, free: 2.027 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001807/0.208, allocations: 43.56 kB / 455.5 MB, free: 1.984 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002542/0.2106, allocations: 0.6712 MB / 456.2 MB, free: 1.309 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01952/0.2301, allocations: 5.822 MB / 462 MB, free: 11.48 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01012/0.2402, allocations: 3.43 MB / 465.5 MB, free: 8.055 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.2705/0.5107, allocations: 9.099 MB / 474.6 MB, free: 14.03 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001452/0.5122, allocations: 0.584 MB / 475.2 MB, free: 14 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003983/0.5161, allocations: 1.471 MB / 476.6 MB, free: 14 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002217/0.5184, allocations: 0.8103 MB / 477.4 MB, free: 14 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002399/0.5186, allocations: 92.12 kB / 477.5 MB, free: 14 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01716/0.5358, allocations: 7.292 MB / 484.8 MB, free: 14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005631/0.5363, allocations: 295 kB / 485.1 MB, free: 14 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.5376, allocations: 0.5921 MB / 485.7 MB, free: 13.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01385/0.5515, allocations: 5.769 MB / 491.5 MB, free: 13.58 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.5515, allocations: 3.656 kB / 491.5 MB, free: 13.58 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5515, allocations: 0 / 491.5 MB, free: 13.58 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.054e-05/0.5515, allocations: 0 / 491.5 MB, free: 13.58 MB / 430.1 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.006331/0.5578, allocations: 2.459 MB / 493.9 MB, free: 12.51 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.5579, allocations: 12.98 kB / 493.9 MB, free: 12.51 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00483/0.5627, allocations: 0.6602 MB / 494.6 MB, free: 12.43 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001908/0.5646, allocations: 0.97 MB / 495.6 MB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.768e-05/0.5647, allocations: 75.23 kB / 495.6 MB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001272/0.5648, allocations: 102.5 kB / 495.7 MB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003482/0.5683, allocations: 1.971 MB / 497.7 MB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.807e-05/0.5683, allocations: 6.688 kB / 497.7 MB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.5684, allocations: 47.19 kB / 497.8 MB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.022e-05/0.5684, allocations: 27.66 kB / 497.8 MB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003166/0.5716, allocations: 1.457 MB / 499.3 MB, free: 11.4 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007536/0.5791, allocations: 6.262 MB / 0.4937 GB, free: 7.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00273/0.5819, allocations: 1.038 MB / 0.4947 GB, free: 7.875 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005091/0.5824, allocations: 360 kB / 0.495 GB, free: 7.855 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1173/0.6997, allocations: 34.82 MB / 0.529 GB, free: 120 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.409e-05/0.6997, allocations: 49.22 kB / 0.5291 GB, free: 72 kB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.925e-06/0.6997, allocations: 0 / 0.5291 GB, free: 72 kB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006556/0.7063, allocations: 1.896 MB / 0.5309 GB, free: 14.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.7064, allocations: 188.4 kB / 0.5311 GB, free: 14.38 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001202/0.7076, allocations: 0.8253 MB / 0.5319 GB, free: 13.72 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.473e-05/0.7077, allocations: 44.27 kB / 0.532 GB, free: 13.68 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004639/0.7082, allocations: 0.5964 MB / 0.5325 GB, free: 13.26 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002912/0.7085, allocations: 294 kB / 0.5328 GB, free: 13.02 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003386/0.7088, allocations: 233 kB / 0.533 GB, free: 12.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.709, allocations: 353.8 kB / 0.5334 GB, free: 12.54 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000573/0.7096, allocations: 300 kB / 0.5337 GB, free: 12.36 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001025/0.7106, allocations: 0.8487 MB / 0.5345 GB, free: 11.42 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.7121, allocations: 1.091 MB / 0.5356 GB, free: 10.49 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.325e-05/0.7121, allocations: 4 kB / 0.5356 GB, free: 10.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002294/0.7144, allocations: 1.238 MB / 0.5368 GB, free: 9.648 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.7144, allocations: 15.94 kB / 0.5368 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.498e-05/0.7145, allocations: 16 kB / 0.5368 GB, free: 9.617 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003518/0.718, allocations: 0.5203 MB / 0.5373 GB, free: 9.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.7191, allocations: 275.8 kB / 0.5376 GB, free: 8.902 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001253/0.7204, allocations: 1.381 MB / 0.5389 GB, free: 7.586 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000883/0.7212, allocations: 117.3 kB / 0.539 GB, free: 7.488 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.7214, allocations: 67.03 kB / 0.5391 GB, free: 7.434 MB / 462.1 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.000589/0.7219, allocations: 290.7 kB / 0.5394 GB, free: 7.238 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003467/0.7223, allocations: 111.3 kB / 0.5395 GB, free: 7.129 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005653/0.7279, allocations: 4.639 MB / 0.544 GB, free: 3.715 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.031e-05/0.728, allocations: 47.94 kB / 0.5441 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.106e-05/0.728, allocations: 0 / 0.5441 GB, free: 3.668 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.56e-05/0.728, allocations: 3.984 kB / 0.5441 GB, free: 3.664 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006697/0.7347, allocations: 4.282 MB / 0.5482 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.126e-05/0.7347, allocations: 3.938 kB / 0.5482 GB, free: 15.36 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008944/0.7356, allocations: 166.1 kB / 0.5484 GB, free: 15.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001699/0.7373, allocations: 0.6819 MB / 0.5491 GB, free: 14.52 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.968e-05/0.7374, allocations: 27.98 kB / 0.5491 GB, free: 14.49 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001786/0.7392, allocations: 1.779 MB / 0.5508 GB, free: 12.67 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.7392, allocations: 0 / 0.5508 GB, free: 12.67 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003198/0.7424, allocations: 2.025 MB / 0.5528 GB, free: 10.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004499/0.7428, allocations: 178.3 kB / 0.553 GB, free: 10.42 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002809/0.7431, allocations: 43.73 kB / 0.553 GB, free: 10.38 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006364/0.7438, allocations: 23.92 kB / 0.553 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.7439, allocations: 60.55 kB / 0.5531 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.851e-05/0.7439, allocations: 31.98 kB / 0.5531 GB, free: 10.27 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.7451, allocations: 0.7127 MB / 0.5538 GB, free: 9.547 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7451, allocations: 4 kB / 0.5538 GB, free: 9.543 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004515/0.7496, allocations: 1.318 MB / 0.5551 GB, free: 8.223 MB / 478.1 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.008119/0.7577, allocations: 1.259 MB / 0.5563 GB, free: 7.078 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004827/0.7626, allocations: 1.222 MB / 0.5575 GB, free: 5.891 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.904e-06/0.7626, allocations: 3.844 kB / 0.5575 GB, free: 5.891 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002756/0.7653, allocations: 0.7504 MB / 0.5583 GB, free: 5.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005085/0.7704, allocations: 0.5892 MB / 0.5589 GB, free: 4.594 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008345/0.7788, allocations: 3.111 MB / 0.5619 GB, free: 1.469 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001513/0.7803, allocations: 0.7384 MB / 0.5626 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002607/0.7829, allocations: 0.6068 MB / 0.5632 GB, free: 100 kB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005679/0.7834, allocations: 112.5 kB / 0.5633 GB, free: 15.98 MB / 494.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7834, allocations: 3.938 kB / 0.5633 GB, free: 15.98 MB / 494.1 MB Notification: Performance of Templates: time 0.1669/0.9503, allocations: 54.75 MB / 0.6168 GB, free: 9.801 MB / 0.5294 GB " [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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.731276758015156]