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.001319/0.001319, allocations: 120 kB / 18.5 MB, free: 4.52 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.001366/0.001366, allocations: 213.6 kB / 21.46 MB, free: 1.566 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.476/1.476, allocations: 230.5 MB / 254.8 MB, free: 15.1 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.001979/0.001979, allocations: 71.83 kB / 373.7 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1136, allocations: 53.33 MB / 427 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3085/0.4221, allocations: 63.43 MB / 490.4 MB, free: 15.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03273/0.4549, allocations: 22.5 MB / 0.5009 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002007/0.4569, allocations: 47.56 kB / 0.501 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003008/0.4599, allocations: 0.7335 MB / 0.5017 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01877/0.4786, allocations: 5.821 MB / 0.5074 GB, free: 4.348 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01046/0.4891, allocations: 3.488 MB / 0.5108 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01838/0.5075, allocations: 9.059 MB / 0.5196 GB, free: 7.691 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001401/0.5089, allocations: 0.5987 MB / 0.5202 GB, free: 7.082 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002458/0.5113, allocations: 1.086 MB / 0.5213 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001518/0.5129, allocations: 0.8557 MB / 0.5221 GB, free: 5.133 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002405/0.5131, allocations: 92 kB / 0.5222 GB, free: 5.043 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01705/0.5302, allocations: 7.699 MB / 0.5297 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006232/0.5308, allocations: 290.8 kB / 0.53 GB, free: 13.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.532, allocations: 0.7115 MB / 0.5307 GB, free: 12.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01451/0.5465, allocations: 5.778 MB / 0.5363 GB, free: 6.543 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.5465, allocations: 0 / 0.5363 GB, free: 6.543 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5465, allocations: 0 / 0.5363 GB, free: 6.543 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.539e-05/0.5465, allocations: 4 kB / 0.5363 GB, free: 6.539 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.007114/0.5536, allocations: 2.535 MB / 0.5388 GB, free: 3.941 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.75e-05/0.5537, allocations: 12.03 kB / 0.5388 GB, free: 3.93 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002136/0.5539, allocations: 154.2 kB / 0.5389 GB, free: 3.773 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004817/0.5587, allocations: 0.6634 MB / 0.5396 GB, free: 3.109 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002171/0.5609, allocations: 1.048 MB / 0.5406 GB, free: 2.016 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.644e-05/0.5609, allocations: 74.39 kB / 0.5407 GB, free: 1.941 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.5611, allocations: 99.94 kB / 0.5408 GB, free: 1.844 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003737/0.5648, allocations: 1.682 MB / 0.5424 GB, free: 8 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.383e-05/0.5648, allocations: 4 kB / 0.5424 GB, free: 4 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.565, allocations: 52.02 kB / 0.5425 GB, free: 15.95 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.617e-05/0.565, allocations: 28 kB / 0.5425 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003473/0.5685, allocations: 1.459 MB / 0.5439 GB, free: 14.46 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0109/0.5794, allocations: 8.402 MB / 0.5521 GB, free: 5.457 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003205/0.5826, allocations: 1.635 MB / 0.5537 GB, free: 3.656 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000642/0.5832, allocations: 370 kB / 0.5541 GB, free: 3.293 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3706/0.9538, allocations: 70.65 MB / 0.6231 GB, free: 169 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.158e-05/0.9538, allocations: 47.5 kB / 0.6231 GB, free: 169 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=77): time 3.176e-06/0.9538, allocations: 0 / 0.6231 GB, free: 169 MB / 0.5137 GB Notification: Performance of matching and sorting (n=77): time 0.006432/0.9603, allocations: 1.99 MB / 0.6251 GB, free: 168.8 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.9603, allocations: 190 kB / 0.6253 GB, free: 168.6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.9617, allocations: 0.9662 MB / 0.6262 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.155e-05/0.9618, allocations: 43.8 kB / 0.6262 GB, free: 168.4 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004937/0.9623, allocations: 0.5861 MB / 0.6268 GB, free: 168.2 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/0.9626, allocations: 285 kB / 0.6271 GB, free: 168 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003812/0.963, allocations: 237.4 kB / 0.6273 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.9631, allocations: 348.5 kB / 0.6276 GB, free: 167.6 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006129/0.9637, allocations: 305.7 kB / 0.6279 GB, free: 167.5 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008885/0.9646, allocations: 0.7445 MB / 0.6287 GB, free: 166.8 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001429/0.966, allocations: 1.092 MB / 0.6297 GB, free: 166 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.066e-05/0.9661, allocations: 4.062 kB / 0.6297 GB, free: 166 MB / 0.5137 GB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002477/0.9685, allocations: 1.245 MB / 0.6309 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.134e-05/0.9686, allocations: 11.8 kB / 0.631 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.65e-05/0.9686, allocations: 18.06 kB / 0.631 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003501/0.9721, allocations: 0.5188 MB / 0.6315 GB, free: 165.4 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001147/0.9732, allocations: 280.5 kB / 0.6317 GB, free: 165.3 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.9742, allocations: 1.374 MB / 0.6331 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001169/0.9754, allocations: 137.4 kB / 0.6332 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001377/0.9755, allocations: 63.52 kB / 0.6333 GB, free: 164 MB / 0.5137 GB 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.0006818/0.9762, allocations: 297.6 kB / 0.6336 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003452/0.9766, allocations: 129.2 kB / 0.6337 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006262/0.9828, allocations: 4.419 MB / 0.638 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.816e-05/0.9829, allocations: 56.08 kB / 0.6381 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.9829, allocations: 0.9688 kB / 0.6381 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.545e-05/0.9829, allocations: 5.422 kB / 0.6381 GB, free: 161.8 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005577/0.9885, allocations: 4.886 MB / 0.6428 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.9885, allocations: 1.156 kB / 0.6428 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007888/0.9893, allocations: 172.2 kB / 0.643 GB, free: 159.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001523/0.9908, allocations: 0.6619 MB / 0.6436 GB, free: 159 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.486e-05/0.9909, allocations: 24.78 kB / 0.6437 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001193/0.9921, allocations: 1.758 MB / 0.6454 GB, free: 157.5 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.9921, allocations: 0 / 0.6454 GB, free: 157.5 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002679/0.9948, allocations: 1.991 MB / 0.6473 GB, free: 156.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000477/0.9952, allocations: 275.4 kB / 0.6476 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001847/0.9954, allocations: 47.03 kB / 0.6476 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004833/0.9959, allocations: 18.56 kB / 0.6477 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.996, allocations: 52.95 kB / 0.6477 GB, free: 156.3 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-05/0.9961, allocations: 37.92 kB / 0.6477 GB, free: 156.2 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001124/0.9972, allocations: 0.832 MB / 0.6486 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.9972, allocations: 0 / 0.6486 GB, free: 155.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004359/1.002, allocations: 1.296 MB / 0.6498 GB, free: 155.8 MB / 0.5137 GB 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.006774/1.008, allocations: 3.688 MB / 0.6534 GB, free: 153.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002524/1.011, allocations: 1.215 MB / 0.6546 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/1.011, allocations: 0 / 0.6546 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001268/1.012, allocations: 0.7341 MB / 0.6553 GB, free: 153 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003325/1.015, allocations: 0.7323 MB / 0.656 GB, free: 152.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/1.03, allocations: 11.13 MB / 0.6669 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00059/1.03, allocations: 1.32 MB / 0.6682 GB, free: 139.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00131/1.032, allocations: 0.6274 MB / 0.6688 GB, free: 138.8 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007218/1.033, allocations: 0.6672 MB / 0.6695 GB, free: 138.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.894e-06/1.033, allocations: 0 / 0.6695 GB, free: 138.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.106/1.139, allocations: 73.13 MB / 0.7409 GB, free: 65.29 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.85/17.99, allocations: 10.06 kB / 0.7409 GB, free: 65.29 MB / 0.5137 GB " [Timeout remaining time 642] (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: 20.630243024788797] 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.133850425947458 18.148786274 17.599605769 Calling exit ...