Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.001305/0.001305, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001323/0.001323, allocations: 191.4 kB / 18.51 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001071/0.001071, allocations: 46.89 kB / 301.3 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.106, allocations: 49.44 MB / 350.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2614/0.3675, allocations: 62.85 MB / 413.6 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02643/0.3939, allocations: 22.45 MB / 436 MB, free: 15.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.3955, allocations: 35.75 kB / 436.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002164/0.3977, allocations: 0.7374 MB / 436.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0165/0.4143, allocations: 5.793 MB / 442.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009581/0.4238, allocations: 3.46 MB / 446 MB, free: 5.324 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01802/0.4419, allocations: 9.04 MB / 455.1 MB, free: 12.17 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.4434, allocations: 0.6977 MB / 455.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002298/0.4458, allocations: 1.043 MB / 456.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001112/0.4469, allocations: 0.8246 MB / 457.7 MB, free: 9.586 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001544/0.4471, allocations: 92 kB / 457.7 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01467/0.4617, allocations: 7.501 MB / 465.2 MB, free: 1.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00046/0.4622, allocations: 286.8 kB / 465.5 MB, free: 1.707 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001091/0.4633, allocations: 0.7115 MB / 466.2 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0132/0.4765, allocations: 5.741 MB / 472 MB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.808e-06/0.4766, allocations: 4 kB / 472 MB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4766, allocations: 0 / 472 MB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.353e-05/0.4766, allocations: 0 / 472 MB, free: 11.23 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.006807/0.4835, allocations: 2.459 MB / 474.4 MB, free: 8.719 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.4835, allocations: 12.03 kB / 474.5 MB, free: 8.707 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004584/0.4881, allocations: 0.6549 MB / 475.1 MB, free: 8.051 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001719/0.4899, allocations: 0.9966 MB / 476.1 MB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.854e-05/0.4899, allocations: 74.58 kB / 476.2 MB, free: 6.938 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.4901, allocations: 107.9 kB / 476.3 MB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003401/0.4935, allocations: 1.674 MB / 478 MB, free: 5.008 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.656e-05/0.4935, allocations: 7.938 kB / 478 MB, free: 5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.4936, allocations: 48 kB / 478 MB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.325e-05/0.4937, allocations: 28 kB / 478 MB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003241/0.4969, allocations: 1.459 MB / 479.5 MB, free: 3.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009198/0.5061, allocations: 8.427 MB / 487.9 MB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002959/0.5091, allocations: 1.699 MB / 489.6 MB, free: 8.566 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005894/0.5097, allocations: 395.6 kB / 490 MB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3466/0.8563, allocations: 63.39 MB / 0.5404 GB, free: 152.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.8564, allocations: 45.61 kB / 0.5405 GB, free: 152.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.825e-06/0.8564, allocations: 0 / 0.5405 GB, free: 152.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006092/0.8625, allocations: 1.992 MB / 0.5424 GB, free: 152.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.597e-05/0.8626, allocations: 196.1 kB / 0.5426 GB, free: 152.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001271/0.8639, allocations: 0.9619 MB / 0.5435 GB, free: 151.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.589e-05/0.8639, allocations: 40.02 kB / 0.5436 GB, free: 151.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000351/0.8643, allocations: 0.5712 MB / 0.5441 GB, free: 151.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.8645, allocations: 276.9 kB / 0.5444 GB, free: 151.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003486/0.8648, allocations: 238.7 kB / 0.5446 GB, free: 151.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.083e-05/0.8649, allocations: 346.4 kB / 0.545 GB, free: 150.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005144/0.8655, allocations: 306.6 kB / 0.5453 GB, free: 150.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008111/0.8663, allocations: 0.7487 MB / 0.546 GB, free: 150 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.8676, allocations: 1.094 MB / 0.5471 GB, free: 149.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.8677, allocations: 3.531 kB / 0.5471 GB, free: 149.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002193/0.8698, allocations: 1.245 MB / 0.5483 GB, free: 148.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.551e-05/0.8699, allocations: 11.5 kB / 0.5483 GB, free: 148.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.194e-05/0.8699, allocations: 14.34 kB / 0.5483 GB, free: 148.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003205/0.8731, allocations: 0.5253 MB / 0.5488 GB, free: 148.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.8742, allocations: 279.2 kB / 0.5491 GB, free: 148.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008743/0.875, allocations: 1.373 MB / 0.5504 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008687/0.8759, allocations: 129.4 kB / 0.5505 GB, free: 147.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.492e-05/0.876, allocations: 69.97 kB / 0.5506 GB, free: 147.1 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.0004471/0.8765, allocations: 299.1 kB / 0.5509 GB, free: 146.9 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002149/0.8767, allocations: 119.6 kB / 0.551 GB, free: 146.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00374/0.8805, allocations: 4.509 MB / 0.5554 GB, free: 144.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.008e-05/0.8805, allocations: 47.77 kB / 0.5555 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.312e-06/0.8805, allocations: 0 / 0.5555 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.8805, allocations: 11.92 kB / 0.5555 GB, free: 144.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004111/0.8846, allocations: 4.948 MB / 0.5603 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.555e-06/0.8847, allocations: 0 / 0.5603 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007504/0.8854, allocations: 167.2 kB / 0.5605 GB, free: 141 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/0.8867, allocations: 0.6744 MB / 0.5611 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.952e-05/0.8868, allocations: 21.44 kB / 0.5611 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001007/0.8878, allocations: 1.762 MB / 0.5629 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.8878, allocations: 0 / 0.5629 GB, free: 139 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001918/0.8898, allocations: 2.023 MB / 0.5648 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002602/0.89, allocations: 270.3 kB / 0.5651 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.8902, allocations: 43.62 kB / 0.5651 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/0.8907, allocations: 16 kB / 0.5651 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.322e-05/0.8907, allocations: 60.48 kB / 0.5652 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.8908, allocations: 35.92 kB / 0.5652 GB, free: 136.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008263/0.8916, allocations: 0.8303 MB / 0.5661 GB, free: 135.6 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8916, allocations: 0 / 0.5661 GB, free: 135.6 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003405/0.895, allocations: 1.283 MB / 0.5673 GB, free: 134.4 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.00396/0.899, allocations: 1.263 MB / 0.5685 GB, free: 133.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002941/0.902, allocations: 1.293 MB / 0.5698 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.237e-06/0.902, allocations: 3.938 kB / 0.5698 GB, free: 132.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.9034, allocations: 0.912 MB / 0.5707 GB, free: 131.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003201/0.9066, allocations: 0.7217 MB / 0.5714 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00355/0.9102, allocations: 3.113 MB / 0.5744 GB, free: 127.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005265/0.9107, allocations: 1.32 MB / 0.5757 GB, free: 126 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002571/0.911, allocations: 123.4 kB / 0.5758 GB, free: 125.9 MB / 446.1 MB Notification: Performance of SimCode: time 5.62e-07/0.911, allocations: 0 / 0.5758 GB, free: 125.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05355/0.9645, allocations: 51 MB / 0.6256 GB, free: 74.95 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_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