Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001907/0.001907, allocations: 196.3 kB / 18.04 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 226.5 MB / 245.3 MB, free: 6.426 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007456/0.0007457, allocations: 99.16 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003098/0.0003098, allocations: 8 kB / 357.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2476/0.2479, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.HeatLosses): time 0.04196/0.2899, allocations: 54.92 MB / 463.6 MB, free: 4.609 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02555/0.3155, allocations: 11.63 MB / 475.3 MB, free: 8.957 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007436/0.323, allocations: 259.3 kB / 475.5 MB, free: 8.703 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006282/0.3293, allocations: 2.822 MB / 478.3 MB, free: 5.867 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02069/0.35, allocations: 8.412 MB / 486.7 MB, free: 13.42 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004553/0.3546, allocations: 0.9245 MB / 487.7 MB, free: 12.5 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.009038/0.3636, allocations: 7.06 MB / 494.7 MB, free: 5.422 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009105/0.3728, allocations: 6.038 MB / 0.489 GB, free: 15.27 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0036/0.3764, allocations: 1.794 MB / 0.4908 GB, free: 13.47 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004877/0.3813, allocations: 2.808 MB / 0.4935 GB, free: 10.66 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001439/0.3828, allocations: 211.9 kB / 0.4937 GB, free: 10.45 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003606/0.3864, allocations: 1.17 MB / 0.4949 GB, free: 9.277 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003986/0.3904, allocations: 2.427 MB / 0.4972 GB, free: 6.844 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004791/0.3952, allocations: 2.673 MB / 0.4998 GB, free: 4.148 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.243/0.6382, allocations: 7.08 MB / 0.5068 GB, free: 14.47 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.6383, allocations: 0 / 0.5068 GB, free: 14.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.6383, allocations: 0 / 0.5068 GB, free: 14.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003264/0.6386, allocations: 0 / 0.5068 GB, free: 14.47 MB / 378.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.01302/0.6517, allocations: 5.657 MB / 0.5123 GB, free: 12.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.6517, allocations: 9.219 kB / 0.5123 GB, free: 12.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01139/0.6631, allocations: 2.826 MB / 0.5151 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007519/0.6707, allocations: 3.117 MB / 0.5181 GB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000401/0.6711, allocations: 358.3 kB / 0.5184 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002269/0.6734, allocations: 0.6742 MB / 0.5191 GB, free: 10.92 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0349/0.7083, allocations: 17.41 MB / 0.5361 GB, free: 8.168 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000196/0.7085, allocations: 58 kB / 0.5362 GB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008006/0.7094, allocations: 221.6 kB / 0.5364 GB, free: 8.164 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004186/0.7136, allocations: 2.849 MB / 0.5392 GB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03101/0.7446, allocations: 15.26 MB / 0.5541 GB, free: 268 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09402/0.8386, allocations: 58.85 MB / 0.6115 GB, free: 14.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0188/0.8575, allocations: 7.127 MB / 0.6185 GB, free: 8.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005275/0.8628, allocations: 3.235 MB / 0.6216 GB, free: 5.41 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02538/0.8882, allocations: 14.47 MB / 0.6358 GB, free: 6.559 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.975e-05/0.8883, allocations: 64.56 kB / 0.6358 GB, free: 6.488 MB / 458.7 MB Notification: Performance of pre-optimization done (n=289): time 6.733e-06/0.8883, allocations: 0 / 0.6358 GB, free: 6.488 MB / 458.7 MB Notification: Performance of matching and sorting (n=303): time 0.0674/0.9557, allocations: 24.77 MB / 0.66 GB, free: 13.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.9559, allocations: 161.8 kB / 0.6602 GB, free: 13.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01118/0.9671, allocations: 5.069 MB / 0.6651 GB, free: 8.262 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00104/0.9682, allocations: 73.7 kB / 0.6652 GB, free: 8.184 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003743/0.9719, allocations: 4.163 MB / 0.6693 GB, free: 4.043 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001768/0.9737, allocations: 1.175 MB / 0.6704 GB, free: 2.879 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009171/0.9746, allocations: 176 kB / 0.6706 GB, free: 2.707 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006397/0.9753, allocations: 0.6701 MB / 0.6712 GB, free: 2.027 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006051/0.9814, allocations: 3.32 MB / 0.6745 GB, free: 14.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009242/0.9906, allocations: 8.286 MB / 0.6826 GB, free: 4.051 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2212/1.212, allocations: 12.46 MB / 0.6947 GB, free: 191.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001626/1.212, allocations: 53.16 kB / 0.6948 GB, free: 191.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1145) (initialization): time 0.04528/1.257, allocations: 16.53 MB / 0.7109 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.257, allocations: 80.22 kB / 0.711 GB, free: 186.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02627/1.284, allocations: 9.256 MB / 0.72 GB, free: 180.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02624/1.31, allocations: 6.438 MB / 0.7263 GB, free: 174.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006292/1.316, allocations: 2.012 MB / 0.7283 GB, free: 172.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02011/1.337, allocations: 17.74 MB / 0.7456 GB, free: 153.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007326/1.344, allocations: 0.5388 MB / 0.7461 GB, free: 153.3 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001064/1.345, allocations: 0.4988 MB / 0.7466 GB, free: 152.8 MB / 0.4948 GB 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.004278/1.349, allocations: 2.725 MB / 0.7493 GB, free: 150.2 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006786/1.35, allocations: 473.9 kB / 0.7498 GB, free: 149.9 MB / 0.4948 GB 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.003717/1.354, allocations: 2.61 MB / 0.7523 GB, free: 147.3 MB / 0.4948 GB Error: post-optimization module wrapFunctionCalls (simulation) failed.