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.0009781/0.0009781, allocations: 83.59 kB / 21.18 MB, free: 3.383 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.001044/0.001044, allocations: 165 kB / 24.56 MB, free: 12 kB / 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.9287/0.9287, allocations: 177.1 MB / 205 MB, free: 5.617 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.303e-06/1.303e-06, allocations: 0 / 273 MB, free: 1.551 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.518e-05/1.648e-05, allocations: 2.312 kB / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1412/0.1413, allocations: 20.55 MB / 293.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01563/0.1569, allocations: 15.8 MB / 309.3 MB, free: 9.395 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007282/0.1576, allocations: 45.44 kB / 309.4 MB, free: 9.367 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007693/0.1584, allocations: 393.4 kB / 309.7 MB, free: 9.164 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.1688, allocations: 5.345 MB / 315.1 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004379/0.1732, allocations: 2.375 MB / 317.5 MB, free: 3.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.01011/0.1833, allocations: 9.225 MB / 326.7 MB, free: 12.02 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001034/0.1843, allocations: 0.6254 MB / 327.3 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009758/0.1941, allocations: 7.701 MB / 335 MB, free: 3.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00102/0.1951, allocations: 0.7284 MB / 335.7 MB, free: 2.84 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000164/0.1953, allocations: 92 kB / 335.8 MB, free: 2.75 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0106/0.2059, allocations: 6.957 MB / 342.8 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002471/0.2061, allocations: 302.7 kB / 343.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005784/0.2067, allocations: 0.495 MB / 343.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009343/0.216, allocations: 6.086 MB / 349.7 MB, free: 4.895 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.216, allocations: 0 / 349.7 MB, free: 4.895 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.216, allocations: 4 kB / 349.7 MB, free: 4.891 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.915e-05/0.2161, allocations: 0 / 349.7 MB, free: 4.891 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.004344/0.2204, allocations: 2.474 MB / 352.1 MB, free: 2.367 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.2205, allocations: 12.03 kB / 352.2 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002773/0.2232, allocations: 0.9551 MB / 353.1 MB, free: 1.398 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001226/0.2245, allocations: 0.943 MB / 354.1 MB, free: 428 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.292e-05/0.2245, allocations: 79.33 kB / 354.1 MB, free: 348 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001002/0.2246, allocations: 100.4 kB / 354.2 MB, free: 248 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002085/0.2267, allocations: 1.848 MB / 356.1 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.2267, allocations: 11.88 kB / 356.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.902e-05/0.2268, allocations: 44 kB / 356.1 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.2268, allocations: 30.91 kB / 356.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001652/0.2285, allocations: 1.018 MB / 357.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005327/0.2338, allocations: 7.727 MB / 364.9 MB, free: 5.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.2353, allocations: 0.9084 MB / 365.8 MB, free: 4.141 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.2356, allocations: 236.8 kB / 366 MB, free: 3.902 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05809/0.2937, allocations: 34.85 MB / 400.9 MB, free: 1.016 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.2937, allocations: 57.89 kB / 400.9 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of pre-optimization done (n=77): time 2.315e-06/0.2937, allocations: 0 / 400.9 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of matching and sorting (n=77): time 0.003411/0.2971, allocations: 1.703 MB / 402.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.858e-05/0.2972, allocations: 192.4 kB / 402.8 MB, free: 15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009311/0.2981, allocations: 0.8405 MB / 403.7 MB, free: 14.14 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.801e-05/0.2982, allocations: 45.7 kB / 403.7 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003029/0.2985, allocations: 0.6547 MB / 404.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.2987, allocations: 285.5 kB / 404.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002139/0.2989, allocations: 252.4 kB / 404.9 MB, free: 12.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.299, allocations: 0.5238 MB / 405.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002501/0.2992, allocations: 170.5 kB / 405.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005446/0.2998, allocations: 0.9002 MB / 406.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008382/0.3006, allocations: 1.017 MB / 407.5 MB, free: 9.707 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.101e-06/0.3006, allocations: 4 kB / 407.5 MB, free: 9.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00116/0.3018, allocations: 1.012 MB / 408.5 MB, free: 8.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3018, allocations: 12 kB / 408.5 MB, free: 8.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.3018, allocations: 15.98 kB / 408.6 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001493/0.3033, allocations: 0.4901 MB / 409 MB, free: 8.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005427/0.3039, allocations: 279.5 kB / 409.3 MB, free: 7.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009726/0.3048, allocations: 1.861 MB / 411.2 MB, free: 5.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000378/0.3052, allocations: 123.1 kB / 411.3 MB, free: 5.844 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/0.3053, allocations: 67.98 kB / 411.4 MB, free: 5.777 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.0002276/0.3055, allocations: 246.9 kB / 411.6 MB, free: 5.523 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001488/0.3056, allocations: 139.3 kB / 411.7 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002174/0.3078, allocations: 2.79 MB / 414.5 MB, free: 2.586 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.656e-05/0.3078, allocations: 43.94 kB / 414.6 MB, free: 2.543 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/0.3079, allocations: 3.938 kB / 414.6 MB, free: 2.539 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3079, allocations: 11.97 kB / 414.6 MB, free: 2.527 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/0.3107, allocations: 3.077 MB / 417.7 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.3107, allocations: 7.812 kB / 417.7 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.3111, allocations: 163.7 kB / 417.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007044/0.3118, allocations: 0.5862 MB / 418.4 MB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.059e-05/0.3118, allocations: 20 kB / 418.4 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008211/0.3127, allocations: 2.064 MB / 420.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3127, allocations: 4 kB / 420.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001292/0.3139, allocations: 1.613 MB / 422.1 MB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001329/0.3141, allocations: 182.2 kB / 422.3 MB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.261e-05/0.3142, allocations: 39.73 kB / 422.3 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000227/0.3144, allocations: 28.05 kB / 422.4 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.156e-05/0.3145, allocations: 56.55 kB / 422.4 MB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.3145, allocations: 39.92 kB / 422.5 MB, free: 10.46 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005142/0.315, allocations: 0.6306 MB / 423.1 MB, free: 9.824 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.315, allocations: 0 / 423.1 MB, free: 9.824 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002299/0.3173, allocations: 1.306 MB / 424.4 MB, free: 8.516 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.003247/0.3206, allocations: 1.384 MB / 425.8 MB, free: 7.121 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001223/0.3218, allocations: 0.8632 MB / 426.6 MB, free: 6.258 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3218, allocations: 0 / 426.6 MB, free: 6.258 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006862/0.3225, allocations: 0.5774 MB / 427.2 MB, free: 5.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.3239, allocations: 0.6304 MB / 427.9 MB, free: 5.082 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.3268, allocations: 2.784 MB / 430.6 MB, free: 2.254 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.327, allocations: 330.2 kB / 431 MB, free: 1.906 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007359/0.3277, allocations: 0.5991 MB / 431.6 MB, free: 1.312 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.3279, allocations: 116.5 kB / 431.7 MB, free: 1.199 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.3279, allocations: 0 / 431.7 MB, free: 1.199 MB / 378.7 MB Notification: Performance of Templates: time 0.1573/0.4852, allocations: 63.71 MB / 495.4 MB, free: 62.89 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: 5.7681801789440215]