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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00157/0.00157, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002108/0.002108, allocations: 209.3 kB / 24.54 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.519/1.519, allocations: 230.6 MB / 258.3 MB, free: 8.074 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "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.003196/0.003196, allocations: 68.77 kB / 378.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.317, allocations: 53.38 MB / 431.9 MB, free: 6.941 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07275/0.3898, allocations: 63.98 MB / 495.9 MB, free: 6.746 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03115/0.4209, allocations: 22.59 MB / 0.5063 GB, free: 84 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.4227, allocations: 43.56 kB / 0.5064 GB, free: 40 kB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002367/0.4251, allocations: 0.7335 MB / 0.5071 GB, free: 15.3 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0181/0.4432, allocations: 5.84 MB / 0.5128 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01027/0.4535, allocations: 3.501 MB / 0.5162 GB, free: 5.953 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01769/0.4711, allocations: 9.099 MB / 0.5251 GB, free: 12.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001502/0.4726, allocations: 0.5797 MB / 0.5257 GB, free: 12.14 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002562/0.4752, allocations: 1.09 MB / 0.5267 GB, free: 11.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001588/0.4768, allocations: 0.8596 MB / 0.5276 GB, free: 10.19 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002144/0.477, allocations: 92 kB / 0.5277 GB, free: 10.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01743/0.4944, allocations: 7.711 MB / 0.5352 GB, free: 2.379 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006201/0.4951, allocations: 294.8 kB / 0.5355 GB, free: 2.09 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.4964, allocations: 0.7076 MB / 0.5362 GB, free: 1.379 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3016/0.798, allocations: 5.783 MB / 0.5418 GB, free: 23.17 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.798, allocations: 0 / 0.5418 GB, free: 23.17 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.798, allocations: 0 / 0.5418 GB, free: 23.17 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.962e-05/0.798, allocations: 0 / 0.5418 GB, free: 23.17 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.009767/0.8078, allocations: 2.464 MB / 0.5442 GB, free: 22.14 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.8078, allocations: 9.719 kB / 0.5442 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002093/0.808, allocations: 159.4 kB / 0.5444 GB, free: 22.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004895/0.8129, allocations: 0.6589 MB / 0.545 GB, free: 22.02 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.8149, allocations: 0.9658 MB / 0.546 GB, free: 21.76 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.103e-05/0.815, allocations: 76.61 kB / 0.546 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001349/0.8151, allocations: 99.59 kB / 0.5461 GB, free: 21.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0034/0.8185, allocations: 1.674 MB / 0.5478 GB, free: 21.37 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.8186, allocations: 6.125 kB / 0.5478 GB, free: 21.37 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001012/0.8187, allocations: 43.97 kB / 0.5478 GB, free: 21.37 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.191e-05/0.8187, allocations: 27.12 kB / 0.5478 GB, free: 21.37 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003017/0.8217, allocations: 1.471 MB / 0.5493 GB, free: 21.37 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00801/0.8297, allocations: 8.056 MB / 0.5571 GB, free: 16.17 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002546/0.8323, allocations: 1.026 MB / 0.5581 GB, free: 16.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004982/0.8328, allocations: 363.5 kB / 0.5585 GB, free: 16.1 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1161/0.9488, allocations: 34.7 MB / 0.5924 GB, free: 14.38 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.589e-05/0.9489, allocations: 48.98 kB / 0.5924 GB, free: 14.33 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 3.347e-06/0.9489, allocations: 0 / 0.5924 GB, free: 14.33 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.008057/0.9569, allocations: 1.91 MB / 0.5943 GB, free: 12.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/0.9571, allocations: 199.6 kB / 0.5945 GB, free: 12.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.9596, allocations: 0.9649 MB / 0.5954 GB, free: 11.88 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001701/0.9598, allocations: 40.14 kB / 0.5955 GB, free: 11.84 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007298/0.9605, allocations: 0.5776 MB / 0.596 GB, free: 11.47 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004997/0.961, allocations: 289.7 kB / 0.5963 GB, free: 11.23 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000585/0.9616, allocations: 237.8 kB / 0.5965 GB, free: 11.08 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.9618, allocations: 350.7 kB / 0.5969 GB, free: 10.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007285/0.9625, allocations: 302.1 kB / 0.5971 GB, free: 10.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/0.9636, allocations: 0.7478 MB / 0.5979 GB, free: 9.758 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001698/0.9653, allocations: 1.093 MB / 0.5989 GB, free: 8.828 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.9653, allocations: 4 kB / 0.599 GB, free: 8.824 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002523/0.9678, allocations: 1.246 MB / 0.6002 GB, free: 7.977 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.9679, allocations: 12.97 kB / 0.6002 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/0.9679, allocations: 15.34 kB / 0.6002 GB, free: 7.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003538/0.9714, allocations: 0.5365 MB / 0.6007 GB, free: 7.465 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.9726, allocations: 269.4 kB / 0.601 GB, free: 7.227 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00134/0.974, allocations: 1.379 MB / 0.6023 GB, free: 5.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001344/0.9753, allocations: 133.9 kB / 0.6024 GB, free: 5.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.9755, allocations: 65.84 kB / 0.6025 GB, free: 5.75 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.0008504/0.9763, allocations: 286.6 kB / 0.6028 GB, free: 5.559 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005724/0.9769, allocations: 139.1 kB / 0.6029 GB, free: 5.422 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006378/0.9833, allocations: 4.607 MB / 0.6074 GB, free: 2.453 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.607e-05/0.9833, allocations: 47.36 kB / 0.6075 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.276e-05/0.9833, allocations: 0 / 0.6075 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.9834, allocations: 3.984 kB / 0.6075 GB, free: 2.414 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007254/0.9906, allocations: 4.995 MB / 0.6123 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.9906, allocations: 0 / 0.6123 GB, free: 14.86 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008753/0.9915, allocations: 173.5 kB / 0.6125 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/0.9931, allocations: 0.6693 MB / 0.6132 GB, free: 14.12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.862e-05/0.9932, allocations: 31.11 kB / 0.6132 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/0.9949, allocations: 1.788 MB / 0.6149 GB, free: 12.54 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.9949, allocations: 0 / 0.6149 GB, free: 12.54 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003007/0.9979, allocations: 2.03 MB / 0.6169 GB, free: 11.04 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005998/0.9985, allocations: 206.7 kB / 0.6171 GB, free: 10.84 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004053/0.9989, allocations: 44.53 kB / 0.6172 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000777/0.9997, allocations: 15.81 kB / 0.6172 GB, free: 10.81 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.9998, allocations: 58.23 kB / 0.6172 GB, free: 10.76 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.318e-05/0.9999, allocations: 34.48 kB / 0.6173 GB, free: 10.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001478/1.001, allocations: 0.8335 MB / 0.6181 GB, free: 10.12 MB / 478.1 MB Notification: Performance of sort global known variables: time 8e-08/1.001, allocations: 0 / 0.6181 GB, free: 10.12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006853/1.008, allocations: 1.295 MB / 0.6193 GB, free: 8.898 MB / 478.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.01371/1.022, allocations: 3.748 MB / 0.623 GB, free: 5.836 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003566/1.026, allocations: 1.221 MB / 0.6242 GB, free: 4.852 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.919e-06/1.026, allocations: 4 kB / 0.6242 GB, free: 4.848 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/1.027, allocations: 0.7502 MB / 0.6249 GB, free: 4.117 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004265/1.032, allocations: 0.7215 MB / 0.6256 GB, free: 3.414 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02501/1.057, allocations: 11.17 MB / 0.6365 GB, free: 7.805 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001283/1.058, allocations: 1.312 MB / 0.6378 GB, free: 6.461 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001557/1.059, allocations: 0.625 MB / 0.6384 GB, free: 5.844 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009754/1.06, allocations: 0.677 MB / 0.6391 GB, free: 5.172 MB / 494.1 MB Notification: Performance of SimCode: time 1.483e-06/1.06, allocations: 0 / 0.6391 GB, free: 5.172 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.151/1.211, allocations: 74.92 MB / 0.7123 GB, free: 10.74 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.59/18.8, allocations: 0 / 0.7123 GB, free: 10.74 MB / 0.5606 GB " [Timeout remaining time 641] (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.000219912 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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 21.5506553016603] Failed to read output from testmodel.py, exit status != 0: ['time', 'suddenExpansion1.m_flow', 'suddenExpansion1.dp', 'suddenExpansion1.port_b_T', 'suddenExpansion2.m_flow', 'suddenExpansion2.dp', 'suddenExpansion2.port_b_T'] 18.95047013182193 18.974466261 18.171435666 Calling exit ...