Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001976/0.001976, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002354/0.002354, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.451/1.451, allocations: 227.7 MB / 247.7 MB, free: 10.3 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001959/0.00196, allocations: 63.14 kB / 307.9 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.106, allocations: 50.55 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2306/0.3366, allocations: 63.04 MB / 421.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03097/0.3676, allocations: 22.44 MB / 443.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001961/0.3696, allocations: 27.81 kB / 443.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002487/0.3722, allocations: 0.7373 MB / 444.7 MB, free: 4.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01733/0.3895, allocations: 5.801 MB / 450.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01062/0.4002, allocations: 3.462 MB / 453.9 MB, free: 11.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01944/0.4196, allocations: 9.044 MB / 463 MB, free: 2.273 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001583/0.4213, allocations: 0.6949 MB / 463.7 MB, free: 1.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002405/0.4237, allocations: 1.043 MB / 464.7 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001432/0.4252, allocations: 0.8246 MB / 465.6 MB, free: 15.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002173/0.4254, allocations: 92 kB / 465.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01581/0.4412, allocations: 7.508 MB / 473.1 MB, free: 8.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005489/0.4418, allocations: 290.9 kB / 473.4 MB, free: 7.809 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001167/0.443, allocations: 0.7153 MB / 474.1 MB, free: 7.09 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0135/0.4565, allocations: 5.749 MB / 479.9 MB, free: 1.328 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.194e-06/0.4566, allocations: 4 kB / 479.9 MB, free: 1.324 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4566, allocations: 0 / 479.9 MB, free: 1.324 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.135e-05/0.4566, allocations: 0 / 479.9 MB, free: 1.324 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.006912/0.4635, allocations: 2.475 MB / 482.4 MB, free: 14.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.4636, allocations: 8.031 kB / 482.4 MB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00496/0.4685, allocations: 0.6587 MB / 483 MB, free: 14.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002119/0.4707, allocations: 0.989 MB / 484 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.4708, allocations: 74.58 kB / 484.1 MB, free: 13.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001528/0.471, allocations: 99.94 kB / 484.2 MB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/0.475, allocations: 1.675 MB / 485.9 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.81e-05/0.475, allocations: 3.938 kB / 485.9 MB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001229/0.4752, allocations: 48 kB / 485.9 MB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/0.4752, allocations: 24 kB / 486 MB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00352/0.4787, allocations: 1.471 MB / 487.4 MB, free: 9.547 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01106/0.4898, allocations: 8.431 MB / 495.9 MB, free: 0.5039 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00331/0.4932, allocations: 1.691 MB / 497.5 MB, free: 14.65 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006618/0.4938, allocations: 403.6 kB / 497.9 MB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3242/0.818, allocations: 70.36 MB / 0.555 GB, free: 133.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.8181, allocations: 42.88 kB / 0.555 GB, free: 133.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.876e-06/0.8181, allocations: 0 / 0.555 GB, free: 133.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005475/0.8236, allocations: 1.995 MB / 0.557 GB, free: 133.1 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.8237, allocations: 192.4 kB / 0.5572 GB, free: 132.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001078/0.8248, allocations: 0.966 MB / 0.5581 GB, free: 132.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.386e-05/0.8249, allocations: 41.7 kB / 0.5581 GB, free: 132.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003232/0.8252, allocations: 0.5659 MB / 0.5587 GB, free: 131.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.8254, allocations: 283.4 kB / 0.559 GB, free: 131.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000277/0.8257, allocations: 232 kB / 0.5592 GB, free: 131.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.272e-05/0.8257, allocations: 353.5 kB / 0.5595 GB, free: 131.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004443/0.8262, allocations: 298.9 kB / 0.5598 GB, free: 131 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006425/0.8268, allocations: 0.7469 MB / 0.5605 GB, free: 130.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.828, allocations: 1.099 MB / 0.5616 GB, free: 129.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.828, allocations: 5.469 kB / 0.5616 GB, free: 129.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001775/0.8298, allocations: 1.237 MB / 0.5628 GB, free: 128.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/0.8298, allocations: 11.12 kB / 0.5628 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.8298, allocations: 13.81 kB / 0.5628 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003156/0.833, allocations: 0.5357 MB / 0.5634 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009812/0.834, allocations: 274.6 kB / 0.5636 GB, free: 128.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008108/0.8348, allocations: 1.371 MB / 0.565 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007776/0.8356, allocations: 131.7 kB / 0.5651 GB, free: 127 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.591e-05/0.8357, allocations: 74.44 kB / 0.5652 GB, free: 127 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.0004369/0.8361, allocations: 293.4 kB / 0.5654 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002019/0.8364, allocations: 122.4 kB / 0.5656 GB, free: 126.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.8399, allocations: 4.5 MB / 0.57 GB, free: 123 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.988e-05/0.84, allocations: 47.92 kB / 0.57 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.84, allocations: 4.812 kB / 0.57 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.84, allocations: 7.266 kB / 0.57 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004051/0.8441, allocations: 4.95 MB / 0.5748 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.067e-05/0.8441, allocations: 7.25 kB / 0.5749 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007386/0.8448, allocations: 167.7 kB / 0.575 GB, free: 117.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.8461, allocations: 0.6762 MB / 0.5757 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.041e-05/0.8462, allocations: 20 kB / 0.5757 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009647/0.8472, allocations: 1.762 MB / 0.5774 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.8472, allocations: 0 / 0.5774 GB, free: 115.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.8493, allocations: 2.029 MB / 0.5794 GB, free: 113.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/0.8496, allocations: 258.4 kB / 0.5796 GB, free: 112.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001727/0.8497, allocations: 47.53 kB / 0.5797 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000474/0.8502, allocations: 20 kB / 0.5797 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.335e-05/0.8503, allocations: 64.42 kB / 0.5798 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.8504, allocations: 27.98 kB / 0.5798 GB, free: 112.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008515/0.8512, allocations: 0.8342 MB / 0.5806 GB, free: 111.8 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8512, allocations: 0 / 0.5806 GB, free: 111.8 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003445/0.8547, allocations: 1.277 MB / 0.5819 GB, free: 110.6 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.004171/0.8589, allocations: 1.262 MB / 0.5831 GB, free: 109.6 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003092/0.862, allocations: 1.301 MB / 0.5844 GB, free: 108.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.862, allocations: 7.938 kB / 0.5844 GB, free: 108.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/0.8634, allocations: 0.9108 MB / 0.5853 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/0.8667, allocations: 0.7358 MB / 0.586 GB, free: 106.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003606/0.8704, allocations: 3.115 MB / 0.589 GB, free: 103.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005354/0.8709, allocations: 1.312 MB / 0.5903 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002738/0.8712, allocations: 123.4 kB / 0.5904 GB, free: 102.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.8712, allocations: 0 / 0.5904 GB, free: 102.1 MB / 446.1 MB Notification: Performance of Templates: time 0.05324/0.9245, allocations: 51.09 MB / 0.6403 GB, free: 51.02 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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_4.1.0-beta.om_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