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.001369/0.001369, allocations: 107.8 kB / 17.16 MB, free: 6.328 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.001506/0.001506, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.447/1.447, allocations: 222.9 MB / 241.8 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 47.39 kB / 300.6 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1166/0.1177, allocations: 49.45 MB / 350.1 MB, free: 4.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.295/0.4128, allocations: 64.49 MB / 414.5 MB, free: 2.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03116/0.444, allocations: 23.62 MB / 438.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002351/0.4464, allocations: 35.69 kB / 438.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0024/0.4488, allocations: 0.6449 MB / 438.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01815/0.467, allocations: 4.754 MB / 443.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01061/0.4776, allocations: 3.037 MB / 446.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01941/0.497, allocations: 9.623 MB / 456.3 MB, free: 10.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001599/0.4987, allocations: 0.6192 MB / 456.9 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002431/0.5011, allocations: 0.9531 MB / 457.8 MB, free: 9.379 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001166/0.5023, allocations: 0.844 MB / 458.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001465/0.5025, allocations: 52 kB / 458.7 MB, free: 8.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01664/0.5191, allocations: 7.536 MB / 466.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006736/0.5199, allocations: 246.9 kB / 466.5 MB, free: 0.6953 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001615/0.5215, allocations: 0.6841 MB / 467.2 MB, free: 8 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008429/0.5299, allocations: 3.996 MB / 471.2 MB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.53, allocations: 0 / 471.2 MB, free: 12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.53, allocations: 0 / 471.2 MB, free: 12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.583e-05/0.53, allocations: 0 / 471.2 MB, free: 12 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.006749/0.5368, allocations: 2.463 MB / 473.6 MB, free: 9.484 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5368, allocations: 12.03 kB / 473.7 MB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004848/0.5417, allocations: 0.6587 MB / 474.3 MB, free: 8.812 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001869/0.5436, allocations: 0.9889 MB / 475.3 MB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.147e-05/0.5437, allocations: 74.58 kB / 475.4 MB, free: 7.703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001264/0.5438, allocations: 103.9 kB / 475.5 MB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003655/0.5474, allocations: 1.674 MB / 477.2 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.663e-05/0.5475, allocations: 7.938 kB / 477.2 MB, free: 5.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.5476, allocations: 48 kB / 477.2 MB, free: 5.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-05/0.5476, allocations: 28 kB / 477.2 MB, free: 5.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003311/0.551, allocations: 1.463 MB / 478.7 MB, free: 4.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009997/0.561, allocations: 8.4 MB / 487.1 MB, free: 11.21 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003174/0.5642, allocations: 1.698 MB / 488.8 MB, free: 9.352 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006512/0.5649, allocations: 406.8 kB / 489.2 MB, free: 8.953 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.331/0.8959, allocations: 63.39 MB / 0.5396 GB, free: 153 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.66e-05/0.896, allocations: 47.95 kB / 0.5397 GB, free: 152.9 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.845e-06/0.8961, allocations: 0 / 0.5397 GB, free: 152.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.006479/0.9025, allocations: 1.993 MB / 0.5416 GB, free: 152.8 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.077e-05/0.9026, allocations: 189.6 kB / 0.5418 GB, free: 152.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.9043, allocations: 0.9607 MB / 0.5427 GB, free: 152.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.9044, allocations: 44.36 kB / 0.5428 GB, free: 152.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000406/0.9048, allocations: 0.5698 MB / 0.5433 GB, free: 151.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00025/0.905, allocations: 279.1 kB / 0.5436 GB, free: 151.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003784/0.9054, allocations: 234.7 kB / 0.5438 GB, free: 151.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.914e-05/0.9055, allocations: 350.8 kB / 0.5442 GB, free: 151.2 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006322/0.9062, allocations: 303.1 kB / 0.5445 GB, free: 151.1 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008758/0.9071, allocations: 0.7388 MB / 0.5452 GB, free: 150.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.9086, allocations: 1.097 MB / 0.5462 GB, free: 149.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.881e-05/0.9086, allocations: 4.5 kB / 0.5462 GB, free: 149.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002628/0.9112, allocations: 1.247 MB / 0.5475 GB, free: 149 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.455e-05/0.9113, allocations: 11.28 kB / 0.5475 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.814e-05/0.9113, allocations: 13.22 kB / 0.5475 GB, free: 149 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003462/0.9148, allocations: 0.5194 MB / 0.548 GB, free: 148.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.9159, allocations: 286.2 kB / 0.5483 GB, free: 148.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009337/0.9168, allocations: 1.378 MB / 0.5496 GB, free: 147.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001097/0.9179, allocations: 165.1 kB / 0.5498 GB, free: 147.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001412/0.9181, allocations: 66 kB / 0.5498 GB, free: 147.5 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.0005921/0.9187, allocations: 296.2 kB / 0.5501 GB, free: 147.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004493/0.9191, allocations: 120.5 kB / 0.5502 GB, free: 147.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004405/0.9236, allocations: 4.5 MB / 0.5546 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.4e-05/0.9236, allocations: 47.7 kB / 0.5547 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.9236, allocations: 0 / 0.5547 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.9236, allocations: 7.922 kB / 0.5547 GB, free: 144.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004952/0.9286, allocations: 4.953 MB / 0.5595 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.9286, allocations: 0 / 0.5595 GB, free: 141.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007836/0.9294, allocations: 168.5 kB / 0.5597 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004019/0.9335, allocations: 1.599 MB / 0.5612 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.462e-05/0.9336, allocations: 23.98 kB / 0.5613 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001117/0.9347, allocations: 1.751 MB / 0.563 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.9347, allocations: 96 / 0.563 GB, free: 138.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002238/0.937, allocations: 2.029 MB / 0.565 GB, free: 136.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004731/0.9375, allocations: 266.3 kB / 0.5652 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002963/0.9378, allocations: 39.69 kB / 0.5652 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007917/0.9386, allocations: 63.8 kB / 0.5653 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.177e-05/0.9386, allocations: 62.34 kB / 0.5654 GB, free: 136.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.98e-05/0.9387, allocations: 39.92 kB / 0.5654 GB, free: 136.3 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00106/0.9398, allocations: 0.8303 MB / 0.5662 GB, free: 135.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9398, allocations: 0 / 0.5662 GB, free: 135.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003883/0.9437, allocations: 1.274 MB / 0.5675 GB, free: 134.3 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.005711/0.9494, allocations: 1.258 MB / 0.5687 GB, free: 133.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002726/0.9521, allocations: 1.258 MB / 0.5699 GB, free: 132 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.9522, allocations: 1.562 kB / 0.5699 GB, free: 132 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001643/0.9538, allocations: 0.9107 MB / 0.5708 GB, free: 131.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003795/0.9576, allocations: 0.6945 MB / 0.5715 GB, free: 130.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004631/0.9623, allocations: 3.82 MB / 0.5752 GB, free: 126.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007121/0.963, allocations: 1.312 MB / 0.5765 GB, free: 125.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.9633, allocations: 123.4 kB / 0.5766 GB, free: 125.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9634, allocations: 0 / 0.5766 GB, free: 125.1 MB / 446.1 MB Notification: Performance of Templates: time 0.05681/1.02, allocations: 50.97 MB / 0.6264 GB, free: 74.2 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