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.00111/0.00111, allocations: 87.67 kB / 21.2 MB, free: 3.367 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.001014/0.001014, allocations: 156.5 kB / 24.55 MB, free: 12 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.9709/0.9709, allocations: 177 MB / 204.8 MB, free: 5.574 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.653e-06/1.653e-06, allocations: 0 / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.104e-05/2.269e-05, allocations: 5.266 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1406/0.1407, allocations: 20.55 MB / 293.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01567/0.1563, allocations: 15.8 MB / 309.2 MB, free: 9.297 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000666/0.157, allocations: 40.25 kB / 309.3 MB, free: 9.273 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007592/0.1578, allocations: 393.9 kB / 309.7 MB, free: 9.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009527/0.1673, allocations: 5.348 MB / 315 MB, free: 5.426 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004113/0.1714, allocations: 2.377 MB / 317.4 MB, free: 3.676 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009752/0.1812, allocations: 9.225 MB / 326.6 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009271/0.1821, allocations: 0.6167 MB / 327.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001648/0.1837, allocations: 1.403 MB / 328.6 MB, free: 9.836 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008172/0.1845, allocations: 0.7128 MB / 329.3 MB, free: 9.121 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001517/0.1847, allocations: 92 kB / 329.4 MB, free: 9.031 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01155/0.1963, allocations: 6.965 MB / 336.4 MB, free: 2.059 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002771/0.1965, allocations: 302.8 kB / 336.7 MB, free: 1.762 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007417/0.1973, allocations: 0.4949 MB / 337.2 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.2073, allocations: 6.091 MB / 343.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.2073, allocations: 4 kB / 343.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2073, allocations: 0 / 343.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.355e-05/0.2073, allocations: 4 kB / 343.3 MB, free: 11.15 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.004072/0.2114, allocations: 2.478 MB / 345.8 MB, free: 8.625 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.2114, allocations: 11.98 kB / 345.8 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002661/0.2141, allocations: 0.9824 MB / 346.8 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001208/0.2153, allocations: 0.9575 MB / 347.7 MB, free: 6.641 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.31e-05/0.2154, allocations: 74.39 kB / 347.8 MB, free: 6.566 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.994e-05/0.2155, allocations: 104.4 kB / 347.9 MB, free: 6.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002368/0.2178, allocations: 1.841 MB / 349.7 MB, free: 4.355 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.2178, allocations: 11.92 kB / 349.7 MB, free: 4.344 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.984e-05/0.2179, allocations: 44 kB / 349.8 MB, free: 4.301 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.2179, allocations: 28 kB / 349.8 MB, free: 4.273 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.2196, allocations: 1.026 MB / 350.8 MB, free: 3.246 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005808/0.2254, allocations: 7.713 MB / 358.6 MB, free: 11.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001642/0.2271, allocations: 0.9208 MB / 359.5 MB, free: 10.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000324/0.2274, allocations: 233.8 kB / 359.7 MB, free: 10.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06024/0.2877, allocations: 34.87 MB / 394.6 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.629e-05/0.2877, allocations: 45.89 kB / 394.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 3.237e-06/0.2877, allocations: 0 / 394.6 MB, free: 7.172 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.003619/0.2913, allocations: 1.7 MB / 396.3 MB, free: 5.461 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.2914, allocations: 196.4 kB / 396.5 MB, free: 5.227 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007545/0.2922, allocations: 0.8482 MB / 397.4 MB, free: 4.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.816e-05/0.2922, allocations: 41.7 kB / 397.4 MB, free: 4.305 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003429/0.2926, allocations: 0.6509 MB / 398 MB, free: 3.645 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001715/0.2927, allocations: 293.5 kB / 398.3 MB, free: 3.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000229/0.293, allocations: 244.5 kB / 398.6 MB, free: 3.109 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.2931, allocations: 0.5238 MB / 399.1 MB, free: 2.578 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002726/0.2934, allocations: 170.5 kB / 399.3 MB, free: 2.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000876/0.2942, allocations: 0.9003 MB / 400.2 MB, free: 1.207 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000927/0.2952, allocations: 1.018 MB / 401.2 MB, free: 15.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.2952, allocations: 4 kB / 401.2 MB, free: 15.92 MB / 362.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001257/0.2964, allocations: 1.009 MB / 402.2 MB, free: 14.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/0.2965, allocations: 20.55 kB / 402.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.2965, allocations: 16 kB / 402.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001606/0.2981, allocations: 0.4985 MB / 402.7 MB, free: 14.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005608/0.2986, allocations: 276.3 kB / 403 MB, free: 14.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008063/0.2995, allocations: 1.853 MB / 404.9 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004238/0.2999, allocations: 123.1 kB / 405 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.8e-05/0.2999, allocations: 72.05 kB / 405 MB, free: 11.99 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.0002789/0.3002, allocations: 239.5 kB / 405.3 MB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001561/0.3004, allocations: 135.3 kB / 405.4 MB, free: 11.61 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.3029, allocations: 2.8 MB / 408.2 MB, free: 8.812 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.202e-05/0.3029, allocations: 43.94 kB / 408.3 MB, free: 8.77 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.3029, allocations: 7.922 kB / 408.3 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.746e-06/0.3029, allocations: 3.984 kB / 408.3 MB, free: 8.758 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002739/0.3056, allocations: 3.081 MB / 411.3 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/0.3056, allocations: 3.938 kB / 411.3 MB, free: 5.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004185/0.3061, allocations: 163.8 kB / 411.5 MB, free: 5.441 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007529/0.3068, allocations: 0.5824 MB / 412.1 MB, free: 4.855 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.064e-05/0.3069, allocations: 31.97 kB / 412.1 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.308, allocations: 2.064 MB / 414.2 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.308, allocations: 0 / 414.2 MB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.3093, allocations: 1.617 MB / 415.8 MB, free: 1.02 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.3095, allocations: 186.3 kB / 416 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.49e-05/0.3096, allocations: 47.78 kB / 416 MB, free: 0.7891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002251/0.3098, allocations: 16 kB / 416 MB, free: 0.7734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.3098, allocations: 56.55 kB / 416.1 MB, free: 0.7188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.3099, allocations: 35.92 kB / 416.1 MB, free: 0.6836 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005374/0.3104, allocations: 0.6384 MB / 416.8 MB, free: 40 kB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3104, allocations: 0 / 416.8 MB, free: 40 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.002727/0.3131, allocations: 1.306 MB / 418.1 MB, free: 14.73 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.002987/0.3161, allocations: 1.378 MB / 419.5 MB, free: 13.34 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00135/0.3175, allocations: 0.8685 MB / 420.3 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.816e-06/0.3175, allocations: 1.625 kB / 420.3 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007132/0.3182, allocations: 0.5685 MB / 420.9 MB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/0.3199, allocations: 0.6279 MB / 421.5 MB, free: 11.31 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003061/0.3229, allocations: 2.797 MB / 424.3 MB, free: 8.465 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002159/0.3231, allocations: 322.2 kB / 424.6 MB, free: 8.125 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007618/0.3239, allocations: 0.6091 MB / 425.2 MB, free: 7.523 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.3241, allocations: 112.5 kB / 425.4 MB, free: 7.414 MB / 378.7 MB Notification: Performance of SimCode: time 9.82e-07/0.3241, allocations: 3.938 kB / 425.4 MB, free: 7.41 MB / 378.7 MB Notification: Performance of Templates: time 0.1683/0.4924, allocations: 55.27 MB / 480.6 MB, free: 77.34 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.107664899900556]