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.001213/0.001213, allocations: 120 kB / 18.5 MB, free: 4.52 MB / 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.001302/0.001302, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.521/1.521, allocations: 230.2 MB / 254.5 MB, free: 15.24 MB / 206.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.001915/0.001915, allocations: 67.89 kB / 373.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1192, allocations: 53.32 MB / 427.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3474/0.4666, allocations: 63.44 MB / 490.6 MB, free: 15.26 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03113/0.4978, allocations: 22.5 MB / 0.5011 GB, free: 10.97 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001961/0.4997, allocations: 27.81 kB / 0.5011 GB, free: 10.94 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002328/0.502, allocations: 0.7335 MB / 0.5018 GB, free: 10.2 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01886/0.5209, allocations: 5.828 MB / 0.5075 GB, free: 4.375 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01026/0.5312, allocations: 3.469 MB / 0.5109 GB, free: 0.9141 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01947/0.5506, allocations: 9.071 MB / 0.5197 GB, free: 7.73 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001467/0.5521, allocations: 0.6026 MB / 0.5203 GB, free: 7.117 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002428/0.5545, allocations: 1.059 MB / 0.5214 GB, free: 6.055 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001342/0.5559, allocations: 0.8635 MB / 0.5222 GB, free: 5.188 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001659/0.556, allocations: 95.98 kB / 0.5223 GB, free: 5.094 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01807/0.5741, allocations: 7.692 MB / 0.5298 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000564/0.5747, allocations: 286.8 kB / 0.5301 GB, free: 13.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.5759, allocations: 0.7115 MB / 0.5308 GB, free: 12.4 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0166/0.5925, allocations: 5.778 MB / 0.5364 GB, free: 6.605 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.96e-05/0.5926, allocations: 0 / 0.5364 GB, free: 6.605 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.5926, allocations: 0 / 0.5364 GB, free: 6.605 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.015e-05/0.5926, allocations: 4 kB / 0.5364 GB, free: 6.602 MB / 446.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.007113/0.5997, allocations: 2.542 MB / 0.5389 GB, free: 4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.5997, allocations: 12.03 kB / 0.5389 GB, free: 3.988 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004951/0.6047, allocations: 0.6556 MB / 0.5396 GB, free: 3.332 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002228/0.6069, allocations: 1.06 MB / 0.5406 GB, free: 2.227 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.686e-05/0.607, allocations: 74.58 kB / 0.5407 GB, free: 2.152 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001482/0.6071, allocations: 99.94 kB / 0.5408 GB, free: 2.055 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003877/0.611, allocations: 1.678 MB / 0.5424 GB, free: 228 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/0.611, allocations: 3.938 kB / 0.5424 GB, free: 224 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001194/0.6112, allocations: 48 kB / 0.5424 GB, free: 176 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.6112, allocations: 24 kB / 0.5425 GB, free: 152 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003552/0.6147, allocations: 1.463 MB / 0.5439 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01016/0.6249, allocations: 8.401 MB / 0.5521 GB, free: 5.672 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003295/0.6282, allocations: 1.637 MB / 0.5537 GB, free: 3.867 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006439/0.6288, allocations: 359.6 kB / 0.554 GB, free: 3.512 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3767/1.006, allocations: 70.65 MB / 0.623 GB, free: 170.2 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/1.006, allocations: 45.72 kB / 0.6231 GB, free: 170.1 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 2.735e-06/1.006, allocations: 0 / 0.6231 GB, free: 170.1 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.006598/1.012, allocations: 1.987 MB / 0.625 GB, free: 170 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/1.012, allocations: 193.5 kB / 0.6252 GB, free: 169.7 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/1.014, allocations: 0.9662 MB / 0.6262 GB, free: 169.5 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.581e-05/1.014, allocations: 41.8 kB / 0.6262 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003892/1.014, allocations: 0.5784 MB / 0.6268 GB, free: 169.1 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/1.015, allocations: 289.5 kB / 0.627 GB, free: 168.9 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003852/1.015, allocations: 241.4 kB / 0.6273 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.655e-05/1.015, allocations: 348.3 kB / 0.6276 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006026/1.016, allocations: 307.1 kB / 0.6279 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000828/1.016, allocations: 0.7433 MB / 0.6286 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001312/1.018, allocations: 1.092 MB / 0.6297 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.398e-06/1.018, allocations: 3.969 kB / 0.6297 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002166/1.02, allocations: 1.249 MB / 0.6309 GB, free: 166.3 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/1.02, allocations: 13 kB / 0.6309 GB, free: 166.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/1.02, allocations: 13.28 kB / 0.6309 GB, free: 166.3 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003472/1.023, allocations: 0.52 MB / 0.6314 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001162/1.025, allocations: 277.1 kB / 0.6317 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008696/1.025, allocations: 1.382 MB / 0.633 GB, free: 165 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008875/1.026, allocations: 134 kB / 0.6332 GB, free: 164.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/1.026, allocations: 66.58 kB / 0.6332 GB, free: 164.9 MB / 0.5137 GB 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.0004691/1.027, allocations: 297.3 kB / 0.6335 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/1.027, allocations: 133.8 kB / 0.6337 GB, free: 164.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004784/1.032, allocations: 4.417 MB / 0.638 GB, free: 162.6 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.101e-05/1.032, allocations: 45.02 kB / 0.638 GB, free: 162.6 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/1.032, allocations: 1.062 kB / 0.638 GB, free: 162.6 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.719e-05/1.032, allocations: 5.969 kB / 0.638 GB, free: 162.6 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00516/1.037, allocations: 4.893 MB / 0.6428 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.346e-06/1.037, allocations: 2.5 kB / 0.6428 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008132/1.038, allocations: 162.6 kB / 0.643 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001398/1.039, allocations: 0.6695 MB / 0.6436 GB, free: 159.8 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.816e-05/1.039, allocations: 25.19 kB / 0.6436 GB, free: 159.8 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/1.04, allocations: 1.754 MB / 0.6453 GB, free: 158.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.04, allocations: 0 / 0.6453 GB, free: 158.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002296/1.043, allocations: 1.99 MB / 0.6473 GB, free: 157.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003111/1.043, allocations: 277.7 kB / 0.6475 GB, free: 157.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001754/1.043, allocations: 43.06 kB / 0.6476 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005011/1.044, allocations: 22.52 kB / 0.6476 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.057e-05/1.044, allocations: 51.8 kB / 0.6477 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-05/1.044, allocations: 37.86 kB / 0.6477 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009543/1.045, allocations: 0.8313 MB / 0.6485 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/1.045, allocations: 0 / 0.6485 GB, free: 156.8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003402/1.048, allocations: 1.295 MB / 0.6498 GB, free: 156.6 MB / 0.5137 GB 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.004025/1.052, allocations: 1.274 MB / 0.651 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002294/1.055, allocations: 1.214 MB / 0.6522 GB, free: 155.7 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/1.055, allocations: 0 / 0.6522 GB, free: 155.7 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001612/1.056, allocations: 0.7354 MB / 0.6529 GB, free: 155.3 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004827/1.061, allocations: 0.7229 MB / 0.6536 GB, free: 154.9 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00531/1.066, allocations: 3.088 MB / 0.6566 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007461/1.067, allocations: 1.316 MB / 0.6579 GB, free: 151.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.001683/1.069, allocations: 0.633 MB / 0.6585 GB, free: 150.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000349/1.069, allocations: 119.4 kB / 0.6587 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of SimCode: time 7.41e-07/1.069, allocations: 0 / 0.6587 GB, free: 150.3 MB / 0.5137 GB Notification: Performance of Templates: time 0.1297/1.199, allocations: 58.04 MB / 0.7153 GB, free: 92.5 MB / 0.5137 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 -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: 9.603100741282105]