Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.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_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001016, allocations: 199.4 kB / 18.05 MB, free: 3.633 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 245.3 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007756/0.0007754, allocations: 103.8 kB / 297.4 MB, free: 6.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002311/0.0002311, allocations: 4 kB / 357.4 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3453, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01453/0.3599, allocations: 16.12 MB / 424.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01199/0.372, allocations: 4.699 MB / 429.5 MB, free: 6.836 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004117/0.3762, allocations: 71.81 kB / 429.6 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002427/0.3787, allocations: 0.7854 MB / 430.4 MB, free: 5.977 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007651/0.3863, allocations: 2.674 MB / 433 MB, free: 3.293 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001925/0.3883, allocations: 403.4 kB / 433.4 MB, free: 2.898 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004238/0.3925, allocations: 2.945 MB / 436.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003945/0.3965, allocations: 1.965 MB / 438.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.3983, allocations: 0.7355 MB / 439.1 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002233/0.4006, allocations: 1.203 MB / 440.3 MB, free: 11.98 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006548/0.4013, allocations: 88 kB / 440.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002401/0.4037, allocations: 0.9865 MB / 441.4 MB, free: 10.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.4053, allocations: 1.021 MB / 442.4 MB, free: 9.883 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00241/0.4077, allocations: 1.163 MB / 443.5 MB, free: 8.707 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004395/0.4121, allocations: 3.271 MB / 446.8 MB, free: 5.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.4122, allocations: 0 / 446.8 MB, free: 5.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.4122, allocations: 0 / 446.8 MB, free: 5.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 9.229e-05/0.4123, allocations: 0 / 446.8 MB, free: 5.43 MB / 314.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.005508/0.4178, allocations: 2.536 MB / 449.3 MB, free: 2.836 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.4178, allocations: 12.03 kB / 449.4 MB, free: 2.824 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007041/0.4249, allocations: 1.83 MB / 451.2 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/0.4289, allocations: 1.355 MB / 452.5 MB, free: 15.59 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.4291, allocations: 143.2 kB / 452.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00072/0.4298, allocations: 255.6 kB / 452.9 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.4422, allocations: 6.664 MB / 459.6 MB, free: 8.066 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001213/0.4423, allocations: 27.72 kB / 459.6 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006304/0.443, allocations: 83.91 kB / 459.7 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002398/0.4454, allocations: 1.367 MB / 461.1 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01326/0.4587, allocations: 6.017 MB / 467.1 MB, free: 0.5664 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03822/0.4969, allocations: 25.61 MB / 492.7 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006872/0.5039, allocations: 2.667 MB / 495.4 MB, free: 3.363 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.5055, allocations: 1.035 MB / 496.4 MB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006605/0.5121, allocations: 3.888 MB / 0.4886 GB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.5122, allocations: 51.06 kB / 0.4886 GB, free: 14.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 4.959e-06/0.5122, allocations: 0 / 0.4886 GB, free: 14.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=119): time 0.02519/0.5374, allocations: 9.805 MB / 0.4982 GB, free: 4.152 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.251e-05/0.5375, allocations: 137.1 kB / 0.4983 GB, free: 3.988 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004481/0.542, allocations: 2.714 MB / 0.501 GB, free: 1.254 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001928/0.5422, allocations: 45.7 kB / 0.501 GB, free: 1.203 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1911/0.7333, allocations: 2.08 MB / 0.503 GB, free: 93.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000734/0.7341, allocations: 495.2 kB / 0.5035 GB, free: 93.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002962/0.7344, allocations: 88.98 kB / 0.5036 GB, free: 93.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002938/0.7347, allocations: 0.4944 MB / 0.5041 GB, free: 92.83 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002754/0.7374, allocations: 1.534 MB / 0.5056 GB, free: 92.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003226/0.7407, allocations: 4.335 MB / 0.5098 GB, free: 88.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006229/0.7469, allocations: 6.349 MB / 0.516 GB, free: 82.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.386e-05/0.747, allocations: 26.69 kB / 0.516 GB, free: 82.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=586) (initialization): time 0.01686/0.7639, allocations: 7.814 MB / 0.5237 GB, free: 79.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.229e-05/0.764, allocations: 51.94 kB / 0.5237 GB, free: 79.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009334/0.7733, allocations: 3.347 MB / 0.527 GB, free: 76.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0106/0.784, allocations: 2.674 MB / 0.5296 GB, free: 73.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/0.787, allocations: 0.9942 MB / 0.5306 GB, free: 72.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01098/0.798, allocations: 8.883 MB / 0.5392 GB, free: 63.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003377/0.8015, allocations: 271.7 kB / 0.5395 GB, free: 63.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003376/0.8018, allocations: 272 kB / 0.5398 GB, free: 63.15 MB / 378.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.001839/0.8037, allocations: 1.411 MB / 0.5411 GB, free: 61.72 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002961/0.804, allocations: 232.9 kB / 0.5414 GB, free: 61.49 MB / 378.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.001192/0.8052, allocations: 0.8747 MB / 0.5422 GB, free: 60.61 MB / 378.7 MB Error: post-optimization module wrapFunctionCalls (simulation) failed.