Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|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.|springDamperSeries.s_damper",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.|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.|springDamperSeries.s_damper",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002064/0.002064, allocations: 178.2 kB / 17.39 MB, free: 4.301 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.417/2.417, allocations: 205.4 MB / 223.5 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001055/0.001055, allocations: 96.67 kB / 271.9 MB, free: 8.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005051/0.0005051, allocations: 8 kB / 328.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4998/0.5004, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.05968/0.5602, allocations: 54.97 MB / 430.7 MB, free: 9.602 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05329/0.6135, allocations: 11.57 MB / 442.3 MB, free: 14 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02386/0.6375, allocations: 259.3 kB / 442.5 MB, free: 13.75 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0176/0.6552, allocations: 2.819 MB / 445.4 MB, free: 10.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0432/0.6985, allocations: 8.43 MB / 453.8 MB, free: 2.449 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008695/0.7072, allocations: 0.9245 MB / 454.7 MB, free: 1.523 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01645/0.7237, allocations: 6.91 MB / 461.6 MB, free: 10.6 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01542/0.7392, allocations: 6.072 MB / 467.7 MB, free: 4.414 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007957/0.7472, allocations: 1.794 MB / 469.5 MB, free: 2.613 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008854/0.7561, allocations: 2.827 MB / 472.3 MB, free: 15.78 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00322/0.7594, allocations: 208 kB / 472.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006765/0.7662, allocations: 1.174 MB / 473.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.007044/0.7733, allocations: 2.447 MB / 476.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01028/0.7836, allocations: 2.666 MB / 478.8 MB, free: 9.258 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01633/0.8, allocations: 7.092 MB / 485.9 MB, free: 2.148 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.293e-05/0.8001, allocations: 3.938 kB / 485.9 MB, free: 2.145 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.488e-06/0.8001, allocations: 0 / 485.9 MB, free: 2.145 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0007314/0.8009, allocations: 4 kB / 485.9 MB, free: 2.141 MB / 362.7 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.02426/0.8252, allocations: 5.672 MB / 491.6 MB, free: 12.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001016/0.8253, allocations: 15.97 kB / 491.6 MB, free: 12.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01353/0.8388, allocations: 2.668 MB / 494.3 MB, free: 9.691 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01266/0.8515, allocations: 3.336 MB / 497.6 MB, free: 6.297 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000684/0.8522, allocations: 360.7 kB / 498 MB, free: 5.941 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003959/0.8562, allocations: 0.6749 MB / 498.6 MB, free: 5.266 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4625/1.319, allocations: 17.42 MB / 0.5039 GB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/1.319, allocations: 57.66 kB / 0.504 GB, free: 102.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007637/1.32, allocations: 220.7 kB / 0.5042 GB, free: 102.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004959/1.325, allocations: 2.84 MB / 0.507 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04073/1.366, allocations: 15.26 MB / 0.5219 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1101/1.476, allocations: 58.88 MB / 0.5794 GB, free: 28.1 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01972/1.495, allocations: 7.117 MB / 0.5863 GB, free: 20.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005697/1.501, allocations: 3.246 MB / 0.5895 GB, free: 17.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03055/1.532, allocations: 14.46 MB / 0.6036 GB, free: 2.602 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000123/1.532, allocations: 64.56 kB / 0.6037 GB, free: 2.531 MB / 378.7 MB Notification: Performance of pre-optimization done (n=289): time 1.153e-05/1.532, allocations: 1.031 kB / 0.6037 GB, free: 2.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=303): time 0.08236/1.614, allocations: 24.83 MB / 0.6279 GB, free: 9.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/1.615, allocations: 158.6 kB / 0.6281 GB, free: 9.246 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01273/1.627, allocations: 5.106 MB / 0.6331 GB, free: 4.145 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001531/1.629, allocations: 71.66 kB / 0.6331 GB, free: 4.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005296/1.634, allocations: 4.168 MB / 0.6372 GB, free: 15.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003235/1.638, allocations: 1.172 MB / 0.6384 GB, free: 14.71 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001722/1.639, allocations: 176 kB / 0.6385 GB, free: 14.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.001154/1.641, allocations: 0.674 MB / 0.6392 GB, free: 13.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00956/1.65, allocations: 3.324 MB / 0.6424 GB, free: 10.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4531/2.103, allocations: 8.278 MB / 0.6505 GB, free: 135.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02369/2.127, allocations: 12.46 MB / 0.6627 GB, free: 126.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002811/2.127, allocations: 48.69 kB / 0.6627 GB, free: 126.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.05424/2.182, allocations: 16.32 MB / 0.6787 GB, free: 121.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004786/2.182, allocations: 78.06 kB / 0.6787 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.03196/2.214, allocations: 9.045 MB / 0.6876 GB, free: 115.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02837/2.243, allocations: 6.152 MB / 0.6936 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008599/2.251, allocations: 2.021 MB / 0.6956 GB, free: 107.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02391/2.275, allocations: 17.66 MB / 0.7128 GB, free: 89.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01033/2.286, allocations: 0.5455 MB / 0.7133 GB, free: 88.55 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002873/2.289, allocations: 0.5017 MB / 0.7138 GB, free: 88.05 MB / 426.7 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 (1091): * Single equations (assignments): 1076 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 9 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 3 {4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 1,(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01047/2.299, allocations: 2.721 MB / 0.7165 GB, free: 85.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002634/2.302, allocations: 476.2 kB / 0.7169 GB, free: 85.16 MB / 426.7 MB Warning: After manipulating the system with postOptModule wrapFunctionCalls the system is unbalanced. This indicates that the original system is singular. You can use -d=dumpCSE and -d=dumpCSE_verbose for more information. Error: Too many equations, over-determined system. The model has 257 equation(s) and 246 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00767/2.309, allocations: 2.607 MB / 0.7195 GB, free: 82.54 MB / 426.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.