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: "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_0_0_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.001713/0.001713, allocations: 104.8 kB / 16.92 MB, free: 6.145 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.002144/0.002144, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.161/2.161, allocations: 222.9 MB / 241.5 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 51.58 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1793/0.181, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.4424/0.6235, allocations: 62.86 MB / 413 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03893/0.6624, allocations: 22.45 MB / 435.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003243/0.6658, allocations: 27.81 kB / 435.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003543/0.6693, allocations: 0.7373 MB / 436.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02751/0.6969, allocations: 5.786 MB / 442 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01881/0.7158, allocations: 3.458 MB / 445.5 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.03341/0.7492, allocations: 9.04 MB / 454.5 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002441/0.7517, allocations: 0.7106 MB / 455.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003812/0.7556, allocations: 1.035 MB / 456.3 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002004/0.7576, allocations: 0.8324 MB / 457.1 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005344/0.7582, allocations: 95.94 kB / 457.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02861/0.7868, allocations: 7.485 MB / 464.7 MB, free: 1.898 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009492/0.7878, allocations: 294.9 kB / 465 MB, free: 1.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002665/0.7905, allocations: 0.7037 MB / 465.7 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02517/0.8157, allocations: 5.745 MB / 471.4 MB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.929e-06/0.8158, allocations: 4 kB / 471.4 MB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.8158, allocations: 0 / 471.4 MB, free: 11.14 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.779e-05/0.8159, allocations: 0 / 471.4 MB, free: 11.14 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.01335/0.8293, allocations: 2.463 MB / 473.9 MB, free: 8.621 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.589e-05/0.8293, allocations: 8.031 kB / 473.9 MB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005416/0.8299, allocations: 160.5 kB / 474 MB, free: 8.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0092/0.8391, allocations: 0.647 MB / 474.7 MB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004256/0.8434, allocations: 0.9967 MB / 475.7 MB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000178/0.8436, allocations: 74.39 kB / 475.8 MB, free: 6.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005684/0.8442, allocations: 103.9 kB / 475.9 MB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007436/0.8517, allocations: 1.674 MB / 477.5 MB, free: 4.762 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.518e-05/0.8518, allocations: 7.938 kB / 477.5 MB, free: 4.754 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003374/0.8522, allocations: 44 kB / 477.6 MB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.62e-05/0.8522, allocations: 28 kB / 477.6 MB, free: 4.684 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005958/0.8582, allocations: 1.467 MB / 479.1 MB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0163/0.8745, allocations: 8.427 MB / 487.5 MB, free: 10.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00568/0.8803, allocations: 1.706 MB / 489.2 MB, free: 8.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.8815, allocations: 410.6 kB / 489.6 MB, free: 7.906 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4701/1.352, allocations: 63.38 MB / 0.54 GB, free: 152.4 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.418e-05/1.352, allocations: 45.58 kB / 0.5401 GB, free: 152.4 MB / 446.1 MB Notification: Performance of pre-optimization done (n=77): time 5.26e-06/1.352, allocations: 0 / 0.5401 GB, free: 152.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=77): time 0.01006/1.362, allocations: 1.998 MB / 0.542 GB, free: 152.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001987/1.362, allocations: 189.1 kB / 0.5422 GB, free: 152 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002604/1.365, allocations: 0.9621 MB / 0.5431 GB, free: 151.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001295/1.365, allocations: 42.58 kB / 0.5432 GB, free: 151.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006622/1.366, allocations: 0.5676 MB / 0.5437 GB, free: 151.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004053/1.366, allocations: 276.5 kB / 0.544 GB, free: 151 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005609/1.367, allocations: 242.8 kB / 0.5442 GB, free: 150.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/1.367, allocations: 349.8 kB / 0.5446 GB, free: 150.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009641/1.368, allocations: 303.3 kB / 0.5449 GB, free: 150.5 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001492/1.369, allocations: 0.7455 MB / 0.5456 GB, free: 149.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002739/1.372, allocations: 1.096 MB / 0.5467 GB, free: 148.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.865e-05/1.372, allocations: 4.75 kB / 0.5467 GB, free: 148.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.004024/1.376, allocations: 1.24 MB / 0.5479 GB, free: 148.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.028e-05/1.376, allocations: 15.56 kB / 0.5479 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.606e-05/1.376, allocations: 17.66 kB / 0.5479 GB, free: 148.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004447/1.381, allocations: 0.5173 MB / 0.5484 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001687/1.382, allocations: 286.5 kB / 0.5487 GB, free: 148.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001441/1.384, allocations: 1.368 MB / 0.55 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001588/1.385, allocations: 126.5 kB / 0.5501 GB, free: 147 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002358/1.386, allocations: 73.97 kB / 0.5502 GB, free: 146.9 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.0008616/1.387, allocations: 297 kB / 0.5505 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005958/1.387, allocations: 119.8 kB / 0.5506 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00639/1.394, allocations: 4.504 MB / 0.555 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.392e-05/1.394, allocations: 47.5 kB / 0.5551 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.726e-05/1.394, allocations: 1.125 kB / 0.5551 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/1.394, allocations: 9 kB / 0.5551 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007067/1.401, allocations: 4.951 MB / 0.5599 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/1.401, allocations: 0 / 0.5599 GB, free: 140.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/1.402, allocations: 167 kB / 0.5601 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002203/1.404, allocations: 0.6742 MB / 0.5607 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/1.404, allocations: 25.2 kB / 0.5607 GB, free: 140.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001503/1.406, allocations: 1.757 MB / 0.5625 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.406, allocations: 4 kB / 0.5625 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003208/1.409, allocations: 2.028 MB / 0.5644 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006669/1.41, allocations: 266.3 kB / 0.5647 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005593/1.41, allocations: 51.28 kB / 0.5647 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/1.411, allocations: 16 kB / 0.5648 GB, free: 136.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/1.412, allocations: 56.42 kB / 0.5648 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.838e-05/1.412, allocations: 35.98 kB / 0.5648 GB, free: 136.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001338/1.413, allocations: 0.8303 MB / 0.5657 GB, free: 135.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.413, allocations: 0 / 0.5657 GB, free: 135.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005414/1.418, allocations: 1.28 MB / 0.5669 GB, free: 134.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.01042/1.429, allocations: 3.731 MB / 0.5705 GB, free: 130.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004831/1.434, allocations: 1.299 MB / 0.5718 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.462e-05/1.434, allocations: 0 / 0.5718 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/1.436, allocations: 0.9191 MB / 0.5727 GB, free: 128.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005939/1.442, allocations: 0.73 MB / 0.5734 GB, free: 127.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02599/1.468, allocations: 11.93 MB / 0.5851 GB, free: 115 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007965/1.469, allocations: 1.309 MB / 0.5864 GB, free: 113.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00196/1.471, allocations: 0.6333 MB / 0.587 GB, free: 113 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000897/1.472, allocations: 0.6672 MB / 0.5876 GB, free: 112.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.333e-06/1.472, allocations: 0 / 0.5876 GB, free: 112.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1672/1.639, allocations: 72.52 MB / 0.6584 GB, free: 40.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 22.62/24.26, allocations: 7.984 kB / 0.6585 GB, free: 40.16 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches