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.001334/0.001334, allocations: 109 kB / 17.06 MB, free: 6.016 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.001267/0.001267, allocations: 192 kB / 18 MB, free: 5.102 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.454/1.454, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 47.94 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2664/0.2681, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06776/0.3359, allocations: 62.86 MB / 463.1 MB, free: 9.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02983/0.3658, allocations: 22.45 MB / 485.5 MB, free: 3.223 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.3675, allocations: 31.75 kB / 485.6 MB, free: 3.191 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.37, allocations: 0.7335 MB / 486.3 MB, free: 2.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01848/0.3885, allocations: 5.798 MB / 492.1 MB, free: 12.65 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00942/0.3979, allocations: 3.45 MB / 495.5 MB, free: 9.199 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01867/0.4166, allocations: 9.051 MB / 0.4928 GB, free: 32 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.4181, allocations: 0.6922 MB / 0.4934 GB, free: 15.33 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.4204, allocations: 1.055 MB / 0.4945 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001368/0.4218, allocations: 0.8246 MB / 0.4953 GB, free: 13.45 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001911/0.422, allocations: 92 kB / 0.4954 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01547/0.4374, allocations: 7.664 MB / 0.5029 GB, free: 5.684 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005317/0.438, allocations: 290.8 kB / 0.5031 GB, free: 5.398 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001238/0.4393, allocations: 0.7076 MB / 0.5038 GB, free: 4.688 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01462/0.4539, allocations: 5.774 MB / 0.5095 GB, free: 14.9 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.4539, allocations: 0 / 0.5095 GB, free: 14.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.4539, allocations: 3.938 kB / 0.5095 GB, free: 14.89 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.105e-05/0.454, allocations: 0 / 0.5095 GB, free: 14.89 MB / 446.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.006555/0.4605, allocations: 2.535 MB / 0.5119 GB, free: 12.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.4606, allocations: 12.03 kB / 0.512 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001997/0.4608, allocations: 156.5 kB / 0.5121 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004685/0.4655, allocations: 0.6595 MB / 0.5127 GB, free: 11.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001952/0.4675, allocations: 1.048 MB / 0.5138 GB, free: 10.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.611e-05/0.4676, allocations: 78.14 kB / 0.5138 GB, free: 10.29 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.4677, allocations: 96 kB / 0.5139 GB, free: 10.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003667/0.4714, allocations: 1.671 MB / 0.5156 GB, free: 8.375 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.927e-05/0.4714, allocations: 7.938 kB / 0.5156 GB, free: 8.367 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.4715, allocations: 51.94 kB / 0.5156 GB, free: 8.316 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.4716, allocations: 28 kB / 0.5157 GB, free: 8.289 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003412/0.475, allocations: 1.471 MB / 0.5171 GB, free: 6.82 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/0.4851, allocations: 8.398 MB / 0.5253 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003527/0.4887, allocations: 1.697 MB / 0.5269 GB, free: 11.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001077/0.4898, allocations: 408.8 kB / 0.5273 GB, free: 11.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3356/0.8254, allocations: 63.67 MB / 0.5895 GB, free: 88.11 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.305e-05/0.8255, allocations: 43.12 kB / 0.5896 GB, free: 88.06 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 3.366e-06/0.8255, allocations: 0 / 0.5896 GB, free: 88.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005599/0.8311, allocations: 2.001 MB / 0.5915 GB, free: 86.11 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.658e-05/0.8312, allocations: 188.5 kB / 0.5917 GB, free: 85.89 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001076/0.8323, allocations: 0.9669 MB / 0.5926 GB, free: 84.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.456e-05/0.8324, allocations: 41.7 kB / 0.5927 GB, free: 84.88 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003066/0.8327, allocations: 0.5807 MB / 0.5932 GB, free: 84.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002233/0.8329, allocations: 289.6 kB / 0.5935 GB, free: 84.14 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/0.8332, allocations: 238.8 kB / 0.5937 GB, free: 83.89 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.875e-05/0.8332, allocations: 349.9 kB / 0.5941 GB, free: 83.55 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004356/0.8337, allocations: 302.5 kB / 0.5944 GB, free: 83.25 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005996/0.8343, allocations: 0.746 MB / 0.5951 GB, free: 82.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.8354, allocations: 1.093 MB / 0.5962 GB, free: 81.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.604e-06/0.8354, allocations: 7.938 kB / 0.5962 GB, free: 81.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001751/0.8372, allocations: 1.249 MB / 0.5974 GB, free: 79.76 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.8372, allocations: 13 kB / 0.5974 GB, free: 79.75 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.8372, allocations: 12 kB / 0.5974 GB, free: 79.73 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003129/0.8403, allocations: 0.5347 MB / 0.5979 GB, free: 79.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001141/0.8415, allocations: 271.6 kB / 0.5982 GB, free: 78.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.8426, allocations: 1.379 MB / 0.5995 GB, free: 77.51 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001205/0.8438, allocations: 133.1 kB / 0.5997 GB, free: 77.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000129/0.8439, allocations: 64.03 kB / 0.5997 GB, free: 77.34 MB / 462.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.0005147/0.8445, allocations: 294.7 kB / 0.6 GB, free: 77.05 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002755/0.8447, allocations: 135.1 kB / 0.6001 GB, free: 76.92 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003909/0.8487, allocations: 4.495 MB / 0.6045 GB, free: 72.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.41e-05/0.8487, allocations: 51.77 kB / 0.6046 GB, free: 72.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.8487, allocations: 3.844 kB / 0.6046 GB, free: 72.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.161e-05/0.8487, allocations: 3.984 kB / 0.6046 GB, free: 72.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004492/0.8532, allocations: 4.943 MB / 0.6094 GB, free: 67.36 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.035e-06/0.8533, allocations: 4 kB / 0.6094 GB, free: 67.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000721/0.854, allocations: 167.7 kB / 0.6096 GB, free: 67.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.8553, allocations: 0.6723 MB / 0.6102 GB, free: 66.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.407e-05/0.8553, allocations: 23.98 kB / 0.6103 GB, free: 66.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/0.8564, allocations: 1.751 MB / 0.612 GB, free: 64.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8564, allocations: 96 / 0.612 GB, free: 64.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001928/0.8583, allocations: 2.043 MB / 0.614 GB, free: 62.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003057/0.8586, allocations: 278.8 kB / 0.6142 GB, free: 62.34 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001654/0.8588, allocations: 41.48 kB / 0.6143 GB, free: 62.31 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.8593, allocations: 20 kB / 0.6143 GB, free: 62.29 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.446e-05/0.8594, allocations: 52.48 kB / 0.6143 GB, free: 62.24 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.844e-05/0.8594, allocations: 39.98 kB / 0.6144 GB, free: 62.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008602/0.8603, allocations: 0.8303 MB / 0.6152 GB, free: 61.37 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8603, allocations: 0 / 0.6152 GB, free: 61.37 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003203/0.8635, allocations: 1.297 MB / 0.6164 GB, free: 60.1 MB / 462.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.006575/0.8701, allocations: 3.75 MB / 0.6201 GB, free: 56.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002453/0.8726, allocations: 1.256 MB / 0.6213 GB, free: 55.15 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.8726, allocations: 7.938 kB / 0.6213 GB, free: 55.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/0.8739, allocations: 0.9066 MB / 0.6222 GB, free: 54.24 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003305/0.8772, allocations: 0.7311 MB / 0.6229 GB, free: 53.54 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/0.892, allocations: 11.14 MB / 0.6338 GB, free: 41.89 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007598/0.8928, allocations: 1.32 MB / 0.6351 GB, free: 40.53 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001354/0.8942, allocations: 0.6342 MB / 0.6357 GB, free: 39.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006149/0.8948, allocations: 0.6633 MB / 0.6364 GB, free: 39.24 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.8948, allocations: 0 / 0.6364 GB, free: 39.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1211/1.016, allocations: 72.87 MB / 0.7075 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.85/17.87, allocations: 11.67 kB / 0.7076 GB, free: 14.64 MB / 0.4981 GB (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