Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00162/0.00162, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002027/0.002027, allocations: 204.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 60.12 kB / 307 MB, free: 0.582 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09746, allocations: 50.54 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2238/0.3213, allocations: 63.03 MB / 420.6 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02856/0.3499, allocations: 22.45 MB / 443.1 MB, free: 5.828 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/0.3518, allocations: 31.75 kB / 443.1 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002466/0.3543, allocations: 0.7374 MB / 443.8 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01762/0.372, allocations: 5.793 MB / 449.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0105/0.3825, allocations: 3.468 MB / 453.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01898/0.4015, allocations: 9.044 MB / 462.1 MB, free: 2.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.403, allocations: 0.6913 MB / 462.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002126/0.4051, allocations: 1.043 MB / 463.9 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00123/0.4064, allocations: 0.8246 MB / 464.7 MB, free: 68 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000265/0.4066, allocations: 92.05 kB / 464.8 MB, free: 15.97 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01568/0.4223, allocations: 7.508 MB / 472.3 MB, free: 8.461 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006727/0.423, allocations: 294.9 kB / 472.6 MB, free: 8.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001561/0.4246, allocations: 0.7192 MB / 473.3 MB, free: 7.449 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01369/0.4383, allocations: 5.745 MB / 479 MB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.067e-06/0.4384, allocations: 0 / 479 MB, free: 1.691 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.4384, allocations: 0 / 479 MB, free: 1.691 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.518e-05/0.4385, allocations: 0 / 479 MB, free: 1.691 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.007486/0.446, allocations: 2.475 MB / 481.5 MB, free: 15.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.248e-05/0.4461, allocations: 8.031 kB / 481.5 MB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004646/0.4465, allocations: 160.5 kB / 481.7 MB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005213/0.4518, allocations: 0.6548 MB / 482.3 MB, free: 14.33 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002001/0.4538, allocations: 0.9851 MB / 483.3 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.873e-05/0.4539, allocations: 78.33 kB / 483.4 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003205/0.4543, allocations: 103.9 kB / 483.5 MB, free: 13.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003955/0.4582, allocations: 1.667 MB / 485.2 MB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.887e-05/0.4583, allocations: 7.938 kB / 485.2 MB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.4584, allocations: 48 kB / 485.2 MB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.546e-05/0.4585, allocations: 28 kB / 485.2 MB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003558/0.462, allocations: 1.467 MB / 486.7 MB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01023/0.4723, allocations: 8.431 MB / 495.1 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003128/0.4754, allocations: 1.697 MB / 496.8 MB, free: 14.85 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006063/0.4761, allocations: 407.1 kB / 497.2 MB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3058/0.7818, allocations: 70.37 MB / 0.5543 GB, free: 134.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/0.7819, allocations: 43.12 kB / 0.5543 GB, free: 134.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 2.505e-06/0.7819, allocations: 1.406 kB / 0.5543 GB, free: 134.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.005438/0.7874, allocations: 1.995 MB / 0.5563 GB, free: 133.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.13e-05/0.7874, allocations: 188.3 kB / 0.5565 GB, free: 133.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001042/0.7885, allocations: 0.9663 MB / 0.5574 GB, free: 132.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.501e-05/0.7886, allocations: 42.14 kB / 0.5575 GB, free: 132.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002897/0.7889, allocations: 0.5662 MB / 0.558 GB, free: 132.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.789, allocations: 279.4 kB / 0.5583 GB, free: 132 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002531/0.7893, allocations: 232.9 kB / 0.5585 GB, free: 131.8 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.7893, allocations: 354.5 kB / 0.5588 GB, free: 131.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000448/0.7898, allocations: 299.4 kB / 0.5591 GB, free: 131.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006098/0.7904, allocations: 0.7458 MB / 0.5598 GB, free: 130.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.7916, allocations: 1.096 MB / 0.5609 GB, free: 129.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.863e-06/0.7916, allocations: 7.766 kB / 0.5609 GB, free: 129.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001831/0.7934, allocations: 1.246 MB / 0.5621 GB, free: 129.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/0.7935, allocations: 16.16 kB / 0.5622 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.7935, allocations: 12.69 kB / 0.5622 GB, free: 129.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003213/0.7967, allocations: 0.5324 MB / 0.5627 GB, free: 128.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009955/0.7977, allocations: 276.2 kB / 0.563 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007588/0.7985, allocations: 1.367 MB / 0.5643 GB, free: 127.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007271/0.7992, allocations: 132.4 kB / 0.5644 GB, free: 127.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.444e-05/0.7993, allocations: 70.61 kB / 0.5645 GB, free: 127.4 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.0003807/0.7997, allocations: 294.2 kB / 0.5648 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.8, allocations: 128.8 kB / 0.5649 GB, free: 127.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.8036, allocations: 4.494 MB / 0.5693 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.704e-05/0.8036, allocations: 51.11 kB / 0.5693 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.604e-06/0.8036, allocations: 4.812 kB / 0.5693 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.8037, allocations: 3.984 kB / 0.5693 GB, free: 123.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003953/0.8076, allocations: 4.951 MB / 0.5742 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.8076, allocations: 4 kB / 0.5742 GB, free: 118.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007288/0.8084, allocations: 169.9 kB / 0.5743 GB, free: 118.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.8097, allocations: 0.6762 MB / 0.575 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.916e-05/0.8097, allocations: 20 kB / 0.575 GB, free: 117.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000962/0.8107, allocations: 1.755 MB / 0.5767 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.8107, allocations: 96 / 0.5767 GB, free: 115.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.8127, allocations: 2.033 MB / 0.5787 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.813, allocations: 262.4 kB / 0.579 GB, free: 113.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001682/0.8131, allocations: 43.53 kB / 0.579 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004711/0.8136, allocations: 20 kB / 0.579 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.023e-05/0.8137, allocations: 56.42 kB / 0.5791 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.632e-05/0.8138, allocations: 39.98 kB / 0.5791 GB, free: 113.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008193/0.8146, allocations: 0.8303 MB / 0.5799 GB, free: 112.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8146, allocations: 0 / 0.5799 GB, free: 112.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003362/0.818, allocations: 1.283 MB / 0.5812 GB, free: 111.1 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.006181/0.8242, allocations: 3.743 MB / 0.5848 GB, free: 107.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003012/0.8272, allocations: 1.298 MB / 0.5861 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.8272, allocations: 4 kB / 0.5861 GB, free: 106.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001333/0.8285, allocations: 0.91 MB / 0.587 GB, free: 105.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003259/0.8318, allocations: 0.7345 MB / 0.5877 GB, free: 104.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01277/0.8446, allocations: 11.93 MB / 0.5994 GB, free: 92.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004991/0.8451, allocations: 1.316 MB / 0.6006 GB, free: 90.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001186/0.8463, allocations: 0.6291 MB / 0.6013 GB, free: 90.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006603/0.847, allocations: 0.6672 MB / 0.6019 GB, free: 89.38 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.847, allocations: 4 kB / 0.6019 GB, free: 89.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09733/0.9443, allocations: 72.58 MB / 0.6728 GB, free: 17.04 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.28/15.23, allocations: 11.92 kB / 0.6728 GB, free: 17.03 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.csv","/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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches