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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009539/0.0009538, allocations: 101.9 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009126/0.0009126, allocations: 206.9 kB / 18.94 MB, free: 4.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.7 MB / 247.5 MB, free: 9.672 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.000252, allocations: 8 kB / 308.4 MB, free: 0.5859 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1169/0.1172, allocations: 51.52 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2524/0.3696, allocations: 63.5 MB / 423.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03063/0.4003, allocations: 23.28 MB / 446.7 MB, free: 4.219 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002111/0.4025, allocations: 35.69 kB / 446.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002197/0.4047, allocations: 0.6371 MB / 447.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.016/0.4207, allocations: 4.76 MB / 452.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009444/0.4302, allocations: 3.034 MB / 455.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01648/0.4467, allocations: 9.625 MB / 464.8 MB, free: 2.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001338/0.4481, allocations: 0.6071 MB / 465.4 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002099/0.4502, allocations: 0.9453 MB / 466.3 MB, free: 456 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.4513, allocations: 0.8362 MB / 467.2 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001276/0.4515, allocations: 52 kB / 467.2 MB, free: 15.55 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01544/0.4669, allocations: 7.54 MB / 474.8 MB, free: 8.008 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000456/0.4674, allocations: 250.8 kB / 475 MB, free: 7.762 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001166/0.4686, allocations: 0.7014 MB / 475.7 MB, free: 7.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009846/0.4785, allocations: 3.964 MB / 479.7 MB, free: 3.078 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.928e-06/0.4785, allocations: 0 / 479.7 MB, free: 3.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.4785, allocations: 7.875 kB / 479.7 MB, free: 3.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.118e-05/0.4786, allocations: 4 kB / 479.7 MB, free: 3.066 MB / 382.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.007036/0.4856, allocations: 2.185 MB / 481.9 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.4857, allocations: 8.031 kB / 481.9 MB, free: 0.8203 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004666/0.4903, allocations: 0.6549 MB / 482.5 MB, free: 168 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001997/0.4923, allocations: 1.001 MB / 483.5 MB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.861e-05/0.4924, allocations: 74.58 kB / 483.6 MB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001467/0.4926, allocations: 103.9 kB / 483.7 MB, free: 14.94 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003699/0.4963, allocations: 1.667 MB / 485.4 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.73e-05/0.4963, allocations: 7.938 kB / 485.4 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001253/0.4965, allocations: 48 kB / 485.4 MB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.868e-05/0.4965, allocations: 28 kB / 485.4 MB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003348/0.4999, allocations: 1.463 MB / 486.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01057/0.5104, allocations: 8.419 MB / 495.3 MB, free: 2.547 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003303/0.5138, allocations: 1.697 MB / 497 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006993/0.5145, allocations: 406.5 kB / 497.4 MB, free: 296 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3654/0.88, allocations: 70.95 MB / 0.555 GB, free: 109.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.238e-05/0.8801, allocations: 42.34 kB / 0.5551 GB, free: 109.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 3.016e-06/0.8801, allocations: 0 / 0.5551 GB, free: 109.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005932/0.886, allocations: 2.002 MB / 0.557 GB, free: 109.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.8861, allocations: 189.2 kB / 0.5572 GB, free: 109.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.8871, allocations: 0.9658 MB / 0.5582 GB, free: 109 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.19e-05/0.8872, allocations: 37.55 kB / 0.5582 GB, free: 109 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003127/0.8875, allocations: 0.569 MB / 0.5588 GB, free: 108.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001654/0.8877, allocations: 286.2 kB / 0.559 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.8878, allocations: 98.12 kB / 0.5591 GB, free: 108.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.229e-05/0.8879, allocations: 348.2 kB / 0.5595 GB, free: 108.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004576/0.8883, allocations: 305.6 kB / 0.5597 GB, free: 108.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00062/0.889, allocations: 0.7459 MB / 0.5605 GB, free: 107.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001165/0.8901, allocations: 1.103 MB / 0.5616 GB, free: 107.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.8902, allocations: 3.438 kB / 0.5616 GB, free: 107.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001851/0.892, allocations: 1.243 MB / 0.5628 GB, free: 107 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.8921, allocations: 15.39 kB / 0.5628 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.8921, allocations: 14.88 kB / 0.5628 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003173/0.8953, allocations: 0.5243 MB / 0.5633 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.8963, allocations: 286.5 kB / 0.5636 GB, free: 107 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008083/0.8971, allocations: 1.369 MB / 0.5649 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008968/0.898, allocations: 156.6 kB / 0.5651 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.8981, allocations: 73.52 kB / 0.5651 GB, free: 105.8 MB / 446.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.0004607/0.8986, allocations: 292.3 kB / 0.5654 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.8987, allocations: 123.9 kB / 0.5655 GB, free: 105.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004062/0.9028, allocations: 4.515 MB / 0.5699 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-05/0.9029, allocations: 44.14 kB / 0.57 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.9029, allocations: 0 / 0.57 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.9029, allocations: 9.672 kB / 0.57 GB, free: 105.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/0.9075, allocations: 4.935 MB / 0.5748 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.9075, allocations: 4 kB / 0.5748 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007386/0.9082, allocations: 165 kB / 0.575 GB, free: 103.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003601/0.9118, allocations: 1.603 MB / 0.5765 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.236e-05/0.9119, allocations: 20.69 kB / 0.5766 GB, free: 102.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001027/0.913, allocations: 1.754 MB / 0.5783 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.913, allocations: 3.938 kB / 0.5783 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001942/0.9149, allocations: 2.021 MB / 0.5803 GB, free: 98.25 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003975/0.9153, allocations: 361.8 kB / 0.5806 GB, free: 97.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001454/0.9155, allocations: 19.94 kB / 0.5806 GB, free: 97.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006023/0.9161, allocations: 60.69 kB / 0.5807 GB, free: 97.8 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.06e-05/0.9162, allocations: 54.02 kB / 0.5807 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.877e-05/0.9162, allocations: 35.98 kB / 0.5808 GB, free: 97.71 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008593/0.9171, allocations: 0.8342 MB / 0.5816 GB, free: 96.87 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.9171, allocations: 0 / 0.5816 GB, free: 96.87 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003473/0.9206, allocations: 1.282 MB / 0.5828 GB, free: 95.68 MB / 446.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.004326/0.9249, allocations: 1.267 MB / 0.5841 GB, free: 94.64 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002422/0.9274, allocations: 1.259 MB / 0.5853 GB, free: 93.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.9274, allocations: 4 kB / 0.5853 GB, free: 93.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001446/0.9288, allocations: 0.9092 MB / 0.5862 GB, free: 92.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/0.9324, allocations: 0.6989 MB / 0.5869 GB, free: 91.87 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003847/0.9363, allocations: 3.843 MB / 0.5906 GB, free: 88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005362/0.9368, allocations: 1.316 MB / 0.5919 GB, free: 86.65 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.9371, allocations: 123.4 kB / 0.592 GB, free: 86.53 MB / 446.1 MB Notification: Performance of SimCode: time 6.41e-07/0.9371, allocations: 2.156 kB / 0.592 GB, free: 86.53 MB / 446.1 MB Notification: Performance of Templates: time 0.05332/0.9905, allocations: 50.87 MB / 0.6417 GB, free: 35.79 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) "" Variables in the reference:time,suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T Variables in the result:suddenExpansion1.dp,suddenExpansion1.m_flow,suddenExpansion1.port_b_T,suddenExpansion2.dp,suddenExpansion2.m_flow,suddenExpansion2.port_b_T,time