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.001693/0.001693, allocations: 91.5 kB / 21.2 MB, free: 3.375 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.001928/0.001928, allocations: 160.5 kB / 24.55 MB, free: 20 kB / 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.8951/0.8951, allocations: 177 MB / 204.8 MB, free: 5.594 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 2.084e-06/2.084e-06, allocations: 0 / 272.9 MB, free: 1.469 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.211e-05/2.42e-05, allocations: 2.312 kB / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1258/0.1258, allocations: 20.54 MB / 293.4 MB, free: 14.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01538/0.1412, allocations: 15.8 MB / 309.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000973/0.1422, allocations: 43.78 kB / 309.3 MB, free: 9.316 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008308/0.143, allocations: 400.2 kB / 309.7 MB, free: 9.109 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01136/0.1544, allocations: 5.348 MB / 315 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004859/0.1592, allocations: 2.376 MB / 317.4 MB, free: 3.711 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.1701, allocations: 9.219 MB / 326.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.1712, allocations: 0.6244 MB / 327.2 MB, free: 11.29 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009328/0.1806, allocations: 7.705 MB / 334.9 MB, free: 3.477 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.1816, allocations: 0.7284 MB / 335.7 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001869/0.1818, allocations: 92 kB / 335.8 MB, free: 2.656 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01025/0.1921, allocations: 6.962 MB / 342.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003784/0.1924, allocations: 298.7 kB / 343 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008198/0.1932, allocations: 0.4911 MB / 343.5 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01113/0.2044, allocations: 6.091 MB / 349.6 MB, free: 4.797 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2044, allocations: 4 kB / 349.6 MB, free: 4.793 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2044, allocations: 0 / 349.6 MB, free: 4.793 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.83e-05/0.2044, allocations: 0 / 349.6 MB, free: 4.793 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.004203/0.2086, allocations: 2.467 MB / 352.1 MB, free: 2.277 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2087, allocations: 11.98 kB / 352.1 MB, free: 2.266 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002478/0.2111, allocations: 0.9629 MB / 353 MB, free: 1.297 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001133/0.2123, allocations: 0.9547 MB / 354 MB, free: 316 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.789e-05/0.2123, allocations: 74.39 kB / 354.1 MB, free: 240 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.049e-05/0.2124, allocations: 100.4 kB / 354.2 MB, free: 140 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001992/0.2144, allocations: 1.844 MB / 356 MB, free: 14.02 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.2144, allocations: 11.88 kB / 356 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.744e-05/0.2145, allocations: 44 kB / 356.1 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.2145, allocations: 28 kB / 356.1 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.2161, allocations: 1.022 MB / 357.1 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005798/0.2219, allocations: 7.715 MB / 364.8 MB, free: 4.973 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001617/0.2235, allocations: 0.9224 MB / 365.7 MB, free: 4.031 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002891/0.2238, allocations: 229.8 kB / 366 MB, free: 3.801 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05749/0.2813, allocations: 34.85 MB / 400.8 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.2813, allocations: 45.89 kB / 400.9 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 2.475e-06/0.2813, allocations: 0 / 400.9 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.003584/0.2849, allocations: 1.711 MB / 402.6 MB, free: 15.13 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.285, allocations: 200.3 kB / 402.8 MB, free: 14.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007078/0.2857, allocations: 0.8405 MB / 403.6 MB, free: 14.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.684e-05/0.2857, allocations: 37.7 kB / 403.7 MB, free: 13.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003123/0.286, allocations: 0.6509 MB / 404.3 MB, free: 13.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.2862, allocations: 293.5 kB / 404.6 MB, free: 13.04 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002103/0.2864, allocations: 252.4 kB / 404.8 MB, free: 12.78 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.2865, allocations: 0.516 MB / 405.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.2868, allocations: 178.4 kB / 405.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005716/0.2874, allocations: 0.9042 MB / 406.4 MB, free: 10.88 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008612/0.2882, allocations: 1.014 MB / 407.4 MB, free: 9.598 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.2882, allocations: 4 kB / 407.4 MB, free: 9.594 MB / 362.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001183/0.2894, allocations: 1.013 MB / 408.5 MB, free: 8.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.2894, allocations: 9.625 kB / 408.5 MB, free: 8.562 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.421e-05/0.2895, allocations: 16 kB / 408.5 MB, free: 8.547 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.291, allocations: 0.4942 MB / 409 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008244/0.2918, allocations: 276.4 kB / 409.3 MB, free: 7.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007864/0.2926, allocations: 1.865 MB / 411.1 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004224/0.293, allocations: 123.1 kB / 411.2 MB, free: 5.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.6e-05/0.2931, allocations: 67.98 kB / 411.3 MB, free: 5.668 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.0002589/0.2933, allocations: 235.6 kB / 411.5 MB, free: 5.426 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001638/0.2935, allocations: 143.3 kB / 411.7 MB, free: 5.285 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002357/0.2959, allocations: 2.797 MB / 414.5 MB, free: 2.484 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.044e-05/0.2959, allocations: 43.94 kB / 414.5 MB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.2959, allocations: 3.938 kB / 414.5 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.2959, allocations: 7.969 kB / 414.5 MB, free: 2.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003113/0.299, allocations: 3.077 MB / 417.6 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.299, allocations: 0 / 417.6 MB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.2995, allocations: 167.7 kB / 417.8 MB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007897/0.3003, allocations: 0.5823 MB / 418.3 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.96e-05/0.3003, allocations: 23.98 kB / 418.4 MB, free: 14.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008931/0.3012, allocations: 2.065 MB / 420.4 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3012, allocations: 0 / 420.4 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.3026, allocations: 1.621 MB / 422.1 MB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.3028, allocations: 182.3 kB / 422.2 MB, free: 10.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.844e-05/0.3029, allocations: 43.73 kB / 422.3 MB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002503/0.3032, allocations: 16 kB / 422.3 MB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.509e-05/0.3032, allocations: 56.64 kB / 422.3 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.243e-05/0.3033, allocations: 47.89 kB / 422.4 MB, free: 10.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005561/0.3038, allocations: 0.6306 MB / 423 MB, free: 9.719 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3038, allocations: 0 / 423 MB, free: 9.719 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002937/0.3068, allocations: 1.302 MB / 424.3 MB, free: 8.414 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.00329/0.3101, allocations: 1.382 MB / 425.7 MB, free: 7.023 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00152/0.3116, allocations: 0.8663 MB / 426.6 MB, free: 6.156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3116, allocations: 0 / 426.6 MB, free: 6.156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007547/0.3123, allocations: 0.5685 MB / 427.1 MB, free: 5.586 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001604/0.3139, allocations: 0.6357 MB / 427.8 MB, free: 4.988 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003193/0.3171, allocations: 2.792 MB / 430.6 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.3173, allocations: 322.2 kB / 430.9 MB, free: 1.809 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001054/0.3184, allocations: 0.6008 MB / 431.5 MB, free: 1.215 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001856/0.3186, allocations: 120.5 kB / 431.6 MB, free: 1.098 MB / 378.7 MB Notification: Performance of SimCode: time 1.793e-06/0.3186, allocations: 4 kB / 431.6 MB, free: 1.094 MB / 378.7 MB Notification: Performance of Templates: time 0.1615/0.4801, allocations: 63.69 MB / 495.3 MB, free: 62.67 MB / 378.7 MB " [Timeout remaining time 660] 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.487720656208694]