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.001368/0.001368, allocations: 112.8 kB / 19.17 MB, free: 3.871 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.001451/0.001451, allocations: 210.5 kB / 22.13 MB, free: 0.918 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.463/1.463, allocations: 230.2 MB / 255.1 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.001828/0.001828, allocations: 67.89 kB / 374.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09627, allocations: 53.33 MB / 427.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2586/0.3548, allocations: 63.43 MB / 491.3 MB, free: 15.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03174/0.3866, allocations: 22.51 MB / 0.5017 GB, free: 10.88 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001745/0.3883, allocations: 35.75 kB / 0.5018 GB, free: 10.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002488/0.3908, allocations: 0.7296 MB / 0.5025 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01866/0.4095, allocations: 5.825 MB / 0.5082 GB, free: 4.289 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01088/0.4204, allocations: 3.473 MB / 0.5116 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.02087/0.4412, allocations: 9.063 MB / 0.5204 GB, free: 7.641 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001422/0.4426, allocations: 0.6026 MB / 0.521 GB, free: 7.027 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002507/0.4451, allocations: 1.066 MB / 0.522 GB, free: 5.957 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001911/0.4471, allocations: 0.8557 MB / 0.5229 GB, free: 5.098 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003962/0.4475, allocations: 92 kB / 0.523 GB, free: 5.008 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01733/0.4648, allocations: 7.699 MB / 0.5305 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005294/0.4653, allocations: 286.8 kB / 0.5307 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001156/0.4665, allocations: 0.7115 MB / 0.5314 GB, free: 12.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01491/0.4814, allocations: 5.782 MB / 0.5371 GB, free: 6.508 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.4814, allocations: 0 / 0.5371 GB, free: 6.508 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4814, allocations: 0 / 0.5371 GB, free: 6.508 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.929e-05/0.4814, allocations: 3.938 kB / 0.5371 GB, free: 6.504 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.006824/0.4882, allocations: 2.535 MB / 0.5396 GB, free: 3.906 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/0.4883, allocations: 11.97 kB / 0.5396 GB, free: 3.895 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004999/0.4933, allocations: 0.6673 MB / 0.5402 GB, free: 3.227 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.4954, allocations: 1.044 MB / 0.5413 GB, free: 2.137 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.347e-05/0.4955, allocations: 78.58 kB / 0.5413 GB, free: 2.059 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.4956, allocations: 99.94 kB / 0.5414 GB, free: 1.961 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003914/0.4995, allocations: 1.671 MB / 0.5431 GB, free: 140 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.4995, allocations: 7.938 kB / 0.5431 GB, free: 132 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/0.4997, allocations: 47.98 kB / 0.5431 GB, free: 84 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.687e-05/0.4997, allocations: 28 kB / 0.5431 GB, free: 56 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00361/0.5033, allocations: 1.464 MB / 0.5446 GB, free: 14.59 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.5138, allocations: 8.405 MB / 0.5528 GB, free: 5.574 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003315/0.5172, allocations: 1.629 MB / 0.5544 GB, free: 3.777 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006413/0.5178, allocations: 365.8 kB / 0.5547 GB, free: 3.418 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3425/0.8603, allocations: 70.65 MB / 0.6237 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.8603, allocations: 44.17 kB / 0.6237 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 2.715e-06/0.8603, allocations: 0 / 0.6237 GB, free: 169.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.006181/0.8665, allocations: 1.986 MB / 0.6257 GB, free: 169.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.8666, allocations: 193 kB / 0.6259 GB, free: 169.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/0.8679, allocations: 0.9639 MB / 0.6268 GB, free: 169.1 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 6.993e-05/0.868, allocations: 41.23 kB / 0.6269 GB, free: 169 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003732/0.8683, allocations: 0.5828 MB / 0.6274 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/0.8685, allocations: 291.2 kB / 0.6277 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003173/0.8688, allocations: 236.1 kB / 0.6279 GB, free: 168.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.047e-05/0.8689, allocations: 353.3 kB / 0.6283 GB, free: 168.2 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00055/0.8695, allocations: 303.6 kB / 0.6286 GB, free: 168.1 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007616/0.8702, allocations: 0.7465 MB / 0.6293 GB, free: 167.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.8715, allocations: 1.087 MB / 0.6303 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-06/0.8715, allocations: 8.219 kB / 0.6304 GB, free: 166.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002109/0.8736, allocations: 1.246 MB / 0.6316 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.8736, allocations: 11.22 kB / 0.6316 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.8737, allocations: 14.77 kB / 0.6316 GB, free: 166.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003505/0.8772, allocations: 0.5204 MB / 0.6321 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/0.8783, allocations: 282.5 kB / 0.6324 GB, free: 166 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008806/0.8791, allocations: 1.372 MB / 0.6337 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008266/0.88, allocations: 138.3 kB / 0.6338 GB, free: 164.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.71e-05/0.8801, allocations: 66.92 kB / 0.6339 GB, free: 164.7 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.0004602/0.8805, allocations: 301.3 kB / 0.6342 GB, free: 164.5 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000214/0.8807, allocations: 128.8 kB / 0.6343 GB, free: 164.4 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004651/0.8854, allocations: 4.412 MB / 0.6386 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.931e-05/0.8854, allocations: 45.66 kB / 0.6387 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.8855, allocations: 1.828 kB / 0.6387 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.375e-05/0.8855, allocations: 5.188 kB / 0.6387 GB, free: 162.4 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005033/0.8905, allocations: 4.904 MB / 0.6435 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.8905, allocations: 1.188 kB / 0.6435 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.8913, allocations: 161.9 kB / 0.6436 GB, free: 159.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001475/0.8928, allocations: 0.6686 MB / 0.6443 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.002e-05/0.8929, allocations: 25.27 kB / 0.6443 GB, free: 159.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.894, allocations: 1.75 MB / 0.646 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.894, allocations: 5.406 kB / 0.646 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002369/0.8963, allocations: 1.985 MB / 0.6479 GB, free: 157.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003291/0.8967, allocations: 277.8 kB / 0.6482 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.8968, allocations: 46.97 kB / 0.6483 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004909/0.8973, allocations: 17.78 kB / 0.6483 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.012e-05/0.8974, allocations: 51.91 kB / 0.6483 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-05/0.8975, allocations: 33.89 kB / 0.6484 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0009907/0.8984, allocations: 0.8416 MB / 0.6492 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.8984, allocations: 3.844 kB / 0.6492 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.003655/0.9021, allocations: 1.295 MB / 0.6504 GB, free: 156.4 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.004182/0.9063, allocations: 1.269 MB / 0.6517 GB, free: 156 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002538/0.9088, allocations: 1.209 MB / 0.6529 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.9088, allocations: 3.5 kB / 0.6529 GB, free: 155.5 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001435/0.9103, allocations: 0.7328 MB / 0.6536 GB, free: 155.1 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0033/0.9136, allocations: 0.7205 MB / 0.6543 GB, free: 154.7 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003632/0.9172, allocations: 3.137 MB / 0.6574 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005183/0.9177, allocations: 1.312 MB / 0.6586 GB, free: 150.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.918, allocations: 127.4 kB / 0.6588 GB, free: 150.7 MB / 0.5137 GB Notification: Performance of SimCode: time 1.372e-06/0.918, allocations: 4 kB / 0.6588 GB, free: 150.7 MB / 0.5137 GB Notification: Performance of Templates: time 0.05007/0.9681, allocations: 51.33 MB / 0.7089 GB, free: 99.37 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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 13.52193666412495]