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.001373/0.001373, 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.0016/0.0016, allocations: 209.7 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.417/1.417, allocations: 230.6 MB / 258.3 MB, free: 8.043 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.002002/0.002002, allocations: 68.53 kB / 378.5 MB, free: 3.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2432/0.2452, allocations: 53.37 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06799/0.3132, allocations: 63.99 MB / 495.9 MB, free: 6.695 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02936/0.3426, allocations: 22.59 MB / 0.5063 GB, free: 32 kB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001357/0.3439, allocations: 47.61 kB / 0.5064 GB, free: 15.98 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.3458, allocations: 0.7296 MB / 0.5071 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01503/0.3609, allocations: 5.838 MB / 0.5128 GB, free: 9.406 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009399/0.3703, allocations: 3.496 MB / 0.5162 GB, free: 5.91 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01794/0.3882, allocations: 9.102 MB / 0.5251 GB, free: 12.69 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001319/0.3895, allocations: 0.5796 MB / 0.5257 GB, free: 12.1 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002284/0.3918, allocations: 1.09 MB / 0.5267 GB, free: 11.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001369/0.3932, allocations: 0.8558 MB / 0.5276 GB, free: 10.15 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001671/0.3933, allocations: 95.94 kB / 0.5277 GB, free: 10.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01505/0.4084, allocations: 7.711 MB / 0.5352 GB, free: 2.336 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004169/0.4088, allocations: 286.8 kB / 0.5355 GB, free: 2.055 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009886/0.4098, allocations: 0.7115 MB / 0.5362 GB, free: 1.34 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2368/0.6466, allocations: 5.783 MB / 0.5418 GB, free: 23.1 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.6466, allocations: 0 / 0.5418 GB, free: 23.1 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.6466, allocations: 0 / 0.5418 GB, free: 23.1 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.859e-05/0.6466, allocations: 0 / 0.5418 GB, free: 23.1 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.007474/0.6541, allocations: 2.464 MB / 0.5442 GB, free: 22.06 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.752e-05/0.6541, allocations: 10.27 kB / 0.5442 GB, free: 22.06 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001535/0.6543, allocations: 157.2 kB / 0.5444 GB, free: 22.02 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004653/0.6589, allocations: 0.6638 MB / 0.545 GB, free: 21.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.6607, allocations: 0.9603 MB / 0.546 GB, free: 21.68 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.837e-05/0.6607, allocations: 76.39 kB / 0.546 GB, free: 21.68 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.6609, allocations: 99.19 kB / 0.5461 GB, free: 21.68 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003149/0.664, allocations: 1.679 MB / 0.5478 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.611e-05/0.664, allocations: 6.844 kB / 0.5478 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.594e-05/0.6641, allocations: 45.66 kB / 0.5478 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.6641, allocations: 26.53 kB / 0.5478 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00289/0.667, allocations: 1.468 MB / 0.5493 GB, free: 21.3 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007075/0.6741, allocations: 8.05 MB / 0.5571 GB, free: 16.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00252/0.6766, allocations: 1.037 MB / 0.5581 GB, free: 16.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004926/0.6771, allocations: 360 kB / 0.5585 GB, free: 16.02 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1026/0.7798, allocations: 34.7 MB / 0.5924 GB, free: 14.29 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.8e-05/0.7798, allocations: 49.53 kB / 0.5924 GB, free: 14.24 MB / 462.1 MB Notification: Performance of pre-optimization done (n=77): time 2.525e-06/0.7798, allocations: 0 / 0.5924 GB, free: 14.24 MB / 462.1 MB Notification: Performance of matching and sorting (n=77): time 0.005874/0.7857, allocations: 1.916 MB / 0.5943 GB, free: 12.77 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.7858, allocations: 196.4 kB / 0.5945 GB, free: 12.53 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.7871, allocations: 0.9634 MB / 0.5954 GB, free: 11.79 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 7.516e-05/0.7872, allocations: 39.95 kB / 0.5955 GB, free: 11.75 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004111/0.7876, allocations: 0.5795 MB / 0.596 GB, free: 11.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.7879, allocations: 293.1 kB / 0.5963 GB, free: 11.14 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003033/0.7882, allocations: 237.7 kB / 0.5965 GB, free: 10.98 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.7883, allocations: 345.7 kB / 0.5969 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005419/0.7889, allocations: 299.5 kB / 0.5971 GB, free: 10.47 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008998/0.7898, allocations: 0.7517 MB / 0.5979 GB, free: 9.668 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.7912, allocations: 1.094 MB / 0.599 GB, free: 8.738 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.7912, allocations: 9.641 kB / 0.599 GB, free: 8.73 MB / 462.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002171/0.7934, allocations: 1.244 MB / 0.6002 GB, free: 7.883 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.7934, allocations: 12 kB / 0.6002 GB, free: 7.871 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.856e-05/0.7935, allocations: 12.84 kB / 0.6002 GB, free: 7.859 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003252/0.7967, allocations: 0.5304 MB / 0.6007 GB, free: 7.375 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.7978, allocations: 277.7 kB / 0.601 GB, free: 7.137 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.799, allocations: 1.372 MB / 0.6023 GB, free: 5.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008884/0.7999, allocations: 137.7 kB / 0.6025 GB, free: 5.711 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-05/0.8, allocations: 63.41 kB / 0.6025 GB, free: 5.66 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.0005569/0.8005, allocations: 290 kB / 0.6028 GB, free: 5.465 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002792/0.8008, allocations: 135.1 kB / 0.6029 GB, free: 5.332 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004886/0.8057, allocations: 4.605 MB / 0.6074 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.555e-05/0.8057, allocations: 46.98 kB / 0.6075 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.8057, allocations: 1.531 kB / 0.6075 GB, free: 2.324 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.8057, allocations: 3.984 kB / 0.6075 GB, free: 2.32 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005822/0.8116, allocations: 4.986 MB / 0.6123 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.8116, allocations: 0 / 0.6123 GB, free: 14.77 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008452/0.8124, allocations: 170.1 kB / 0.6125 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001519/0.8139, allocations: 0.6756 MB / 0.6132 GB, free: 14.02 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.655e-05/0.814, allocations: 27.11 kB / 0.6132 GB, free: 14.01 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00155/0.8156, allocations: 1.784 MB / 0.6149 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8156, allocations: 0 / 0.6149 GB, free: 12.45 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002779/0.8183, allocations: 2.039 MB / 0.6169 GB, free: 10.95 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004258/0.8188, allocations: 205.1 kB / 0.6171 GB, free: 10.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001736/0.8189, allocations: 44.47 kB / 0.6172 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004713/0.8194, allocations: 16.88 kB / 0.6172 GB, free: 10.72 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.285e-05/0.8195, allocations: 57.36 kB / 0.6172 GB, free: 10.67 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.824e-05/0.8196, allocations: 31.11 kB / 0.6173 GB, free: 10.64 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001137/0.8207, allocations: 0.8389 MB / 0.6181 GB, free: 10.03 MB / 478.1 MB Notification: Performance of sort global known variables: time 7e-08/0.8207, allocations: 0 / 0.6181 GB, free: 10.03 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005426/0.8261, allocations: 1.293 MB / 0.6193 GB, free: 8.805 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.01012/0.8362, allocations: 3.749 MB / 0.623 GB, free: 5.75 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002755/0.839, allocations: 1.22 MB / 0.6242 GB, free: 4.848 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.839, allocations: 0 / 0.6242 GB, free: 4.848 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.8405, allocations: 0.7517 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.003226/0.8437, allocations: 0.7265 MB / 0.6256 GB, free: 3.41 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01857/0.8623, 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.0009754/0.8633, allocations: 1.316 MB / 0.6378 GB, free: 6.457 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.001369/0.8646, allocations: 0.6364 MB / 0.6384 GB, free: 5.832 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008334/0.8655, allocations: 0.6789 MB / 0.6391 GB, free: 5.156 MB / 494.1 MB Notification: Performance of SimCode: time 1.302e-06/0.8655, allocations: 0 / 0.6391 GB, free: 5.156 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1349/1, allocations: 74.91 MB / 0.7123 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.62/18.62, allocations: 0 / 0.7123 GB, free: 10.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 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.988713609986007] 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.766488653142005 18.791447537 18.140025957 Calling exit ...