Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008856/0.0008856, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009903/0.0009903, allocations: 168.2 kB / 24.82 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9801/0.9801, allocations: 177.1 MB / 205.3 MB, free: 5.52 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.884e-06/1.884e-06, allocations: 0 / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.518e-05/1.706e-05, allocations: 2.312 kB / 273.4 MB, free: 1.324 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1406/0.1406, allocations: 20.3 MB / 293.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01688/0.1575, allocations: 15.56 MB / 309.2 MB, free: 9.488 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007576/0.1582, allocations: 44.16 kB / 309.3 MB, free: 9.461 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006437/0.1589, allocations: 394.5 kB / 309.7 MB, free: 9.258 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009799/0.1687, allocations: 5.346 MB / 315 MB, free: 5.613 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004198/0.1729, allocations: 2.376 MB / 317.4 MB, free: 3.867 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.008686/0.1816, allocations: 9.226 MB / 326.6 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009786/0.1825, allocations: 0.6215 MB / 327.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008138/0.1907, allocations: 7.697 MB / 334.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008726/0.1916, allocations: 0.7425 MB / 335.7 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001471/0.1917, allocations: 92 kB / 335.8 MB, free: 2.887 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009799/0.2015, allocations: 6.959 MB / 342.7 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002047/0.2017, allocations: 298.7 kB / 343 MB, free: 11.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004583/0.2022, allocations: 0.4988 MB / 343.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008396/0.2106, allocations: 6.071 MB / 349.6 MB, free: 5.043 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2106, allocations: 4 kB / 349.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2106, allocations: 0 / 349.6 MB, free: 5.039 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.159e-05/0.2106, allocations: 0 / 349.6 MB, free: 5.039 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.003912/0.2145, allocations: 2.49 MB / 352.1 MB, free: 2.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.2145, allocations: 12.03 kB / 352.1 MB, free: 2.488 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002614/0.2172, allocations: 0.9551 MB / 353.1 MB, free: 1.531 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001015/0.2182, allocations: 0.9313 MB / 354 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.906e-05/0.2182, allocations: 78.39 kB / 354.1 MB, free: 496 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.047e-05/0.2183, allocations: 100.4 kB / 354.2 MB, free: 396 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001785/0.2201, allocations: 1.781 MB / 355.9 MB, free: 14.34 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.029e-05/0.2201, allocations: 11.88 kB / 356 MB, free: 14.32 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.37e-05/0.2202, allocations: 44 kB / 356 MB, free: 14.28 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.708e-05/0.2202, allocations: 28 kB / 356 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/0.2215, allocations: 0.8948 MB / 356.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004798/0.2263, allocations: 7.437 MB / 364.4 MB, free: 5.703 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001334/0.2276, allocations: 0.8617 MB / 365.2 MB, free: 4.816 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/0.2278, allocations: 199.7 kB / 365.4 MB, free: 4.617 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05164/0.2794, allocations: 30.49 MB / 395.9 MB, free: 6.133 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.2795, allocations: 45.89 kB / 395.9 MB, free: 6.078 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 2.164e-06/0.2795, allocations: 4 kB / 395.9 MB, free: 6.074 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.003134/0.2826, allocations: 1.614 MB / 397.6 MB, free: 4.445 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.871e-05/0.2827, allocations: 188.4 kB / 397.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006604/0.2834, allocations: 0.8282 MB / 398.6 MB, free: 3.363 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.597e-05/0.2834, allocations: 45.7 kB / 398.6 MB, free: 3.312 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003706/0.2838, allocations: 0.6546 MB / 399.3 MB, free: 2.648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001673/0.2839, allocations: 297.5 kB / 399.6 MB, free: 2.355 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002175/0.2842, allocations: 252.3 kB / 399.8 MB, free: 2.102 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.2843, allocations: 0.5315 MB / 400.3 MB, free: 1.562 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.2845, allocations: 134.5 kB / 400.5 MB, free: 1.43 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005682/0.2851, allocations: 0.8728 MB / 401.3 MB, free: 260 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/0.2862, allocations: 0.9613 MB / 402.3 MB, free: 15.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.2862, allocations: 4 kB / 402.3 MB, free: 15.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001052/0.2873, allocations: 0.9346 MB / 403.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.2873, allocations: 8 kB / 403.3 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.2873, allocations: 16 kB / 403.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.2887, allocations: 495.5 kB / 403.8 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.2892, allocations: 283.4 kB / 404 MB, free: 13.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007645/0.29, allocations: 1.843 MB / 405.9 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003957/0.2904, allocations: 119.1 kB / 406 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.393e-05/0.2905, allocations: 59.92 kB / 406 MB, free: 11.22 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.0002359/0.2907, allocations: 246.8 kB / 406.3 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.2908, allocations: 135.3 kB / 406.4 MB, free: 10.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001901/0.2927, allocations: 2.499 MB / 408.9 MB, free: 8.316 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.723e-05/0.2928, allocations: 47.92 kB / 409 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.2928, allocations: 0 / 409 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.2928, allocations: 11.92 kB / 409 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002561/0.2953, allocations: 2.782 MB / 411.8 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.95e-06/0.2954, allocations: 0 / 411.8 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003789/0.2957, allocations: 171.7 kB / 411.9 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006797/0.2964, allocations: 0.5666 MB / 412.5 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-05/0.2964, allocations: 23.98 kB / 412.5 MB, free: 4.652 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007877/0.2972, allocations: 2.033 MB / 414.6 MB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.2972, allocations: 0 / 414.6 MB, free: 2.562 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.2983, allocations: 1.496 MB / 416 MB, free: 1 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.2984, allocations: 186.3 kB / 416.2 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.791e-05/0.2985, allocations: 39.73 kB / 416.3 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.2987, allocations: 20 kB / 416.3 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.2988, allocations: 56.58 kB / 416.3 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.2988, allocations: 35.97 kB / 416.4 MB, free: 0.668 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006467/0.2995, allocations: 0.5835 MB / 417 MB, free: 80 kB / 362.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2995, allocations: 3.938 kB / 417 MB, free: 76 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.002739/0.3022, allocations: 1.306 MB / 418.3 MB, free: 14.77 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.002684/0.3049, allocations: 1.418 MB / 419.7 MB, free: 13.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.3059, allocations: 0.7728 MB / 420.5 MB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.3059, allocations: 1.688 kB / 420.5 MB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006085/0.3065, allocations: 0.5137 MB / 421 MB, free: 12.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.3079, allocations: 0.6318 MB / 421.6 MB, free: 11.43 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003036/0.311, allocations: 2.757 MB / 424.4 MB, free: 8.621 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000197/0.3112, allocations: 322.2 kB / 424.7 MB, free: 8.281 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006752/0.3119, allocations: 0.5996 MB / 425.3 MB, free: 7.688 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007803/0.3126, allocations: 0.5603 MB / 425.8 MB, free: 7.125 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.3126, allocations: 0 / 425.8 MB, free: 7.125 MB / 378.7 MB Notification: Performance of Templates: time 0.1594/0.472, allocations: 62.68 MB / 488.5 MB, free: 69.86 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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: 4.7751105427742]