Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.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.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004995/0.004995, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001188/0.001188, allocations: 192 kB / 16.67 MB, free: 5.969 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.468/1.468, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.001159/0.001159, allocations: 53.55 kB / 326.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1016, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.01717/0.1188, allocations: 15.19 MB / 388.4 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01211/0.1309, allocations: 4.706 MB / 393.1 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003465/0.1345, allocations: 87.75 kB / 393.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007236/0.1418, allocations: 3.461 MB / 396.6 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008039/0.1498, allocations: 2.376 MB / 399 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002643/0.1525, allocations: 1.006 MB / 400 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009782/0.1623, allocations: 6.078 MB / 406.1 MB, free: 268 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005357/0.1677, allocations: 4.613 MB / 410.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003911/0.1716, allocations: 2.173 MB / 412.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004659/0.1763, allocations: 2.998 MB / 415.9 MB, free: 6.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001288/0.1777, allocations: 444 kB / 416.3 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003352/0.181, allocations: 1.354 MB / 417.7 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003171/0.1842, allocations: 2.723 MB / 420.4 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004726/0.1889, allocations: 3.122 MB / 423.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01531/0.2043, allocations: 9.43 MB / 432.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.2043, allocations: 4 kB / 432.9 MB, free: 5.246 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2043, allocations: 3.938 kB / 433 MB, free: 5.242 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003995/0.2047, allocations: 0 / 433 MB, free: 5.242 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2151 * Number of variables: 2151 Notification: Performance of Generate backend data structure: time 0.02155/0.2263, allocations: 7.073 MB / 440 MB, free: 14.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.247e-05/0.2264, allocations: 8.031 kB / 440 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01153/0.2379, allocations: 2.649 MB / 442.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006941/0.2449, allocations: 3.407 MB / 446.1 MB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002847/0.2452, allocations: 356.8 kB / 446.4 MB, free: 7.598 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002211/0.2474, allocations: 0.675 MB / 447.1 MB, free: 6.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2607/0.5082, allocations: 17.4 MB / 464.5 MB, free: 60.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.5084, allocations: 63.3 kB / 464.6 MB, free: 60.56 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005809/0.509, allocations: 218 kB / 464.8 MB, free: 60.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003925/0.5129, allocations: 2.841 MB / 467.6 MB, free: 59.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02908/0.542, allocations: 15.27 MB / 482.9 MB, free: 50.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05763/0.5997, allocations: 58.79 MB / 0.529 GB, free: 7.254 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0176/0.6173, allocations: 7.14 MB / 0.536 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004839/0.6222, allocations: 3.246 MB / 0.5391 GB, free: 12.61 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02237/0.6446, allocations: 14.48 MB / 0.5533 GB, free: 13.81 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.606e-05/0.6447, allocations: 60.56 kB / 0.5533 GB, free: 13.74 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 9.017e-06/0.6447, allocations: 4 kB / 0.5533 GB, free: 13.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=321): time 0.07209/0.7168, allocations: 26.42 MB / 0.5791 GB, free: 3.332 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.003476/0.7203, allocations: 4.871 MB / 0.5839 GB, free: 13.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007709/0.7281, allocations: 5.148 MB / 0.5889 GB, free: 8.871 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009995/0.7291, allocations: 69.7 kB / 0.589 GB, free: 8.797 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003307/0.7324, allocations: 4.346 MB / 0.5932 GB, free: 4.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002321/0.7348, allocations: 1.302 MB / 0.5945 GB, free: 3.098 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00295/0.7377, allocations: 1.787 MB / 0.5962 GB, free: 1.297 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001026/0.7379, allocations: 301.1 kB / 0.5965 GB, free: 1 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006073/0.7439, allocations: 3.656 MB / 0.6001 GB, free: 13.34 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01177/0.7557, allocations: 8.628 MB / 0.6085 GB, free: 2.262 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01784/0.7736, allocations: 13.03 MB / 0.6213 GB, free: 2.758 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001775/0.7738, allocations: 48 kB / 0.6213 GB, free: 2.711 MB / 494.1 MB Notification: Performance of matching and sorting (n=1172) (initialization): time 0.328/1.102, allocations: 17.06 MB / 0.638 GB, free: 152.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.102, allocations: 82.5 kB / 0.638 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02938/1.131, allocations: 9.691 MB / 0.6475 GB, free: 150.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02796/1.159, allocations: 6.166 MB / 0.6535 GB, free: 147.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006733/1.166, allocations: 2.051 MB / 0.6555 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02195/1.188, allocations: 19.3 MB / 0.6744 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008178/1.196, allocations: 0.7088 MB / 0.6751 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.198, allocations: 0.5262 MB / 0.6756 GB, free: 127.2 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 792 * Number of states: 0 () * Number of discrete variables: 66 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],springDamperSeries.color[3],springDamperSeries.color[2],springDamperSeries.color[1],springDamperSeries.color_b[3],springDamperSeries.color_b[2],springDamperSeries.color_b[1],springDamperSeries.color_a[3],springDamperSeries.color_a[2],springDamperSeries.color_a[1],bar3.color[3],bar3.color[2],bar3.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1106): * Single equations (assignments): 1085 * Array equations: 9 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 3 systems {4, 4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,1,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005291/1.203, allocations: 2.738 MB / 0.6783 GB, free: 124.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001437/1.205, allocations: 0.5005 MB / 0.6787 GB, free: 124.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.218, allocations: 7.39 MB / 0.686 GB, free: 116.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01173/1.23, allocations: 6.592 MB / 0.6924 GB, free: 110.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.591e-05/1.23, allocations: 4 kB / 0.6924 GB, free: 110.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-05/1.23, allocations: 19.94 kB / 0.6924 GB, free: 110.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02703/1.257, allocations: 17.17 MB / 0.7092 GB, free: 93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.888e-05/1.257, allocations: 8 kB / 0.7092 GB, free: 92.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002728/1.26, allocations: 0.5851 MB / 0.7098 GB, free: 92.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007959/1.268, allocations: 2.911 MB / 0.7126 GB, free: 89.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006747/1.268, allocations: 91.94 kB / 0.7127 GB, free: 89.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/1.28, allocations: 14.65 MB / 0.727 GB, free: 74 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002171/1.282, allocations: 4.714 MB / 0.7316 GB, free: 68.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01719/1.299, allocations: 11.37 MB / 0.7427 GB, free: 57.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/1.301, allocations: 0.5611 MB / 0.7432 GB, free: 56.89 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007174/1.301, allocations: 77.09 kB / 0.7433 GB, free: 56.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002782/1.304, allocations: 326.6 kB / 0.7436 GB, free: 56.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005706/1.305, allocations: 241.4 kB / 0.7439 GB, free: 56.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002272/1.305, allocations: 99.95 kB / 0.744 GB, free: 56.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004005/1.309, allocations: 3.163 MB / 0.747 GB, free: 53.01 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.309, allocations: 4 kB / 0.7471 GB, free: 53.01 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006868/1.316, allocations: 1.8 MB / 0.7488 GB, free: 51.21 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 37 ($STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],springDamperSeries.s_damper,body3.frame_a.r_0[1],body3.frame_a.r_0[2],body3.frame_a.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body3.w_a[1],body3.w_a[2],body3.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 258 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(4,100.0%), (3,100.0%), (3,100.0%), (4,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 3 systems {4, 4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,1,100.0%), (2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005649/1.317, allocations: 252.2 kB / 0.7491 GB, free: 50.97 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01603/1.333, allocations: 10.78 MB / 0.7596 GB, free: 40 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/1.333, allocations: 0 / 0.7596 GB, free: 40 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.008858/1.342, allocations: 5.149 MB / 0.7646 GB, free: 34.64 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004534/1.346, allocations: 0.6635 MB / 0.7653 GB, free: 33.99 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02316/1.369, allocations: 15.68 MB / 0.7806 GB, free: 18.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003803/1.373, allocations: 4.297 MB / 0.7848 GB, free: 13.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005315/1.378, allocations: 2.56 MB / 0.7873 GB, free: 11.29 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/1.38, allocations: 375.3 kB / 0.7876 GB, free: 10.93 MB / 494.1 MB Notification: Performance of SimCode: time 9.91e-07/1.38, allocations: 0 / 0.7876 GB, free: 10.93 MB / 494.1 MB Notification: Performance of Templates: time 0.3302/1.71, allocations: 68.6 MB / 0.8546 GB, free: 137.8 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.pipe 2>&1)