Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 109.4 kB / 18.4 MB, free: 4.703 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 193.2 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 47.94 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0871/0.08838, allocations: 46.61 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2496/0.338, allocations: 62.85 MB / 438.7 MB, free: 476 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02793/0.366, allocations: 22.46 MB / 461.1 MB, free: 10.22 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.3682, allocations: 31.75 kB / 461.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002514/0.3708, allocations: 0.7257 MB / 461.9 MB, free: 9.461 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01883/0.3897, allocations: 5.775 MB / 467.6 MB, free: 3.668 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01013/0.3998, allocations: 3.455 MB / 471.1 MB, free: 204 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01648/0.4163, allocations: 9.044 MB / 480.1 MB, free: 7.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.4178, allocations: 0.6917 MB / 480.8 MB, free: 6.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.4201, allocations: 1.055 MB / 481.9 MB, free: 5.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.4215, allocations: 0.8362 MB / 482.7 MB, free: 4.445 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.4217, allocations: 92 kB / 482.8 MB, free: 4.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01671/0.4384, allocations: 7.66 MB / 490.5 MB, free: 12.69 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005417/0.439, allocations: 279 kB / 490.7 MB, free: 12.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001138/0.4402, allocations: 0.7192 MB / 491.5 MB, free: 11.69 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01511/0.4553, allocations: 5.749 MB / 497.2 MB, free: 5.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.036e-06/0.4554, allocations: 0 / 497.2 MB, free: 5.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4554, allocations: 0 / 497.2 MB, free: 5.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.801e-05/0.4554, allocations: 0 / 497.2 MB, free: 5.93 MB / 414.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.00742/0.4628, allocations: 2.467 MB / 499.7 MB, free: 3.406 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.4629, allocations: 8.031 kB / 499.7 MB, free: 3.398 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004821/0.4677, allocations: 0.6588 MB / 0.4886 GB, free: 2.738 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002203/0.47, allocations: 1.036 MB / 0.4896 GB, free: 1.656 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.866e-05/0.47, allocations: 74.58 kB / 0.4897 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001346/0.4702, allocations: 103.9 kB / 0.4898 GB, free: 1.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003708/0.4739, allocations: 1.671 MB / 0.4914 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.364e-05/0.4739, allocations: 0.875 kB / 0.4914 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/0.4741, allocations: 52 kB / 0.4915 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.169e-05/0.4741, allocations: 24 kB / 0.4915 GB, free: 15.58 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003378/0.4775, allocations: 1.467 MB / 0.4929 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01037/0.4879, allocations: 8.389 MB / 0.5011 GB, free: 5.109 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00356/0.4915, allocations: 1.704 MB / 0.5028 GB, free: 3.242 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006832/0.4922, allocations: 403.6 kB / 0.5032 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3319/0.8241, allocations: 63.65 MB / 0.5653 GB, free: 150.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.362e-05/0.8242, allocations: 42.31 kB / 0.5654 GB, free: 150.4 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 2.976e-06/0.8242, allocations: 0 / 0.5654 GB, free: 150.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006222/0.8305, allocations: 1.996 MB / 0.5673 GB, free: 150.3 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/0.8306, allocations: 191.2 kB / 0.5675 GB, free: 150.1 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.8318, allocations: 0.9668 MB / 0.5685 GB, free: 149.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 6.487e-05/0.8319, allocations: 37.83 kB / 0.5685 GB, free: 149.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003592/0.8323, allocations: 0.5735 MB / 0.569 GB, free: 149.3 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001965/0.8325, allocations: 268.8 kB / 0.5693 GB, free: 149.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002869/0.8328, allocations: 235.4 kB / 0.5695 GB, free: 149 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.125e-05/0.8329, allocations: 351.7 kB / 0.5699 GB, free: 148.6 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005126/0.8334, allocations: 309.8 kB / 0.5702 GB, free: 148.5 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000723/0.8341, allocations: 0.7421 MB / 0.5709 GB, free: 147.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001384/0.8355, allocations: 1.101 MB / 0.572 GB, free: 146.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/0.8355, allocations: 4.625 kB / 0.572 GB, free: 146.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002198/0.8377, allocations: 1.245 MB / 0.5732 GB, free: 146.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.8378, allocations: 10.5 kB / 0.5732 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.173e-05/0.8378, allocations: 13.66 kB / 0.5732 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003312/0.8411, allocations: 0.5256 MB / 0.5737 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.8422, allocations: 288.4 kB / 0.574 GB, free: 146.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000834/0.843, allocations: 1.371 MB / 0.5753 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008044/0.8438, allocations: 140.8 kB / 0.5755 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.597e-05/0.8439, allocations: 70.06 kB / 0.5755 GB, free: 145 MB / 478.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.0004789/0.8444, allocations: 293 kB / 0.5758 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.8447, allocations: 120.5 kB / 0.5759 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004316/0.849, allocations: 4.484 MB / 0.5803 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.397e-05/0.849, allocations: 48.92 kB / 0.5804 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.849, allocations: 5.281 kB / 0.5804 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.8491, allocations: 5.359 kB / 0.5804 GB, free: 142.4 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004456/0.8535, allocations: 4.938 MB / 0.5852 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.889e-06/0.8536, allocations: 8.828 kB / 0.5852 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007609/0.8543, allocations: 162.3 kB / 0.5853 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001359/0.8557, allocations: 0.6685 MB / 0.586 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.806e-05/0.8558, allocations: 23.61 kB / 0.586 GB, free: 138.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001013/0.8568, allocations: 1.748 MB / 0.5877 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.8568, allocations: 5.156 kB / 0.5877 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002053/0.8588, allocations: 2.033 MB / 0.5897 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002622/0.8591, allocations: 263.4 kB / 0.59 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.8593, allocations: 35.69 kB / 0.59 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004839/0.8598, allocations: 23.98 kB / 0.59 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.316e-05/0.8599, allocations: 64.89 kB / 0.5901 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.816e-05/0.8599, allocations: 40.58 kB / 0.5901 GB, free: 135.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008091/0.8607, allocations: 0.8264 MB / 0.5909 GB, free: 134.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.12e-07/0.8607, allocations: 0 / 0.5909 GB, free: 134.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003094/0.8638, allocations: 1.28 MB / 0.5922 GB, free: 133.5 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.003822/0.8677, allocations: 1.251 MB / 0.5934 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002277/0.87, allocations: 1.255 MB / 0.5946 GB, free: 131.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.87, allocations: 4 kB / 0.5946 GB, free: 131.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001421/0.8714, allocations: 0.9176 MB / 0.5955 GB, free: 130.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002973/0.8744, allocations: 0.7306 MB / 0.5962 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003569/0.878, allocations: 3.074 MB / 0.5992 GB, free: 126.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005169/0.8785, allocations: 1.331 MB / 0.6005 GB, free: 125.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002735/0.8788, allocations: 119.4 kB / 0.6007 GB, free: 125 MB / 478.1 MB Notification: Performance of SimCode: time 8.31e-07/0.8788, allocations: 0 / 0.6007 GB, free: 125 MB / 478.1 MB Notification: Performance of Templates: time 0.05372/0.9325, allocations: 51.29 MB / 0.6508 GB, free: 73.6 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Fluid/Examples/Explanatory/MomentumBalanceFittings/MomentumBalanceFittings.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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