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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001719/0.00172, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.00195/0.001949, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.764/2.764, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001864/0.001864, allocations: 51.94 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1617/0.1636, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.4861/0.6497, allocations: 62.84 MB / 390.2 MB, free: 9.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04674/0.6966, allocations: 22.46 MB / 412.7 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.7003, allocations: 28.31 kB / 412.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004442/0.7049, allocations: 0.735 MB / 413.4 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03462/0.7396, allocations: 5.788 MB / 419.2 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01999/0.7596, allocations: 3.444 MB / 422.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02823/0.7879, allocations: 9.038 MB / 431.7 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002134/0.7901, allocations: 0.6955 MB / 432.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003772/0.7939, allocations: 1.039 MB / 433.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002454/0.7964, allocations: 0.8324 MB / 434.3 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003216/0.7967, allocations: 92 kB / 434.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02616/0.8229, allocations: 7.497 MB / 441.9 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008751/0.8238, allocations: 282.8 kB / 442.1 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002092/0.826, allocations: 0.7076 MB / 442.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02982/0.8558, allocations: 5.733 MB / 448.6 MB, free: 13.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.554e-05/0.8559, allocations: 7.984 kB / 448.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.286e-06/0.8559, allocations: 0 / 448.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.845e-05/0.856, allocations: 0 / 448.6 MB, free: 13.73 MB / 350.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.01117/0.8671, allocations: 2.459 MB / 451 MB, free: 11.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.238e-05/0.8672, allocations: 8.031 kB / 451 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002791/0.8675, allocations: 160.5 kB / 451.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00716/0.8747, allocations: 0.6549 MB / 451.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003211/0.8779, allocations: 0.9966 MB / 452.9 MB, free: 9.355 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.8781, allocations: 78.33 kB / 452.9 MB, free: 9.277 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002316/0.8783, allocations: 99.94 kB / 453 MB, free: 9.18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005396/0.8837, allocations: 1.679 MB / 454.7 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.053e-05/0.8838, allocations: 7.938 kB / 454.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000166/0.884, allocations: 44 kB / 454.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.694e-05/0.884, allocations: 28 kB / 454.8 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004894/0.8889, allocations: 1.463 MB / 456.2 MB, free: 5.812 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0149/0.9039, allocations: 8.42 MB / 464.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004785/0.9087, allocations: 1.698 MB / 466.4 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009214/0.9096, allocations: 399.6 kB / 466.8 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1807/1.09, allocations: 63.38 MB / 0.5177 GB, free: 3.629 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001015/1.091, allocations: 47.12 kB / 0.5178 GB, free: 3.574 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 6.012e-06/1.091, allocations: 0 / 0.5178 GB, free: 3.574 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.009315/1.1, allocations: 1.994 MB / 0.5197 GB, free: 1.555 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/1.1, allocations: 200.4 kB / 0.5199 GB, free: 1.316 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/1.102, allocations: 0.9645 MB / 0.5208 GB, free: 344 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001371/1.102, allocations: 37.7 kB / 0.5209 GB, free: 300 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006647/1.103, allocations: 0.5688 MB / 0.5214 GB, free: 15.71 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000404/1.104, allocations: 272.1 kB / 0.5217 GB, free: 15.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00055/1.104, allocations: 238.6 kB / 0.5219 GB, free: 15.21 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/1.104, allocations: 349.9 kB / 0.5222 GB, free: 14.86 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008089/1.105, allocations: 302.5 kB / 0.5225 GB, free: 14.57 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/1.106, allocations: 0.7415 MB / 0.5233 GB, free: 13.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/1.109, allocations: 1.094 MB / 0.5243 GB, free: 12.33 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.728e-05/1.109, allocations: 4 kB / 0.5243 GB, free: 12.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.003559/1.112, allocations: 1.249 MB / 0.5255 GB, free: 11.06 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.195e-05/1.112, allocations: 12 kB / 0.5256 GB, free: 11.05 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.271e-05/1.112, allocations: 19.98 kB / 0.5256 GB, free: 11.03 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004427/1.117, allocations: 0.531 MB / 0.5261 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001602/1.118, allocations: 287.5 kB / 0.5264 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/1.12, allocations: 1.372 MB / 0.5277 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/1.122, allocations: 134.6 kB / 0.5278 GB, free: 8.664 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002177/1.122, allocations: 63.98 kB / 0.5279 GB, free: 8.602 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.0008471/1.123, allocations: 296.2 kB / 0.5282 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005969/1.123, allocations: 130.4 kB / 0.5283 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007594/1.131, allocations: 4.503 MB / 0.5327 GB, free: 3.664 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.692e-05/1.131, allocations: 39.94 kB / 0.5327 GB, free: 3.625 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.188e-05/1.131, allocations: 4 kB / 0.5327 GB, free: 3.621 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-05/1.131, allocations: 3.984 kB / 0.5327 GB, free: 3.617 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2642/1.395, allocations: 4.95 MB / 0.5376 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/1.395, allocations: 2.25 kB / 0.5376 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001278/1.397, allocations: 171.4 kB / 0.5377 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002568/1.399, allocations: 0.6781 MB / 0.5384 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001605/1.399, allocations: 24.34 kB / 0.5384 GB, free: 175.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/1.401, allocations: 1.75 MB / 0.5401 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/1.401, allocations: 4.75 kB / 0.5401 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004246/1.405, allocations: 2.022 MB / 0.5421 GB, free: 173.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007489/1.406, allocations: 266.7 kB / 0.5424 GB, free: 173.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003353/1.407, allocations: 46.08 kB / 0.5424 GB, free: 173 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008133/1.407, allocations: 22.89 kB / 0.5424 GB, free: 173 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001917/1.408, allocations: 58.36 kB / 0.5425 GB, free: 173 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/1.408, allocations: 35.06 kB / 0.5425 GB, free: 173 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002051/1.41, allocations: 0.8269 MB / 0.5433 GB, free: 172.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.21e-07/1.41, allocations: 0 / 0.5433 GB, free: 172.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007516/1.417, allocations: 1.275 MB / 0.5446 GB, free: 172.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.01366/1.431, allocations: 3.738 MB / 0.5482 GB, free: 170.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005725/1.437, allocations: 1.304 MB / 0.5495 GB, free: 170.5 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/1.437, allocations: 0 / 0.5495 GB, free: 170.5 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002362/1.439, allocations: 0.9124 MB / 0.5504 GB, free: 170.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005649/1.445, allocations: 0.7313 MB / 0.5511 GB, free: 169.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/1.468, allocations: 11.95 MB / 0.5628 GB, free: 161.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000884/1.469, allocations: 1.316 MB / 0.5641 GB, free: 160.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002256/1.471, allocations: 0.6317 MB / 0.5647 GB, free: 160.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001008/1.473, allocations: 0.6665 MB / 0.5653 GB, free: 159.6 MB / 446.1 MB Notification: Performance of SimCode: time 2.224e-06/1.473, allocations: 0 / 0.5653 GB, free: 159.6 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.166/1.639, allocations: 72.49 MB / 0.6361 GB, free: 87.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 23.66/25.3, allocations: 12.02 kB / 0.6361 GB, free: 87.07 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 Modelica_3_2_3_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.csv","/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) Reference file matches