Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4_1_0-beta_om_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,fileNamePrefix="Modelica_4_1_0-beta_om_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.001332/0.001332, allocations: 117.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001425/0.001425, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.44/1.44, allocations: 227.7 MB / 247.2 MB, free: 10.19 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003021/0.003021, allocations: 67.89 kB / 358.5 MB, free: 13.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3062, allocations: 50.55 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06915/0.3754, allocations: 63.02 MB / 472.1 MB, free: 2.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03045/0.4059, allocations: 22.45 MB / 494.5 MB, free: 11.57 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001701/0.4077, allocations: 35.75 kB / 494.6 MB, free: 11.54 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002173/0.4099, allocations: 0.7335 MB / 495.3 MB, free: 10.8 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01831/0.4283, allocations: 5.791 MB / 0.4893 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01051/0.4388, allocations: 3.485 MB / 0.4928 GB, free: 1.523 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0193/0.4581, allocations: 9.039 MB / 0.5016 GB, free: 8.371 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001416/0.4596, allocations: 0.7001 MB / 0.5023 GB, free: 7.66 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002249/0.4618, allocations: 1.062 MB / 0.5033 GB, free: 6.594 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001389/0.4633, allocations: 0.8168 MB / 0.5041 GB, free: 5.773 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002197/0.4635, allocations: 95.94 kB / 0.5042 GB, free: 5.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01543/0.4789, allocations: 7.672 MB / 0.5117 GB, free: 14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005065/0.4795, allocations: 290.8 kB / 0.512 GB, free: 13.71 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.4806, allocations: 0.7115 MB / 0.5127 GB, free: 13 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01342/0.494, allocations: 5.778 MB / 0.5183 GB, free: 7.207 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.494, allocations: 0 / 0.5183 GB, free: 7.207 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.494, allocations: 0 / 0.5183 GB, free: 7.207 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.573e-05/0.4941, allocations: 4 kB / 0.5183 GB, free: 7.203 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.00685/0.5009, allocations: 2.531 MB / 0.5208 GB, free: 4.609 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.501, allocations: 16.02 kB / 0.5208 GB, free: 4.594 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002082/0.5012, allocations: 156.5 kB / 0.5209 GB, free: 4.434 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004737/0.506, allocations: 0.6634 MB / 0.5216 GB, free: 3.77 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.5081, allocations: 1.044 MB / 0.5226 GB, free: 2.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.5082, allocations: 78.14 kB / 0.5227 GB, free: 2.602 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001546/0.5084, allocations: 100 kB / 0.5228 GB, free: 2.504 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003766/0.5122, allocations: 1.671 MB / 0.5244 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.133e-05/0.5122, allocations: 11.92 kB / 0.5244 GB, free: 0.668 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001153/0.5123, allocations: 44 kB / 0.5245 GB, free: 0.625 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.032e-05/0.5124, allocations: 28 kB / 0.5245 GB, free: 0.5977 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003484/0.5159, allocations: 1.463 MB / 0.5259 GB, free: 15.13 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01061/0.5265, allocations: 8.401 MB / 0.5341 GB, free: 6.117 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003285/0.5298, allocations: 1.696 MB / 0.5358 GB, free: 4.254 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006432/0.5305, allocations: 404.5 kB / 0.5362 GB, free: 3.855 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3478/0.8783, allocations: 70.64 MB / 0.6051 GB, free: 46.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.797e-05/0.8784, allocations: 41.97 kB / 0.6052 GB, free: 46.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.815e-06/0.8784, allocations: 0 / 0.6052 GB, free: 46.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005242/0.8836, allocations: 2.012 MB / 0.6072 GB, free: 45.38 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.689e-05/0.8837, allocations: 188.5 kB / 0.6073 GB, free: 45.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009469/0.8847, allocations: 0.9599 MB / 0.6083 GB, free: 44.44 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 5.441e-05/0.8847, allocations: 40.58 kB / 0.6083 GB, free: 44.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003022/0.885, allocations: 0.5815 MB / 0.6089 GB, free: 44.11 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001652/0.8852, allocations: 291.3 kB / 0.6092 GB, free: 43.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002477/0.8855, allocations: 233.4 kB / 0.6094 GB, free: 43.75 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.308e-05/0.8856, allocations: 348.2 kB / 0.6097 GB, free: 43.43 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/0.886, allocations: 308.9 kB / 0.61 GB, free: 43.23 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006028/0.8866, allocations: 0.7446 MB / 0.6107 GB, free: 42.42 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001102/0.8877, allocations: 1.097 MB / 0.6118 GB, free: 41.48 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.213e-06/0.8877, allocations: 5.375 kB / 0.6118 GB, free: 41.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001761/0.8895, allocations: 1.25 MB / 0.613 GB, free: 40.63 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.8895, allocations: 13 kB / 0.613 GB, free: 40.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.8895, allocations: 16 kB / 0.6131 GB, free: 40.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003023/0.8926, allocations: 0.5248 MB / 0.6136 GB, free: 40.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009386/0.8935, allocations: 278.4 kB / 0.6138 GB, free: 39.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007692/0.8943, allocations: 1.373 MB / 0.6152 GB, free: 38.57 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008359/0.8952, allocations: 137.2 kB / 0.6153 GB, free: 38.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.911e-05/0.8953, allocations: 67.83 kB / 0.6154 GB, free: 38.43 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.0004478/0.8957, allocations: 305.2 kB / 0.6157 GB, free: 38.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001794/0.8959, allocations: 128.1 kB / 0.6158 GB, free: 38.11 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.8996, allocations: 4.491 MB / 0.6202 GB, free: 34.38 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.103e-05/0.8996, allocations: 47.92 kB / 0.6202 GB, free: 34.34 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.8996, allocations: 0 / 0.6202 GB, free: 34.34 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.8997, allocations: 3.984 kB / 0.6202 GB, free: 34.33 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003916/0.9036, allocations: 4.955 MB / 0.6251 GB, free: 29.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.9036, allocations: 0 / 0.6251 GB, free: 29.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007207/0.9043, allocations: 164.4 kB / 0.6252 GB, free: 29.13 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.9056, allocations: 0.6685 MB / 0.6259 GB, free: 28.46 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.9057, allocations: 27.98 kB / 0.6259 GB, free: 28.43 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009984/0.9067, allocations: 1.75 MB / 0.6276 GB, free: 26.64 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.169e-05/0.9067, allocations: 4.094 kB / 0.6276 GB, free: 26.63 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.9087, allocations: 2.034 MB / 0.6296 GB, free: 24.55 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003235/0.909, allocations: 278.5 kB / 0.6299 GB, free: 24.3 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000164/0.9092, allocations: 45.14 kB / 0.6299 GB, free: 24.26 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000438/0.9096, allocations: 16 kB / 0.6299 GB, free: 24.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.315e-05/0.9097, allocations: 56.48 kB / 0.63 GB, free: 24.19 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.635e-05/0.9098, allocations: 39.98 kB / 0.63 GB, free: 24.15 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008148/0.9106, allocations: 0.8264 MB / 0.6308 GB, free: 23.32 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.9106, allocations: 0 / 0.6308 GB, free: 23.32 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003364/0.914, allocations: 1.296 MB / 0.6321 GB, free: 22.06 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.00658/0.9206, allocations: 3.769 MB / 0.6358 GB, free: 18.38 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.923, allocations: 1.265 MB / 0.637 GB, free: 17.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.923, allocations: 4 kB / 0.637 GB, free: 17.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001265/0.9243, allocations: 0.9018 MB / 0.6379 GB, free: 16.26 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003287/0.9276, allocations: 0.7358 MB / 0.6386 GB, free: 15.55 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01331/0.9409, allocations: 11.14 MB / 0.6495 GB, free: 3.984 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005786/0.9415, allocations: 1.32 MB / 0.6508 GB, free: 2.629 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001255/0.9428, allocations: 0.6369 MB / 0.6514 GB, free: 2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006244/0.9434, allocations: 0.6672 MB / 0.652 GB, free: 1.336 MB / 462.1 MB Notification: Performance of SimCode: time 1.182e-06/0.9434, allocations: 1.969 kB / 0.652 GB, free: 1.336 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1354/1.079, allocations: 72.96 MB / 0.7233 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.27/18.35, allocations: 19.75 kB / 0.7233 GB, free: 8.82 MB / 0.5294 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings.fmu > Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)