Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003995/0.0003997, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.109, allocations: 44.51 MB / 309 MB, free: 1.043 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.02397/0.133, allocations: 14.53 MB / 323.5 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01318/0.1462, allocations: 4.57 MB / 328.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002798/0.1491, allocations: 67.81 kB / 328.2 MB, free: 13.82 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00218/0.1513, allocations: 0.6844 MB / 328.8 MB, free: 13.13 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009388/0.1607, allocations: 2.291 MB / 331.1 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00172/0.1625, allocations: 359.4 kB / 331.5 MB, free: 10.48 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003919/0.1664, allocations: 1.49 MB / 333 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00368/0.1701, allocations: 1.83 MB / 334.8 MB, free: 7.109 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001132/0.1713, allocations: 0.6112 MB / 335.4 MB, free: 6.496 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001627/0.1729, allocations: 0.8762 MB / 336.3 MB, free: 5.617 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003546/0.1733, allocations: 84 kB / 336.4 MB, free: 5.535 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002229/0.1756, allocations: 0.8347 MB / 337.2 MB, free: 4.699 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001324/0.1769, allocations: 0.9234 MB / 338.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007024/0.1776, allocations: 0.5001 MB / 338.6 MB, free: 3.266 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005569/0.1832, allocations: 3.247 MB / 341.9 MB, free: 12 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1833, allocations: 3.938 kB / 341.9 MB, free: 8 kB / 282.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.1833, allocations: 4 kB / 341.9 MB, free: 4 kB / 282.7 MB Notification: Performance of Transformations before backend: time 6.934e-05/0.1834, allocations: 0 / 341.9 MB, free: 4 kB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.008111/0.1915, allocations: 2.544 MB / 344.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.474e-05/0.1916, allocations: 8.031 kB / 344.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01376/0.2053, allocations: 2.079 MB / 346.5 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004666/0.21, allocations: 1.589 MB / 348.1 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001679/0.2102, allocations: 131.2 kB / 348.2 MB, free: 9.547 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001202/0.2115, allocations: 255.6 kB / 348.5 MB, free: 9.297 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01772/0.2292, allocations: 6.56 MB / 355 MB, free: 2.273 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001121/0.2294, allocations: 31.73 kB / 355.1 MB, free: 2.242 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004717/0.2298, allocations: 83.91 kB / 355.2 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004024/0.2339, allocations: 1.343 MB / 356.5 MB, free: 0.8125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01946/0.2534, allocations: 5.963 MB / 362.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3166/0.57, allocations: 25.21 MB / 387.7 MB, free: 43.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01141/0.5815, allocations: 2.531 MB / 390.2 MB, free: 42.62 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007889/0.5895, allocations: 3.56 MB / 393.8 MB, free: 40.39 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.5895, allocations: 46.88 kB / 393.8 MB, free: 40.34 MB / 314.7 MB Notification: Performance of pre-optimization done (n=105): time 5.34e-06/0.5896, allocations: 0 / 393.8 MB, free: 40.34 MB / 314.7 MB Notification: Performance of matching and sorting (n=112): time 0.04164/0.6312, allocations: 9.862 MB / 403.7 MB, free: 35.63 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.6313, allocations: 143.1 kB / 403.8 MB, free: 35.47 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00471/0.636, allocations: 2.813 MB / 406.6 MB, free: 33.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/0.6363, allocations: 41.17 kB / 406.7 MB, free: 33.94 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001268/0.6376, allocations: 2.062 MB / 408.7 MB, free: 32.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004837/0.6381, allocations: 459.9 kB / 409.2 MB, free: 31.75 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002763/0.6384, allocations: 86.58 kB / 409.3 MB, free: 31.68 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000252/0.6386, allocations: 0.4949 MB / 409.7 MB, free: 31.23 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/0.642, allocations: 1.541 MB / 411.3 MB, free: 30.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004528/0.6466, allocations: 4.311 MB / 415.6 MB, free: 24.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004967/0.6516, allocations: 2.522 MB / 418.1 MB, free: 22.06 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.847e-05/0.6517, allocations: 28 kB / 418.2 MB, free: 22.03 MB / 314.7 MB Notification: Performance of matching and sorting (n=572) (initialization): time 0.03493/0.6866, allocations: 7.648 MB / 425.8 MB, free: 14.37 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.003e-05/0.6867, allocations: 51.98 kB / 425.8 MB, free: 14.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02755/0.7143, allocations: 3.255 MB / 429.1 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02961/0.744, allocations: 2.604 MB / 431.7 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005405/0.7494, allocations: 0.9747 MB / 432.7 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0233/0.7727, allocations: 9.346 MB / 442 MB, free: 13.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004812/0.7776, allocations: 267.7 kB / 442.3 MB, free: 13.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009308/0.7786, allocations: 275 kB / 442.6 MB, free: 13.32 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 449 * Number of states: 0 () * Number of discrete variables: 18 (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.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 (528): * Single equations (assignments): 522 * 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.003773/0.7824, allocations: 1.396 MB / 444 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006978/0.7831, allocations: 229 kB / 444.2 MB, free: 11.69 MB / 330.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 59 equation(s) and 56 variable(s). Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002555/0.7856, allocations: 0.8477 MB / 445 MB, free: 10.83 MB / 330.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.