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.001564/0.001564, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001342/0.001342, allocations: 163.9 kB / 25.61 MB, free: 8.582 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 1.001/1.001, allocations: 177.1 MB / 206.1 MB, free: 4.473 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 3.697e-06/3.697e-06, allocations: 4 kB / 274.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.001064/0.001067, allocations: 3 kB / 274.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.01798/0.01904, allocations: 20.3 MB / 294.5 MB, free: 64 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.0364, allocations: 15.54 MB / 310 MB, free: 476 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009726/0.03737, allocations: 43.62 kB / 310.1 MB, free: 432 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009304/0.0383, allocations: 396.9 kB / 310.5 MB, free: 32 kB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01339/0.0517, allocations: 5.345 MB / 315.8 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005144/0.05684, allocations: 2.383 MB / 318.2 MB, free: 8.273 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01169/0.06853, allocations: 9.215 MB / 327.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001056/0.06958, allocations: 0.6307 MB / 328 MB, free: 14.3 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01022/0.0798, allocations: 7.705 MB / 335.7 MB, free: 6.48 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001018/0.08082, allocations: 0.7323 MB / 336.5 MB, free: 5.746 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000123/0.08094, allocations: 88 kB / 336.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1801/0.2611, allocations: 6.956 MB / 343.5 MB, free: 37.93 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004087/0.2615, allocations: 304.1 kB / 343.8 MB, free: 37.93 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001115/0.2626, allocations: 0.4932 MB / 344.3 MB, free: 37.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.2754, allocations: 6.086 MB / 350.4 MB, free: 37.84 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/0.2754, allocations: 2.312 kB / 350.4 MB, free: 37.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2754, allocations: 2.672 kB / 350.4 MB, free: 37.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.2755, allocations: 0.7188 kB / 350.4 MB, free: 37.84 MB / 314.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.004667/0.2801, allocations: 2.484 MB / 352.9 MB, free: 36.75 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.736e-05/0.2802, allocations: 9.781 kB / 352.9 MB, free: 36.75 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002404/0.2826, allocations: 0.9508 MB / 353.8 MB, free: 36.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009765/0.2835, allocations: 0.939 MB / 354.8 MB, free: 36.31 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.048e-05/0.2836, allocations: 74.14 kB / 354.8 MB, free: 36.31 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.746e-05/0.2837, allocations: 104.2 kB / 354.9 MB, free: 36.31 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/0.2856, allocations: 1.773 MB / 356.7 MB, free: 35.39 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.675e-05/0.2857, allocations: 10.34 kB / 356.7 MB, free: 35.39 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.799e-05/0.2857, allocations: 47.12 kB / 356.8 MB, free: 35.39 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.129e-05/0.2858, allocations: 26.84 kB / 356.8 MB, free: 35.39 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001396/0.2871, allocations: 0.9059 MB / 357.7 MB, free: 35.38 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004595/0.2917, allocations: 7.432 MB / 365.1 MB, free: 30.15 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001441/0.2932, allocations: 0.8598 MB / 366 MB, free: 30.08 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002044/0.2934, allocations: 203.7 kB / 366.2 MB, free: 30.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0514/0.3448, allocations: 30.27 MB / 396.5 MB, free: 7.258 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.95e-05/0.3448, allocations: 48.31 kB / 396.5 MB, free: 7.203 MB / 314.7 MB Notification: Performance of pre-optimization done (n=77): time 3.066e-06/0.3448, allocations: 0 / 396.5 MB, free: 7.203 MB / 314.7 MB Notification: Performance of matching and sorting (n=77): time 0.003318/0.3482, allocations: 1.597 MB / 398.1 MB, free: 5.762 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.785e-05/0.3482, allocations: 188.4 kB / 398.3 MB, free: 5.535 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005971/0.3488, allocations: 0.8312 MB / 399.1 MB, free: 4.859 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.153e-05/0.3488, allocations: 40.2 kB / 399.2 MB, free: 4.824 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000305/0.3492, allocations: 0.674 MB / 399.8 MB, free: 4.344 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001379/0.3493, allocations: 288.3 kB / 400.1 MB, free: 4.105 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.3495, allocations: 257.1 kB / 400.4 MB, free: 3.941 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.913e-05/0.3496, allocations: 0.5312 MB / 400.9 MB, free: 3.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000162/0.3497, allocations: 137.1 kB / 401 MB, free: 3.301 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003939/0.3501, allocations: 0.8648 MB / 401.9 MB, free: 2.172 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000725/0.3509, allocations: 0.9665 MB / 402.9 MB, free: 1.117 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.3509, allocations: 4 kB / 402.9 MB, free: 1.113 MB / 314.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001037/0.3519, allocations: 0.9279 MB / 403.8 MB, free: 392 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.523e-05/0.3519, allocations: 14.62 kB / 403.8 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.584e-05/0.352, allocations: 19.98 kB / 403.8 MB, free: 360 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001501/0.3535, allocations: 488.1 kB / 404.3 MB, free: 15.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00057/0.354, allocations: 287.3 kB / 404.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008889/0.3549, allocations: 1.846 MB / 406.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004789/0.3554, allocations: 115.9 kB / 406.6 MB, free: 13.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.754e-05/0.3555, allocations: 61.55 kB / 406.6 MB, free: 13.65 MB / 330.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.0002773/0.3557, allocations: 247.8 kB / 406.9 MB, free: 13.45 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/0.3559, allocations: 138.4 kB / 407 MB, free: 13.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002214/0.3581, allocations: 2.505 MB / 409.5 MB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-05/0.3581, allocations: 47.39 kB / 409.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3582, allocations: 0 / 409.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.3582, allocations: 7.922 kB / 409.5 MB, free: 11.05 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002674/0.3608, allocations: 2.779 MB / 412.3 MB, free: 8.383 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.3608, allocations: 0 / 412.3 MB, free: 8.383 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003972/0.3612, allocations: 166.7 kB / 412.5 MB, free: 8.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000727/0.362, allocations: 0.5648 MB / 413.1 MB, free: 7.668 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.362, allocations: 24 kB / 413.1 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009098/0.3629, allocations: 2.036 MB / 415.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3629, allocations: 3.062 kB / 415.1 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.3641, allocations: 1.495 MB / 416.6 MB, free: 4.078 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.3643, allocations: 184.4 kB / 416.8 MB, free: 3.898 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.386e-05/0.3644, allocations: 39.73 kB / 416.8 MB, free: 3.859 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000232/0.3646, allocations: 20 kB / 416.8 MB, free: 3.84 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.524e-05/0.3647, allocations: 60.55 kB / 416.9 MB, free: 3.781 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.3647, allocations: 31.97 kB / 416.9 MB, free: 3.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004144/0.3651, allocations: 0.5814 MB / 417.5 MB, free: 3.211 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.3651, allocations: 7.281 kB / 417.5 MB, free: 3.207 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004693/0.3698, allocations: 1.302 MB / 418.8 MB, free: 1.902 MB / 330.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.00327/0.3731, allocations: 1.419 MB / 420.2 MB, free: 0.6055 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001189/0.3743, allocations: 0.7749 MB / 421 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.3743, allocations: 0 / 421 MB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006758/0.3749, allocations: 0.5229 MB / 421.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/0.3765, allocations: 0.6174 MB / 422.2 MB, free: 14.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.3798, allocations: 2.744 MB / 424.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002225/0.38, allocations: 326.1 kB / 425.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0008301/0.3809, allocations: 0.608 MB / 425.8 MB, free: 11.1 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000842/0.3817, allocations: 0.5564 MB / 426.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of SimCode: time 1.392e-06/0.3817, allocations: 4 kB / 426.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of Templates: time 0.2196/0.6013, allocations: 63.16 MB / 489.6 MB, free: 124.6 MB / 394.7 MB " [Timeout remaining time 659] 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: 6.019828235730529]