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.001114/0.001114, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001697/0.00281, allocations: 449.8 kB / 10.44 MB, free: 252 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.0007271/0.0007271, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008913/0.001618, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.9266/0.9266, allocations: 177.2 MB / 189.8 MB, free: 5.246 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0902/1.017, allocations: 53.66 MB / 243.4 MB, free: 15.51 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.743e-06/1.743e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.092e-05/1.266e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.02158/0.02159, allocations: 20.55 MB / 265.2 MB, free: 9.609 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1434/0.165, allocations: 15.91 MB / 281.2 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006387/0.1657, allocations: 46.84 kB / 281.2 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006353/0.1663, allocations: 417.2 kB / 281.6 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008727/0.175, allocations: 4.88 MB / 286.5 MB, free: 276 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00381/0.1788, allocations: 2.293 MB / 288.8 MB, free: 88 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.009306/0.1882, allocations: 7.794 MB / 296.6 MB, free: 13.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000803/0.189, allocations: 0.6116 MB / 297.2 MB, free: 13.1 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008002/0.197, allocations: 6.346 MB / 303.5 MB, free: 9.617 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007761/0.1977, allocations: 0.7005 MB / 304.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001196/0.1979, allocations: 92 kB / 304.3 MB, free: 8.887 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01017/0.208, allocations: 7.471 MB / 311.8 MB, free: 1.508 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001786/0.2082, allocations: 227.7 kB / 312 MB, free: 1.289 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003692/0.2086, allocations: 427.2 kB / 312.4 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007366/0.2159, allocations: 4.775 MB / 317.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.027e-05/0.2159, allocations: 0 / 317.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.216, allocations: 0 / 317.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.209e-05/0.216, allocations: 4 kB / 317.2 MB, free: 12.34 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.005767/0.2218, allocations: 3.024 MB / 320.2 MB, free: 9.383 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.2218, allocations: 16.02 kB / 320.2 MB, free: 9.367 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002594/0.2244, allocations: 1.025 MB / 321.3 MB, free: 8.363 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/0.226, allocations: 0.789 MB / 322.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.759e-05/0.2261, allocations: 74.39 kB / 322.1 MB, free: 7.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.465e-05/0.2262, allocations: 100.4 kB / 322.2 MB, free: 7.422 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001813/0.228, allocations: 1.714 MB / 323.9 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.362e-05/0.228, allocations: 11.88 kB / 324 MB, free: 5.523 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.193e-05/0.2281, allocations: 44 kB / 324 MB, free: 5.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.821e-05/0.2281, allocations: 28 kB / 324 MB, free: 5.453 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001263/0.2293, allocations: 0.8531 MB / 324.9 MB, free: 4.602 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00436/0.2337, allocations: 5.251 MB / 330.1 MB, free: 15.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001258/0.235, allocations: 0.8182 MB / 331 MB, free: 14.45 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.2351, allocations: 162.5 kB / 331.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2812/0.5163, allocations: 96.47 MB / 427.6 MB, free: 123.4 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.983e-05/0.5163, allocations: 47.78 kB / 427.6 MB, free: 123.4 MB / 394.7 MB Notification: Performance of pre-optimization done (n=77): time 3.036e-06/0.5163, allocations: 0 / 427.6 MB, free: 123.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=77): time 0.003251/0.5196, allocations: 1.427 MB / 429.1 MB, free: 123.4 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.819e-05/0.5196, allocations: 87.31 kB / 429.1 MB, free: 123.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006433/0.5203, allocations: 0.7402 MB / 429.9 MB, free: 123.1 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.439e-05/0.5203, allocations: 42.36 kB / 429.9 MB, free: 123.1 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002314/0.5205, allocations: 493.9 kB / 430.4 MB, free: 122.9 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/0.5207, allocations: 292.2 kB / 430.7 MB, free: 122.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002032/0.5209, allocations: 232.6 kB / 430.9 MB, free: 122.8 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 5.84e-05/0.5209, allocations: 352.4 kB / 431.3 MB, free: 122.5 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001575/0.5211, allocations: 110 kB / 431.4 MB, free: 122.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003358/0.5214, allocations: 0.6711 MB / 432 MB, free: 121.8 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006359/0.5221, allocations: 0.8205 MB / 432.9 MB, free: 121.3 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.5221, allocations: 4.281 kB / 432.9 MB, free: 121.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.0008287/0.5229, allocations: 0.7079 MB / 433.6 MB, free: 121.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/0.5229, allocations: 11.19 kB / 433.6 MB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.577e-05/0.5229, allocations: 14.62 kB / 433.6 MB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/0.5243, allocations: 0.4894 MB / 434.1 MB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005821/0.5249, allocations: 311.6 kB / 434.4 MB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004256/0.5253, allocations: 1.231 MB / 435.6 MB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004884/0.5258, allocations: 119.5 kB / 435.7 MB, free: 120.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.628e-05/0.5259, allocations: 51.97 kB / 435.8 MB, free: 120.1 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.0002538/0.5261, allocations: 199.7 kB / 436 MB, free: 120 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.5263, allocations: 95.8 kB / 436.1 MB, free: 120 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001866/0.5281, allocations: 2.43 MB / 438.5 MB, free: 119.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.212e-05/0.5282, allocations: 44.2 kB / 438.5 MB, free: 119.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.5282, allocations: 3.5 kB / 438.6 MB, free: 119.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.5282, allocations: 6.562 kB / 438.6 MB, free: 119.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00226/0.5304, allocations: 2.485 MB / 441 MB, free: 119 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.5304, allocations: 2.062 kB / 441 MB, free: 119 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000404/0.5308, allocations: 185.4 kB / 441.2 MB, free: 119 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.531, allocations: 179.9 kB / 441.4 MB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006793/0.5317, allocations: 0.5496 MB / 442 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.623e-05/0.5317, allocations: 19.47 kB / 442 MB, free: 118.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005574/0.5323, allocations: 1.423 MB / 443.4 MB, free: 117.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.5323, allocations: 9.406 kB / 443.4 MB, free: 117.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008476/0.5332, allocations: 1.254 MB / 444.7 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.5333, allocations: 43.12 kB / 444.7 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002609/0.5335, allocations: 17.81 kB / 444.7 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.5336, allocations: 57.45 kB / 444.8 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.877e-05/0.5336, allocations: 22.91 kB / 444.8 MB, free: 117.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003141/0.5339, allocations: 445.5 kB / 445.2 MB, free: 117.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5339, allocations: 0 / 445.2 MB, free: 117.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002772/0.5367, allocations: 1.312 MB / 446.5 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.003283/0.54, allocations: 1.477 MB / 448 MB, free: 117 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.5411, allocations: 0.7328 MB / 448.8 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.564e-05/0.5412, allocations: 22.97 kB / 448.8 MB, free: 116.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006501/0.5418, allocations: 0.5185 MB / 449.3 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.002268/0.5441, allocations: 3.324 MB / 452.6 MB, free: 113.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.5556, allocations: 2.812 MB / 455.4 MB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001902/0.5558, allocations: 322.9 kB / 455.7 MB, free: 112.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008893/0.5567, allocations: 0.594 MB / 456.3 MB, free: 112 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007099/0.5574, allocations: 471.3 kB / 456.8 MB, free: 111.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/0.5574, allocations: 0 / 456.8 MB, free: 111.6 MB / 394.7 MB Notification: Performance of Templates: time 0.04914/0.6066, allocations: 57.51 MB / 0.5022 GB, free: 55.96 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.406266414560378]