Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.00149/0.00149, allocations: 107.8 kB / 18.36 MB, free: 4.844 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.001955/0.001955, allocations: 184.2 kB / 19.29 MB, free: 3.918 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.294/1.294, allocations: 205.1 MB / 225.2 MB, free: 12.25 MB / 190.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.001183/0.001183, allocations: 47.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07255/0.07374, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1558/0.2296, allocations: 7.45 MB / 383.2 MB, free: 9.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005343/0.2349, allocations: 3.238 MB / 386.5 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009625/0.236, allocations: 36.41 kB / 386.5 MB, free: 7.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002112/0.2381, allocations: 1.025 MB / 387.5 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003067/0.2412, allocations: 1.364 MB / 388.9 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009801/0.2422, allocations: 461.7 kB / 389.3 MB, free: 6.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003112/0.2453, allocations: 2.635 MB / 392 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001909/0.2472, allocations: 1.533 MB / 393.5 MB, free: 5.199 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001314/0.2485, allocations: 0.8444 MB / 394.3 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.2503, allocations: 1.224 MB / 395.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005/0.2508, allocations: 170.8 kB / 395.7 MB, free: 4.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001737/0.2526, allocations: 1.025 MB / 396.8 MB, free: 4.152 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008547/0.2534, allocations: 1.108 MB / 397.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009405/0.2544, allocations: 1.301 MB / 399.2 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003273/0.2577, allocations: 4.368 MB / 403.5 MB, free: 15.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2577, allocations: 9.156 kB / 403.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2577, allocations: 0 / 403.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.834e-05/0.2577, allocations: 0 / 403.5 MB, free: 15.98 MB / 334.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.005131/0.2629, allocations: 3.046 MB / 406.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.2629, allocations: 7.562 kB / 406.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006819/0.2698, allocations: 1.737 MB / 408.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/0.272, allocations: 1.463 MB / 409.8 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.696e-05/0.2721, allocations: 135.1 kB / 409.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000644/0.2727, allocations: 258.8 kB / 410.2 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009783/0.2825, allocations: 6.651 MB / 416.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.666e-05/0.2826, allocations: 35.75 kB / 416.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002765/0.2829, allocations: 83.91 kB / 416.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002247/0.2852, allocations: 1.363 MB / 418.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/0.2956, allocations: 6.037 MB / 424.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02633/0.3219, allocations: 25.53 MB / 449.9 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007337/0.3293, allocations: 2.672 MB / 452.5 MB, free: 1.266 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001348/0.3307, allocations: 1.032 MB / 453.6 MB, free: 228 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005056/0.3357, allocations: 3.899 MB / 457.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.111e-05/0.3358, allocations: 47.94 kB / 457.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 2.995e-06/0.3358, allocations: 0 / 457.5 MB, free: 12.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=119): time 0.02598/0.3618, allocations: 9.794 MB / 467.3 MB, free: 2.055 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.3618, allocations: 145 kB / 467.5 MB, free: 1.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003364/0.3652, allocations: 2.741 MB / 470.2 MB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.3653, allocations: 41.7 kB / 470.2 MB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.3667, allocations: 2.075 MB / 472.3 MB, free: 12.97 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004112/0.3671, allocations: 0.4901 MB / 472.8 MB, free: 12.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00116/0.3682, allocations: 0.9007 MB / 473.7 MB, free: 11.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.034e-05/0.3683, allocations: 301.1 kB / 474 MB, free: 11.26 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002426/0.3708, allocations: 1.555 MB / 475.6 MB, free: 9.699 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004085/0.3749, allocations: 4.35 MB / 479.9 MB, free: 3.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006869/0.3818, allocations: 6.38 MB / 486.3 MB, free: 12.17 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.553e-05/0.3818, allocations: 32 kB / 486.3 MB, free: 12.14 MB / 414.1 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.01949/0.4013, allocations: 7.781 MB / 494.1 MB, free: 4.336 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.267e-05/0.4014, allocations: 48 kB / 494.1 MB, free: 4.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01213/0.4136, allocations: 3.271 MB / 497.4 MB, free: 1 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0128/0.4264, allocations: 2.588 MB / 0.4883 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002819/0.4292, allocations: 0.9942 MB / 0.4893 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01488/0.4441, allocations: 9.702 MB / 0.4987 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002873/0.447, allocations: 267.8 kB / 0.499 GB, free: 3.156 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003598/0.4474, allocations: 276 kB / 0.4992 GB, free: 2.887 MB / 430.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.001938/0.4493, allocations: 1.419 MB / 0.5006 GB, free: 1.457 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004126/0.4497, allocations: 232.9 kB / 0.5009 GB, free: 1.227 MB / 430.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.001547/0.4513, allocations: 0.8708 MB / 0.5017 GB, free: 352 kB / 430.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