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.001902/0.001902, allocations: 79.73 kB / 21.25 MB, free: 392 kB / 14.72 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.002491/0.002491, allocations: 162.5 kB / 24.5 MB, free: 3.449 MB / 14.72 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.436/1.436, allocations: 177.1 MB / 204.7 MB, free: 8.961 MB / 190.1 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 0.002116/0.002116, allocations: 60.14 kB / 325.5 MB, free: 204 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09377/0.09588, allocations: 53.39 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06642/0.1623, allocations: 57.55 MB / 436.4 MB, free: 5.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02773/0.19, allocations: 20.08 MB / 456.5 MB, free: 1.59 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009559/0.191, allocations: 47.56 kB / 456.6 MB, free: 1.543 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.1927, allocations: 0.6673 MB / 457.2 MB, free: 0.8711 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01452/0.2072, allocations: 5.822 MB / 463.1 MB, free: 11.04 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008916/0.2162, allocations: 3.429 MB / 466.5 MB, free: 7.617 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.2119/0.428, allocations: 9.103 MB / 475.6 MB, free: 13.28 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001223/0.4293, allocations: 0.5777 MB / 476.2 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002242/0.4315, allocations: 1.077 MB / 477.3 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001474/0.433, allocations: 0.804 MB / 478.1 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001926/0.4332, allocations: 91.97 kB / 478.1 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01427/0.4475, allocations: 7.298 MB / 485.4 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004885/0.4479, allocations: 288 kB / 485.7 MB, free: 13.25 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009635/0.4489, allocations: 0.5977 MB / 486.3 MB, free: 13.23 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01179/0.4607, allocations: 5.767 MB / 492.1 MB, free: 12.84 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.4607, allocations: 0 / 492.1 MB, free: 12.84 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.4607, allocations: 0 / 492.1 MB, free: 12.84 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.4607, allocations: 0 / 492.1 MB, free: 12.84 MB / 430.1 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.00645/0.4672, allocations: 2.459 MB / 494.5 MB, free: 11.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/0.4672, allocations: 13.42 kB / 494.6 MB, free: 11.77 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004815/0.472, allocations: 0.6649 MB / 495.2 MB, free: 11.69 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00195/0.474, allocations: 0.9716 MB / 496.2 MB, free: 11.42 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.918e-05/0.474, allocations: 74.98 kB / 496.3 MB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.4741, allocations: 104.1 kB / 496.4 MB, free: 11.41 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003263/0.4774, allocations: 1.975 MB / 498.3 MB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.707e-05/0.4774, allocations: 3.469 kB / 498.4 MB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001095/0.4775, allocations: 50.62 kB / 498.4 MB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.084e-05/0.4776, allocations: 27.41 kB / 498.4 MB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003027/0.4806, allocations: 1.458 MB / 499.9 MB, free: 10.65 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007149/0.4877, allocations: 6.252 MB / 0.4943 GB, free: 7.18 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002571/0.4903, allocations: 1.037 MB / 0.4953 GB, free: 7.133 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005104/0.4908, allocations: 362 kB / 0.4956 GB, free: 7.117 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1238/0.6146, allocations: 34.83 MB / 0.5296 GB, free: 15.28 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.27e-05/0.6146, allocations: 45.34 kB / 0.5297 GB, free: 15.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.976e-06/0.6146, allocations: 0 / 0.5297 GB, free: 15.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.006355/0.621, allocations: 1.899 MB / 0.5315 GB, free: 13.78 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.6211, allocations: 191.2 kB / 0.5317 GB, free: 13.55 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.6225, allocations: 0.831 MB / 0.5325 GB, free: 12.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/0.6226, allocations: 36.2 kB / 0.5326 GB, free: 12.85 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005009/0.6231, allocations: 0.6013 MB / 0.5332 GB, free: 12.42 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003472/0.6234, allocations: 285.1 kB / 0.5334 GB, free: 12.18 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.6238, allocations: 238.4 kB / 0.5337 GB, free: 12.03 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.6239, allocations: 352.4 kB / 0.534 GB, free: 11.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005578/0.6245, allocations: 301.3 kB / 0.5343 GB, free: 11.51 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001026/0.6255, allocations: 0.8418 MB / 0.5351 GB, free: 10.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001571/0.6271, allocations: 1.096 MB / 0.5362 GB, free: 9.652 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.6271, allocations: 4 kB / 0.5362 GB, free: 9.648 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002247/0.6294, allocations: 1.237 MB / 0.5374 GB, free: 8.812 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.6294, allocations: 12.03 kB / 0.5374 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.472e-05/0.6294, allocations: 16 kB / 0.5374 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003353/0.6328, allocations: 0.5255 MB / 0.5379 GB, free: 8.305 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.6339, allocations: 278.1 kB / 0.5382 GB, free: 8.062 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001218/0.6351, allocations: 1.375 MB / 0.5395 GB, free: 6.75 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007807/0.6359, allocations: 114.4 kB / 0.5396 GB, free: 6.652 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/0.636, allocations: 67.34 kB / 0.5397 GB, free: 6.598 MB / 462.1 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.0004822/0.6365, allocations: 293.1 kB / 0.54 GB, free: 6.402 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000282/0.6367, allocations: 115.3 kB / 0.5401 GB, free: 6.289 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005136/0.6419, allocations: 4.635 MB / 0.5446 GB, free: 3.301 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.876e-05/0.6419, allocations: 50.23 kB / 0.5447 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.6419, allocations: 0 / 0.5447 GB, free: 3.262 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.423e-05/0.6419, allocations: 7.984 kB / 0.5447 GB, free: 3.254 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005896/0.6478, allocations: 4.281 MB / 0.5489 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.455e-06/0.6479, allocations: 0 / 0.5489 GB, free: 15.12 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008297/0.6487, allocations: 171.4 kB / 0.549 GB, free: 14.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001638/0.6503, allocations: 0.6769 MB / 0.5497 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.464e-05/0.6504, allocations: 25.86 kB / 0.5497 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001641/0.652, allocations: 1.778 MB / 0.5514 GB, free: 12.44 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.578e-06/0.652, allocations: 8.094 kB / 0.5514 GB, free: 12.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002819/0.6548, allocations: 2.016 MB / 0.5534 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003506/0.6552, allocations: 188.1 kB / 0.5536 GB, free: 10.18 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002063/0.6554, allocations: 43.73 kB / 0.5536 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00053/0.6559, allocations: 23.94 kB / 0.5537 GB, free: 10.11 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.678e-05/0.656, allocations: 52.55 kB / 0.5537 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.718e-05/0.6561, allocations: 35.98 kB / 0.5537 GB, free: 10.03 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001095/0.6572, allocations: 0.7205 MB / 0.5544 GB, free: 9.301 MB / 478.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6572, allocations: 3.75 kB / 0.5545 GB, free: 9.301 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00396/0.6611, allocations: 1.306 MB / 0.5557 GB, free: 7.992 MB / 478.1 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.005421/0.6666, allocations: 1.271 MB / 0.557 GB, free: 6.828 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.6694, allocations: 1.226 MB / 0.5582 GB, free: 5.641 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.771e-06/0.6694, allocations: 0 / 0.5582 GB, free: 5.641 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001703/0.6711, allocations: 0.7493 MB / 0.5589 GB, free: 4.906 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003276/0.6744, allocations: 0.5796 MB / 0.5595 GB, free: 4.352 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005477/0.6798, allocations: 3.114 MB / 0.5625 GB, free: 1.223 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.681, allocations: 0.7423 MB / 0.5632 GB, free: 456 kB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001468/0.6824, allocations: 0.6217 MB / 0.5638 GB, free: 15.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003231/0.6828, allocations: 112.5 kB / 0.5639 GB, free: 15.73 MB / 494.1 MB Notification: Performance of SimCode: time 7.12e-07/0.6828, allocations: 0 / 0.5639 GB, free: 15.73 MB / 494.1 MB Notification: Performance of Templates: time 0.08684/0.7696, allocations: 54.77 MB / 0.6174 GB, free: 9.527 MB / 0.5294 GB " [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 -s ida -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/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.217651845072396]