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.0007666/0.0007666, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00102/0.001786, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006932/0.0006932, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009029/0.001596, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.8833/0.8833, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07877/0.9621, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.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.062e-06/1.062e-06, allocations: 0 / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.01e-05/1.116e-05, allocations: 2.312 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.01486/0.01487, allocations: 20.54 MB / 265.1 MB, free: 9.715 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.122/0.1369, allocations: 15.91 MB / 281 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007599/0.1376, allocations: 43.75 kB / 281 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006711/0.1383, allocations: 418 kB / 281.4 MB, free: 0.8047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008114/0.1464, allocations: 4.886 MB / 286.3 MB, free: 256 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003521/0.1499, allocations: 2.296 MB / 288.6 MB, free: 64 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009906/0.1598, allocations: 7.792 MB / 296.4 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007321/0.1606, allocations: 0.6039 MB / 297 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009235/0.1698, allocations: 6.343 MB / 303.3 MB, free: 9.695 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008006/0.1706, allocations: 0.712 MB / 304 MB, free: 9.043 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001352/0.1707, allocations: 88 kB / 304.1 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01063/0.1814, allocations: 7.479 MB / 311.6 MB, free: 1.574 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001872/0.1816, allocations: 219.8 kB / 311.8 MB, free: 1.359 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004261/0.182, allocations: 427.2 kB / 312.2 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006511/0.1885, allocations: 4.791 MB / 317 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.185e-05/0.1885, allocations: 0 / 317 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.1885, allocations: 3.984 kB / 317 MB, free: 12.4 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.683e-05/0.1885, allocations: 0 / 317 MB, free: 12.4 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.004118/0.1927, allocations: 3.041 MB / 320.1 MB, free: 9.422 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.867e-05/0.1927, allocations: 8.031 kB / 320.1 MB, free: 9.414 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002416/0.1951, allocations: 1.021 MB / 321.1 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009952/0.1961, allocations: 0.7888 MB / 321.9 MB, free: 7.633 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.362e-05/0.1961, allocations: 74.39 kB / 322 MB, free: 7.559 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.695e-05/0.1962, allocations: 104.4 kB / 322.1 MB, free: 7.457 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001914/0.1981, allocations: 1.714 MB / 323.8 MB, free: 5.562 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.1982, allocations: 3.938 kB / 323.8 MB, free: 5.559 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.891e-05/0.1982, allocations: 55.94 kB / 323.8 MB, free: 5.504 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.1982, allocations: 24 kB / 323.9 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.1994, allocations: 0.8514 MB / 324.7 MB, free: 4.633 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003832/0.2033, allocations: 5.257 MB / 330 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001489/0.2048, allocations: 0.8157 MB / 330.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.2049, allocations: 158.7 kB / 330.9 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2575/0.4624, allocations: 96.47 MB / 427.4 MB, free: 123.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.823e-05/0.4625, allocations: 43.52 kB / 427.5 MB, free: 123.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 2.545e-06/0.4625, allocations: 0 / 427.5 MB, free: 123.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.002796/0.4653, allocations: 1.43 MB / 428.9 MB, free: 123.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.245e-05/0.4653, allocations: 86.14 kB / 429 MB, free: 123.4 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005199/0.4658, allocations: 0.7389 MB / 429.7 MB, free: 123.3 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.326e-05/0.4658, allocations: 44.52 kB / 429.8 MB, free: 123.2 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.466, allocations: 0.4945 MB / 430.3 MB, free: 123.1 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.4661, allocations: 284.5 kB / 430.5 MB, free: 122.9 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.4663, allocations: 225.6 kB / 430.7 MB, free: 122.9 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.008e-05/0.4664, allocations: 353.6 kB / 431.1 MB, free: 122.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001463/0.4665, allocations: 115.5 kB / 431.2 MB, free: 122.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.4668, allocations: 0.6687 MB / 431.9 MB, free: 121.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000516/0.4673, allocations: 0.7689 MB / 432.6 MB, free: 121.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.263e-06/0.4673, allocations: 4.25 kB / 432.6 MB, free: 121.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0006791/0.468, allocations: 0.706 MB / 433.4 MB, free: 121.4 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.468, allocations: 13.62 kB / 433.4 MB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/0.468, allocations: 14.28 kB / 433.4 MB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001297/0.4693, allocations: 498.8 kB / 433.9 MB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005632/0.4699, allocations: 313.1 kB / 434.2 MB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003861/0.4703, allocations: 1.231 MB / 435.4 MB, free: 120.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003702/0.4707, allocations: 118.6 kB / 435.5 MB, free: 120.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.4707, allocations: 53.69 kB / 435.6 MB, free: 120.2 MB / 394.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.0001929/0.4709, allocations: 203.8 kB / 435.8 MB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.471, allocations: 90.09 kB / 435.9 MB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.4726, allocations: 2.436 MB / 438.3 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.521e-05/0.4726, allocations: 46.28 kB / 438.3 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.4726, allocations: 2.812 kB / 438.3 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.4726, allocations: 5.484 kB / 438.3 MB, free: 119.6 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002001/0.4746, allocations: 2.483 MB / 440.8 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.4746, allocations: 0 / 440.8 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005138/0.4751, allocations: 182.3 kB / 441 MB, free: 119.1 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.4753, allocations: 176.2 kB / 441.2 MB, free: 119 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007784/0.4761, allocations: 0.5571 MB / 441.7 MB, free: 119 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.54e-05/0.4761, allocations: 26.62 kB / 441.8 MB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000545/0.4766, allocations: 1.408 MB / 443.2 MB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4766, allocations: 0 / 443.2 MB, free: 117.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009375/0.4776, allocations: 1.255 MB / 444.4 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.4777, allocations: 42.72 kB / 444.5 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.478, allocations: 24 kB / 444.5 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.797e-05/0.4781, allocations: 51.39 kB / 444.5 MB, free: 117.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-05/0.4781, allocations: 25.5 kB / 444.6 MB, free: 117.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003312/0.4784, allocations: 446.6 kB / 445 MB, free: 117.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.4784, allocations: 0 / 445 MB, free: 117.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002393/0.4808, allocations: 1.31 MB / 446.3 MB, free: 117.2 MB / 394.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.002735/0.4835, allocations: 1.484 MB / 447.8 MB, free: 117 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.4846, allocations: 0.7171 MB / 448.5 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.268e-05/0.4846, allocations: 21.75 kB / 448.5 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006095/0.4852, allocations: 471.8 kB / 449 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001684/0.4869, allocations: 0.7667 MB / 449.8 MB, free: 116.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01554/0.5024, allocations: 2.809 MB / 452.6 MB, free: 115.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001983/0.5026, allocations: 321.4 kB / 452.9 MB, free: 115.5 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0007549/0.5034, allocations: 0.5986 MB / 453.5 MB, free: 115.2 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/0.5042, allocations: 487.1 kB / 454 MB, free: 114.8 MB / 394.7 MB Notification: Performance of SimCode: time 6.91e-07/0.5042, allocations: 0 / 454 MB, free: 114.8 MB / 394.7 MB Notification: Performance of Templates: time 0.04757/0.5518, allocations: 62.89 MB / 0.5047 GB, free: 53.81 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 -ignoreHideResult -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.762844518758357]