Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009652/0.009652, allocations: 100.8 kB / 15.73 MB, free: 6.062 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.002767/0.002767, allocations: 195.7 kB / 16.68 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.57/1.57, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 50.39 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.128, allocations: 46.61 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06424/0.1923, allocations: 62.85 MB / 436 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3015/0.4939, allocations: 22.44 MB / 458.4 MB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001917/0.4958, allocations: 29.78 kB / 458.5 MB, free: 2.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002772/0.4987, allocations: 0.7306 MB / 459.2 MB, free: 2.262 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02083/0.5196, allocations: 5.795 MB / 465 MB, free: 2.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01168/0.5313, allocations: 3.453 MB / 468.5 MB, free: 2.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01967/0.5509, allocations: 9.052 MB / 477.5 MB, free: 256 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.5525, allocations: 0.6898 MB / 478.2 MB, free: 200 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002526/0.555, allocations: 1.067 MB / 479.3 MB, free: 192 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001125/0.5561, allocations: 0.8337 MB / 480.1 MB, free: 100 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001359/0.5563, allocations: 90.78 kB / 480.2 MB, free: 100 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02083/0.5771, allocations: 7.727 MB / 487.9 MB, free: 14.85 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005073/0.5777, allocations: 283.1 kB / 488.2 MB, free: 14.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001651/0.5793, allocations: 0.7139 MB / 488.9 MB, free: 14.52 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01577/0.5951, allocations: 5.747 MB / 494.7 MB, free: 12.23 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.007e-05/0.5952, allocations: 7.984 kB / 494.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.5952, allocations: 2.625 kB / 494.7 MB, free: 12.22 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.144e-05/0.5952, allocations: 0 / 494.7 MB, free: 12.22 MB / 398.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.006984/0.6022, allocations: 2.461 MB / 497.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.6022, allocations: 9.125 kB / 497.1 MB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004588/0.6068, allocations: 0.6573 MB / 497.8 MB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001901/0.6088, allocations: 1.039 MB / 498.8 MB, free: 10.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.807e-05/0.6088, allocations: 73.95 kB / 498.9 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.609, allocations: 101.2 kB / 499 MB, free: 10.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003445/0.6124, allocations: 1.677 MB / 0.4889 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.93e-05/0.6125, allocations: 7 kB / 0.4889 GB, free: 8.957 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.6126, allocations: 46.94 kB / 0.489 GB, free: 8.945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.361e-05/0.6126, allocations: 28 kB / 0.489 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003253/0.6159, allocations: 1.46 MB / 0.4904 GB, free: 7.848 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.626, allocations: 8.403 MB / 0.4987 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003023/0.629, allocations: 1.692 MB / 0.5003 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.6296, allocations: 406.2 kB / 0.5007 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1208/0.7504, allocations: 63.66 MB / 0.5629 GB, free: 5.562 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.914e-05/0.7506, allocations: 43.12 kB / 0.5629 GB, free: 5.512 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 4.839e-06/0.7506, allocations: 7.984 kB / 0.5629 GB, free: 5.504 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006355/0.7569, allocations: 1.997 MB / 0.5649 GB, free: 3.484 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.269e-05/0.757, allocations: 192.5 kB / 0.565 GB, free: 3.254 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.7586, allocations: 0.9605 MB / 0.566 GB, free: 2.277 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.242e-05/0.7587, allocations: 37.7 kB / 0.566 GB, free: 2.234 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004551/0.7592, allocations: 0.5742 MB / 0.5666 GB, free: 1.656 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002793/0.7594, allocations: 278.7 kB / 0.5668 GB, free: 1.387 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003439/0.7598, allocations: 230.7 kB / 0.5671 GB, free: 1.156 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.7599, allocations: 349.9 kB / 0.5674 GB, free: 0.8086 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005834/0.7605, allocations: 306.3 kB / 0.5677 GB, free: 0.5156 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008975/0.7614, allocations: 0.7424 MB / 0.5684 GB, free: 15.58 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001524/0.763, allocations: 1.1 MB / 0.5695 GB, free: 14.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/0.763, allocations: 4 kB / 0.5695 GB, free: 14.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00232/0.7653, allocations: 1.256 MB / 0.5707 GB, free: 13.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.7654, allocations: 13.09 kB / 0.5707 GB, free: 13.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.774e-05/0.7654, allocations: 12 kB / 0.5707 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003192/0.7686, allocations: 0.5159 MB / 0.5712 GB, free: 12.62 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.7697, allocations: 286.5 kB / 0.5715 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.7707, allocations: 1.371 MB / 0.5729 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009227/0.7717, allocations: 134.5 kB / 0.573 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.79e-05/0.7718, allocations: 76.11 kB / 0.5731 GB, free: 10.73 MB / 494.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.0005368/0.7723, allocations: 286.9 kB / 0.5733 GB, free: 10.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.7726, allocations: 122.6 kB / 0.5734 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004644/0.7772, allocations: 4.485 MB / 0.5778 GB, free: 5.883 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.599e-05/0.7773, allocations: 43.92 kB / 0.5779 GB, free: 5.84 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.7773, allocations: 4 kB / 0.5779 GB, free: 5.836 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.7773, allocations: 7.984 kB / 0.5779 GB, free: 5.828 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00525/0.7826, allocations: 4.928 MB / 0.5827 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.7826, allocations: 0 / 0.5827 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000779/0.7834, allocations: 180.1 kB / 0.5829 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001391/0.7848, allocations: 0.6684 MB / 0.5835 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.7848, allocations: 24.08 kB / 0.5835 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/0.7862, allocations: 1.758 MB / 0.5853 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.7862, allocations: 96 / 0.5853 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002505/0.7888, allocations: 2.025 MB / 0.5872 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004109/0.7892, allocations: 274.3 kB / 0.5875 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001548/0.7893, allocations: 39.62 kB / 0.5875 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004757/0.7898, allocations: 23.28 kB / 0.5876 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.494e-05/0.7899, allocations: 56.48 kB / 0.5876 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.37e-05/0.79, allocations: 35.98 kB / 0.5876 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001149/0.7911, allocations: 0.8264 MB / 0.5884 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7911, allocations: 0 / 0.5884 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004306/0.7955, allocations: 1.28 MB / 0.5897 GB, free: 9.461 MB / 0.4981 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.004671/0.8001, allocations: 1.254 MB / 0.5909 GB, free: 8.305 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002845/0.803, allocations: 1.263 MB / 0.5922 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/0.803, allocations: 4.312 kB / 0.5922 GB, free: 7.078 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.8045, allocations: 0.9087 MB / 0.593 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/0.8078, allocations: 0.727 MB / 0.5938 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004326/0.8122, allocations: 3.028 MB / 0.5967 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007744/0.813, allocations: 1.32 MB / 0.598 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001268/0.8142, allocations: 0.6372 MB / 0.5986 GB, free: 448 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002502/0.8145, allocations: 119.4 kB / 0.5987 GB, free: 328 kB / 0.4981 GB Notification: Performance of SimCode: time 8.92e-07/0.8145, allocations: 0 / 0.5987 GB, free: 328 kB / 0.4981 GB Notification: Performance of Templates: time 0.2977/1.112, allocations: 57.67 MB / 0.6551 GB, free: 232.9 MB / 0.545 GB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)