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.001694/0.001694, allocations: 113.8 kB / 17.06 MB, free: 6.012 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.002043/0.002043, allocations: 191 kB / 18 MB, free: 5.098 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.319/1.319, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 43.92 kB / 350.8 MB, free: 3.777 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2459, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06535/0.3113, allocations: 62.85 MB / 463.1 MB, free: 9.762 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02788/0.3392, allocations: 22.47 MB / 485.5 MB, free: 3.215 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001643/0.3409, allocations: 27.81 kB / 485.6 MB, free: 3.188 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.3435, allocations: 0.7218 MB / 486.3 MB, free: 2.461 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01638/0.3599, allocations: 5.826 MB / 492.1 MB, free: 12.63 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008931/0.3688, allocations: 3.462 MB / 495.6 MB, free: 9.172 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01891/0.3878, allocations: 9.048 MB / 0.4928 GB, free: 8 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001367/0.3892, allocations: 0.6961 MB / 0.4935 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002212/0.3914, allocations: 1.066 MB / 0.4945 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001384/0.3928, allocations: 0.8402 MB / 0.4953 GB, free: 13.39 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003141/0.3931, allocations: 92 kB / 0.4954 GB, free: 13.3 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01531/0.4085, allocations: 7.657 MB / 0.5029 GB, free: 5.637 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007264/0.4092, allocations: 290.8 kB / 0.5032 GB, free: 5.352 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.4106, allocations: 0.7115 MB / 0.5039 GB, free: 4.637 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.4235, allocations: 5.77 MB / 0.5095 GB, free: 14.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.4236, allocations: 0 / 0.5095 GB, free: 14.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.4236, allocations: 0 / 0.5095 GB, free: 14.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.833e-05/0.4237, allocations: 0 / 0.5095 GB, free: 14.85 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.007367/0.431, allocations: 2.539 MB / 0.512 GB, free: 12.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.4311, allocations: 12.03 kB / 0.512 GB, free: 12.23 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003508/0.4315, allocations: 152.5 kB / 0.5121 GB, free: 12.08 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005136/0.4366, allocations: 0.6673 MB / 0.5128 GB, free: 11.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.4391, allocations: 1.044 MB / 0.5138 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.715e-05/0.4392, allocations: 78.14 kB / 0.5139 GB, free: 10.24 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002319/0.4394, allocations: 100 kB / 0.514 GB, free: 10.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003875/0.4433, allocations: 1.667 MB / 0.5156 GB, free: 8.324 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.155e-05/0.4433, allocations: 7.938 kB / 0.5156 GB, free: 8.316 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001422/0.4435, allocations: 44 kB / 0.5157 GB, free: 8.273 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.293e-05/0.4435, allocations: 32 kB / 0.5157 GB, free: 8.242 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003434/0.447, allocations: 1.463 MB / 0.5171 GB, free: 6.781 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009974/0.457, allocations: 8.405 MB / 0.5253 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003116/0.4601, allocations: 1.707 MB / 0.527 GB, free: 11.89 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006533/0.4608, allocations: 400.5 kB / 0.5274 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3168/0.7776, allocations: 63.65 MB / 0.5895 GB, free: 69.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.7777, allocations: 52.42 kB / 0.5896 GB, free: 69.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.795e-06/0.7777, allocations: 0 / 0.5896 GB, free: 69.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005221/0.783, allocations: 2.006 MB / 0.5916 GB, free: 67.98 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.783, allocations: 191.1 kB / 0.5917 GB, free: 67.75 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009307/0.784, allocations: 0.9619 MB / 0.5927 GB, free: 67.04 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.812e-05/0.784, allocations: 40.64 kB / 0.5927 GB, free: 67 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002701/0.7843, allocations: 0.5799 MB / 0.5933 GB, free: 66.71 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.7845, allocations: 292.4 kB / 0.5936 GB, free: 66.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002512/0.7847, allocations: 242.6 kB / 0.5938 GB, free: 66.34 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.883e-05/0.7848, allocations: 348.8 kB / 0.5941 GB, free: 66.02 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004438/0.7853, allocations: 300.5 kB / 0.5944 GB, free: 65.83 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005979/0.7859, allocations: 0.7413 MB / 0.5951 GB, free: 65.02 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001081/0.7869, allocations: 1.107 MB / 0.5962 GB, free: 64.08 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.787, allocations: 4 kB / 0.5962 GB, free: 64.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001771/0.7887, allocations: 1.25 MB / 0.5974 GB, free: 63.23 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.7888, allocations: 12 kB / 0.5975 GB, free: 63.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.7888, allocations: 12 kB / 0.5975 GB, free: 63.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003062/0.7919, allocations: 0.5218 MB / 0.598 GB, free: 62.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001044/0.7929, allocations: 274.6 kB / 0.5982 GB, free: 62.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008513/0.7938, allocations: 1.378 MB / 0.5996 GB, free: 61.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000797/0.7946, allocations: 143 kB / 0.5997 GB, free: 61.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.355e-05/0.7947, allocations: 63.36 kB / 0.5998 GB, free: 61.04 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.0004174/0.7951, allocations: 300.3 kB / 0.6001 GB, free: 60.84 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002092/0.7953, allocations: 131.2 kB / 0.6002 GB, free: 60.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003506/0.7988, allocations: 4.491 MB / 0.6046 GB, free: 57.13 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.11e-05/0.7989, allocations: 43.94 kB / 0.6046 GB, free: 57.09 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.7989, allocations: 0 / 0.6046 GB, free: 57.09 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.7989, allocations: 3.984 kB / 0.6046 GB, free: 57.08 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004035/0.803, allocations: 4.946 MB / 0.6095 GB, free: 52.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.803, allocations: 3.844 kB / 0.6095 GB, free: 52.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007426/0.8037, allocations: 170.4 kB / 0.6096 GB, free: 51.88 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.805, allocations: 0.6684 MB / 0.6103 GB, free: 51.2 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/0.8051, allocations: 23.28 kB / 0.6103 GB, free: 51.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009167/0.806, allocations: 1.759 MB / 0.612 GB, free: 49.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.806, allocations: 0 / 0.612 GB, free: 49.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001888/0.8079, allocations: 2.04 MB / 0.614 GB, free: 47.29 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002734/0.8082, allocations: 278.6 kB / 0.6143 GB, free: 47.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001677/0.8084, allocations: 45.33 kB / 0.6143 GB, free: 47 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005023/0.8089, allocations: 20 kB / 0.6143 GB, free: 46.98 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.417e-05/0.8089, allocations: 52.48 kB / 0.6144 GB, free: 46.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.809, allocations: 35.98 kB / 0.6144 GB, free: 46.89 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008156/0.8098, allocations: 0.8264 MB / 0.6152 GB, free: 46.07 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.82e-07/0.8098, allocations: 0 / 0.6152 GB, free: 46.07 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002843/0.8127, allocations: 1.29 MB / 0.6165 GB, free: 44.82 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.006012/0.8187, allocations: 3.757 MB / 0.6202 GB, free: 41.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002262/0.821, allocations: 1.26 MB / 0.6214 GB, free: 39.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.821, allocations: 0 / 0.6214 GB, free: 39.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001259/0.8223, allocations: 0.9176 MB / 0.6223 GB, free: 39.02 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003156/0.8254, allocations: 0.7348 MB / 0.623 GB, free: 38.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.8379, allocations: 11.14 MB / 0.6339 GB, free: 26.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005165/0.8384, allocations: 1.316 MB / 0.6352 GB, free: 25.41 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001068/0.8395, allocations: 0.6334 MB / 0.6358 GB, free: 24.79 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005834/0.8401, allocations: 0.6672 MB / 0.6364 GB, free: 24.12 MB / 462.1 MB Notification: Performance of SimCode: time 7.61e-07/0.8401, allocations: 1.859 kB / 0.6364 GB, free: 24.12 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/0.9434, allocations: 72.86 MB / 0.7076 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.6/17.54, allocations: 27.72 kB / 0.7076 GB, free: 15.63 MB / 0.5137 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