Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002137/0.002137, allocations: 178.2 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.003/3.003, allocations: 205.4 MB / 223.5 MB, free: 9.008 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.001288/0.001288, allocations: 86.36 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001038/0.001039, allocations: 8 kB / 328.2 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5377/0.5388, allocations: 47.57 MB / 375.8 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.02331/0.5622, allocations: 16.12 MB / 391.9 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01739/0.5797, allocations: 4.659 MB / 396.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007073/0.5869, allocations: 71.81 kB / 396.6 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003005/0.5899, allocations: 0.7854 MB / 397.4 MB, free: 27.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01022/0.6002, allocations: 2.685 MB / 400.1 MB, free: 24.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001699/0.6019, allocations: 411.3 kB / 400.5 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00449/0.6064, allocations: 2.891 MB / 403.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003154/0.6096, allocations: 1.981 MB / 405.3 MB, free: 19 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001584/0.6112, allocations: 0.7355 MB / 406.1 MB, free: 18.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001531/0.6127, allocations: 1.211 MB / 407.3 MB, free: 17.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002621/0.613, allocations: 88 kB / 407.4 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00227/0.6153, allocations: 0.9867 MB / 408.4 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.6164, allocations: 1.021 MB / 409.4 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001184/0.6175, allocations: 1.174 MB / 410.6 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003434/0.621, allocations: 3.278 MB / 413.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.376e-06/0.621, allocations: 0 / 413.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.621, allocations: 0 / 413.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.883e-05/0.6211, allocations: 0 / 413.8 MB, free: 10.48 MB / 298.7 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.005547/0.6267, allocations: 2.536 MB / 416.4 MB, free: 7.887 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.871e-05/0.6268, allocations: 8.031 kB / 416.4 MB, free: 7.879 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006006/0.6328, allocations: 1.783 MB / 418.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003509/0.6363, allocations: 1.445 MB / 419.6 MB, free: 4.598 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001474/0.6365, allocations: 131.3 kB / 419.7 MB, free: 4.469 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006731/0.6372, allocations: 259.7 kB / 420 MB, free: 4.215 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01209/0.6493, allocations: 6.652 MB / 426.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000123/0.6494, allocations: 35.66 kB / 426.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003008/0.6498, allocations: 87.89 kB / 426.8 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002449/0.6522, allocations: 1.359 MB / 428.1 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.6687, allocations: 6.025 MB / 434.1 MB, free: 5.594 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05046/0.7192, allocations: 25.61 MB / 459.8 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009128/0.7284, allocations: 2.673 MB / 462.4 MB, free: 8.391 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00258/0.7311, allocations: 1.028 MB / 463.5 MB, free: 7.352 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01033/0.7414, allocations: 3.892 MB / 467.4 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.149e-05/0.7416, allocations: 55.06 kB / 467.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 7.344e-06/0.7416, allocations: 0 / 467.4 MB, free: 3.141 MB / 346.7 MB Notification: Performance of matching and sorting (n=119): time 0.03283/0.7745, allocations: 9.808 MB / 477.2 MB, free: 9.168 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/0.7747, allocations: 145 kB / 477.4 MB, free: 8.996 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007455/0.7821, allocations: 2.725 MB / 480.1 MB, free: 6.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004307/0.7826, allocations: 41.7 kB / 480.1 MB, free: 6.203 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002658/0.7853, allocations: 2.079 MB / 482.2 MB, free: 4.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001233/0.7865, allocations: 493.9 kB / 482.7 MB, free: 3.605 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005276/0.7871, allocations: 95.98 kB / 482.8 MB, free: 3.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005876/0.7877, allocations: 499.9 kB / 483.3 MB, free: 3.016 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00371/0.7914, allocations: 1.539 MB / 484.8 MB, free: 1.469 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006989/0.7984, allocations: 4.33 MB / 489.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0119/0.8103, allocations: 6.346 MB / 495.5 MB, free: 3.992 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001986/0.8106, allocations: 32 kB / 495.5 MB, free: 3.961 MB / 378.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.02721/0.8379, allocations: 7.749 MB / 0.4915 GB, free: 12.2 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003998/0.8383, allocations: 48 kB / 0.4915 GB, free: 12.15 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01304/0.8514, allocations: 3.268 MB / 0.4947 GB, free: 8.867 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01261/0.8641, allocations: 2.588 MB / 0.4972 GB, free: 6.27 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004603/0.8687, allocations: 0.9981 MB / 0.4982 GB, free: 5.27 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4618/1.331, allocations: 8.85 MB / 0.5068 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007587/1.338, allocations: 269.5 kB / 0.5071 GB, free: 116.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002251/1.341, allocations: 277.5 kB / 0.5074 GB, free: 116.7 MB / 394.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00721/1.348, allocations: 1.41 MB / 0.5087 GB, free: 116.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00185/1.35, allocations: 228.3 kB / 0.509 GB, free: 116.2 MB / 394.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 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.003382/1.353, allocations: 0.8738 MB / 0.5098 GB, free: 115.8 MB / 394.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.