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.001874/0.001874, allocations: 92.27 kB / 20.96 MB, free: 3.441 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.002277/0.002277, allocations: 156.9 kB / 24.26 MB, free: 148 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 1.501/1.501, allocations: 177 MB / 204.4 MB, free: 5.637 MB / 186.7 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 1.603e-06/1.603e-06, allocations: 0 / 272.2 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.642e-05/2.802e-05, allocations: 2.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1665/0.1665, allocations: 57.12 MB / 329.3 MB, free: 8.203 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0318/0.1983, allocations: 20.09 MB / 349.4 MB, free: 4.066 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002203/0.2005, allocations: 51.5 kB / 349.4 MB, free: 4.016 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.2029, allocations: 0.6749 MB / 350.1 MB, free: 3.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0171/0.22, allocations: 5.906 MB / 356 MB, free: 13.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01108/0.231, allocations: 3.48 MB / 359.5 MB, free: 9.91 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01942/0.2505, allocations: 9.153 MB / 368.7 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00154/0.252, allocations: 0.6111 MB / 369.3 MB, free: 16 kB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002994/0.255, allocations: 1.43 MB / 370.7 MB, free: 14.58 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001278/0.2563, allocations: 0.7127 MB / 371.4 MB, free: 13.87 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001721/0.2564, allocations: 92 kB / 371.5 MB, free: 13.78 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01609/0.2725, allocations: 7.308 MB / 378.8 MB, free: 6.461 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005571/0.2731, allocations: 306.7 kB / 379.1 MB, free: 6.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001149/0.2742, allocations: 0.4989 MB / 379.6 MB, free: 5.66 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0162/0.2904, allocations: 6.917 MB / 386.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.2904, allocations: 0 / 386.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2904, allocations: 4 kB / 386.5 MB, free: 14.72 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.2905, allocations: 4 kB / 386.5 MB, free: 14.72 MB / 346.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.006813/0.2973, allocations: 2.436 MB / 389 MB, free: 12.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.046e-05/0.2973, allocations: 15.98 kB / 389 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005211/0.3025, allocations: 0.9824 MB / 390 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002435/0.305, allocations: 1.014 MB / 391 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-05/0.3051, allocations: 78.39 kB / 391.1 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.3052, allocations: 104.4 kB / 391.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004377/0.3096, allocations: 1.973 MB / 393.1 MB, free: 7.82 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.3096, allocations: 11.88 kB / 393.1 MB, free: 7.809 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001321/0.3098, allocations: 44 kB / 393.2 MB, free: 7.766 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.301e-05/0.3098, allocations: 28 kB / 393.2 MB, free: 7.738 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003625/0.3134, allocations: 1.459 MB / 394.7 MB, free: 6.281 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01041/0.3238, allocations: 6.258 MB / 400.9 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003093/0.3269, allocations: 1.048 MB / 402 MB, free: 14.78 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007163/0.3277, allocations: 363 kB / 402.3 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3142/0.6419, allocations: 34.81 MB / 437.1 MB, free: 132.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.839e-05/0.6419, allocations: 45.03 kB / 437.2 MB, free: 132.2 MB / 378.7 MB Notification: Performance of pre-optimization done (n=77): time 3.046e-06/0.6419, allocations: 0 / 437.2 MB, free: 132.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=77): time 0.005909/0.6478, allocations: 2.043 MB / 439.2 MB, free: 132.1 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.6479, allocations: 192.1 kB / 439.4 MB, free: 131.9 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008954/0.6488, allocations: 0.8292 MB / 440.3 MB, free: 131.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.401e-05/0.6488, allocations: 37.3 kB / 440.3 MB, free: 131.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002762/0.6491, allocations: 0.5964 MB / 440.9 MB, free: 131.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.6493, allocations: 285.7 kB / 441.2 MB, free: 130.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002806/0.6496, allocations: 241.3 kB / 441.4 MB, free: 130.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.369e-05/0.6496, allocations: 342.9 kB / 441.7 MB, free: 130.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004823/0.6501, allocations: 307.5 kB / 442 MB, free: 130.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006867/0.6508, allocations: 0.8514 MB / 442.9 MB, free: 129.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00122/0.652, allocations: 1.091 MB / 444 MB, free: 128.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.652, allocations: 5.188 kB / 444 MB, free: 128.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001924/0.6539, allocations: 1.281 MB / 445.3 MB, free: 128.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.654, allocations: 15.12 kB / 445.3 MB, free: 128.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.654, allocations: 15.41 kB / 445.3 MB, free: 128.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003188/0.6572, allocations: 0.5235 MB / 445.8 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009959/0.6582, allocations: 277.7 kB / 446.1 MB, free: 128.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007538/0.6589, allocations: 1.381 MB / 447.5 MB, free: 126.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006752/0.6596, allocations: 111 kB / 447.6 MB, free: 126.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.789e-05/0.6597, allocations: 74.03 kB / 447.6 MB, free: 126.8 MB / 378.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.00037/0.66, allocations: 295.7 kB / 447.9 MB, free: 126.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002129/0.6603, allocations: 139 kB / 448.1 MB, free: 126.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0037/0.664, allocations: 4.631 MB / 452.7 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.752e-05/0.664, allocations: 43.94 kB / 452.7 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.664, allocations: 2.938 kB / 452.8 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.664, allocations: 3.984 kB / 452.8 MB, free: 124.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003647/0.6676, allocations: 4.292 MB / 457 MB, free: 119.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.6677, allocations: 0 / 457 MB, free: 119.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007511/0.6684, allocations: 171.7 kB / 457.2 MB, free: 119.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001287/0.6697, allocations: 0.6669 MB / 457.9 MB, free: 119.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.166e-05/0.6697, allocations: 23.98 kB / 457.9 MB, free: 119.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009248/0.6707, allocations: 1.791 MB / 459.7 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.6707, allocations: 4 kB / 459.7 MB, free: 117.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001834/0.6725, allocations: 2.042 MB / 461.7 MB, free: 115.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001669/0.6727, allocations: 183 kB / 461.9 MB, free: 115 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001343/0.6728, allocations: 42.27 kB / 462 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/0.6733, allocations: 23.83 kB / 462 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.262e-05/0.6733, allocations: 56.55 kB / 462 MB, free: 114.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.901e-05/0.6734, allocations: 31.98 kB / 462.1 MB, free: 114.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006856/0.6741, allocations: 0.7245 MB / 462.8 MB, free: 114.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 9e-08/0.6741, allocations: 0 / 462.8 MB, free: 114.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002845/0.6769, allocations: 1.31 MB / 464.1 MB, free: 112.8 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.003735/0.6807, allocations: 1.408 MB / 465.5 MB, free: 111.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002191/0.6829, allocations: 1.239 MB / 466.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.6829, allocations: 0 / 466.8 MB, free: 110.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.6841, allocations: 0.7477 MB / 467.5 MB, free: 109.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.6866, allocations: 0.63 MB / 468.1 MB, free: 109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003261/0.6899, allocations: 3.121 MB / 471.3 MB, free: 105.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004622/0.6904, allocations: 0.7346 MB / 472 MB, free: 105 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008997/0.6913, allocations: 0.6126 MB / 472.6 MB, free: 104.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002278/0.6915, allocations: 124.5 kB / 472.7 MB, free: 104.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6915, allocations: 0 / 472.7 MB, free: 104.3 MB / 378.7 MB Notification: Performance of Templates: time 0.05536/0.7469, allocations: 54.88 MB / 0.5152 GB, free: 49.88 MB / 378.7 MB " [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.38023325393442]