Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00101/0.00101, allocations: 106.4 kB / 17.74 MB, free: 5.348 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.001276/0.001277, allocations: 185.4 kB / 18.67 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009845/0.0009845, allocations: 55.91 kB / 352 MB, free: 3.25 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2141/0.2151, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007755/0.2229, allocations: 7.426 MB / 408.8 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004952/0.2278, allocations: 3.246 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000457/0.2283, allocations: 31.94 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.2301, allocations: 1.027 MB / 413.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002316/0.2325, allocations: 1.399 MB / 414.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008156/0.2333, allocations: 451.2 kB / 415 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002729/0.236, allocations: 2.639 MB / 417.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.2378, allocations: 1.52 MB / 419.2 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.239, allocations: 0.8486 MB / 420 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001653/0.2406, allocations: 1.219 MB / 421.2 MB, free: 4.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004379/0.2411, allocations: 168 kB / 421.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001675/0.2428, allocations: 1.034 MB / 422.4 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000945/0.2437, allocations: 1.118 MB / 423.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.2449, allocations: 1.305 MB / 424.8 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00354/0.2484, allocations: 4.353 MB / 429.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.2484, allocations: 7.938 kB / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2484, allocations: 0 / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.05e-05/0.2485, allocations: 0 / 429.2 MB, free: 12.98 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.004814/0.2533, allocations: 3.055 MB / 432.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2534, allocations: 12.02 kB / 432.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006514/0.2599, allocations: 1.729 MB / 434 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.2624, allocations: 1.41 MB / 435.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-05/0.2625, allocations: 131.2 kB / 435.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006164/0.2631, allocations: 259.6 kB / 435.8 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009052/0.2722, allocations: 6.656 MB / 442.4 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.713e-05/0.2722, allocations: 27.81 kB / 442.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000251/0.2725, allocations: 87.89 kB / 442.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002081/0.2746, allocations: 1.363 MB / 443.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009729/0.2843, allocations: 6.033 MB / 449.9 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02506/0.3094, allocations: 25.54 MB / 475.5 MB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006787/0.3162, allocations: 2.674 MB / 478.2 MB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001249/0.3175, allocations: 1.032 MB / 479.2 MB, free: 9.488 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005388/0.3229, allocations: 3.884 MB / 483.1 MB, free: 5.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.17e-05/0.3229, allocations: 47.12 kB / 483.1 MB, free: 5.293 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 2.906e-06/0.3229, allocations: 4 kB / 483.1 MB, free: 5.289 MB / 398.1 MB Notification: Performance of matching and sorting (n=119): time 0.02515/0.3481, allocations: 9.792 MB / 492.9 MB, free: 11.33 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.331e-05/0.3482, allocations: 145.2 kB / 493.1 MB, free: 11.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003246/0.3514, allocations: 2.733 MB / 495.8 MB, free: 8.402 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.832e-05/0.3515, allocations: 37.7 kB / 495.8 MB, free: 8.359 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001256/0.3528, allocations: 2.087 MB / 497.9 MB, free: 6.242 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003759/0.3532, allocations: 486 kB / 498.4 MB, free: 5.762 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001048/0.3542, allocations: 0.9085 MB / 499.3 MB, free: 4.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.156e-05/0.3543, allocations: 301.1 kB / 499.6 MB, free: 4.543 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/0.3566, allocations: 1.555 MB / 0.4894 GB, free: 2.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003889/0.3605, allocations: 4.354 MB / 0.4937 GB, free: 13.22 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006526/0.367, allocations: 6.376 MB / 0.4999 GB, free: 5.453 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.619e-05/0.3671, allocations: 28 kB / 0.4999 GB, free: 5.426 MB / 430.1 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.01869/0.3858, allocations: 7.776 MB / 0.5075 GB, free: 13.63 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.017e-05/0.3858, allocations: 48 kB / 0.5076 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01152/0.3974, allocations: 3.272 MB / 0.5107 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01241/0.4098, allocations: 2.585 MB / 0.5133 GB, free: 7.699 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/0.4128, allocations: 0.9942 MB / 0.5142 GB, free: 6.703 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/0.4272, allocations: 9.704 MB / 0.5237 GB, free: 12.72 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002952/0.4302, allocations: 271.6 kB / 0.524 GB, free: 12.45 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004391/0.4306, allocations: 272 kB / 0.5242 GB, free: 12.19 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (542): * Single equations (assignments): 536 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001948/0.4326, allocations: 1.423 MB / 0.5256 GB, free: 10.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000403/0.433, allocations: 228.9 kB / 0.5258 GB, free: 10.52 MB / 462.1 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 65 equation(s) and 62 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001498/0.4345, allocations: 0.8668 MB / 0.5267 GB, free: 9.645 MB / 462.1 MB Error: post-optimization module wrapFunctionCalls (simulation) failed. Error: Internal error SimCode DAEmode: The model Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass could not be translated