Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.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.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009775/0.0009777, allocations: 89.08 kB / 16.32 MB, free: 6.449 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.001184/0.001184, allocations: 181 kB / 17.21 MB, free: 6.32 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.698/1.698, allocations: 205.4 MB / 223.4 MB, free: 5.547 MB / 174.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.0004453/0.0004455, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.2973, allocations: 47.58 MB / 327.7 MB, free: 1.434 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.09994/0.3973, allocations: 100.3 MB / 428 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0651/0.4624, allocations: 21.25 MB / 449.3 MB, free: 9.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0286/0.4911, allocations: 482.9 kB / 449.8 MB, free: 9.141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02263/0.5138, allocations: 5.151 MB / 454.9 MB, free: 3.965 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3536/0.8674, allocations: 14.85 MB / 469.8 MB, free: 4.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009548/0.877, allocations: 2.066 MB / 471.8 MB, free: 4.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01903/0.896, allocations: 12.31 MB / 484.1 MB, free: 3.953 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03268/0.9288, allocations: 18.4 MB / 0.4908 GB, free: 15.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01134/0.9402, allocations: 3.614 MB / 0.4943 GB, free: 14.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01147/0.9517, allocations: 5.618 MB / 0.4998 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004036/0.9558, allocations: 464 kB / 0.5002 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007205/0.963, allocations: 1.577 MB / 0.5018 GB, free: 10.03 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009541/0.9726, allocations: 4.724 MB / 0.5064 GB, free: 6.648 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007565/0.9802, allocations: 2.3 MB / 0.5086 GB, free: 5.789 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02643/1.007, allocations: 18.38 MB / 0.5266 GB, free: 5.855 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.864e-06/1.007, allocations: 0 / 0.5266 GB, free: 5.855 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.515e-06/1.007, allocations: 0 / 0.5266 GB, free: 5.855 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.001011/1.008, allocations: 0 / 0.5266 GB, free: 5.855 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4012 * Number of variables: 4012 Notification: Performance of Generate backend data structure: time 0.0374/1.045, allocations: 11.59 MB / 0.5379 GB, free: 11.23 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.758e-05/1.045, allocations: 8.031 kB / 0.5379 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01507/1.06, allocations: 3.11 MB / 0.5409 GB, free: 8.172 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/1.078, allocations: 6.933 MB / 0.5477 GB, free: 3.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008393/1.079, allocations: 0.745 MB / 0.5484 GB, free: 2.816 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006182/1.086, allocations: 1.097 MB / 0.5495 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09536/1.181, allocations: 33.91 MB / 0.5826 GB, free: 8.539 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008722/1.182, allocations: 78.72 kB / 0.5827 GB, free: 8.465 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006288/1.188, allocations: 459.1 kB / 0.5831 GB, free: 8.34 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008693/1.197, allocations: 4.549 MB / 0.5876 GB, free: 4.621 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08485/1.282, allocations: 31.95 MB / 0.6188 GB, free: 9.668 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5926/1.874, allocations: 114.1 MB / 0.7302 GB, free: 107.7 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04901/1.923, allocations: 18.87 MB / 0.7487 GB, free: 88.66 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01332/1.937, allocations: 10 MB / 0.7584 GB, free: 78.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05202/1.989, allocations: 32.24 MB / 0.7899 GB, free: 45.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.727e-05/1.989, allocations: 94.09 kB / 0.79 GB, free: 45.37 MB / 494.1 MB Notification: Performance of pre-optimization done (n=512): time 1.035e-05/1.989, allocations: 3.938 kB / 0.79 GB, free: 45.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=773): time 0.8524/2.841, allocations: 166.7 MB / 0.9528 GB, free: 96.24 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001373/2.842, allocations: 214.1 kB / 0.953 GB, free: 96 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01796/2.86, allocations: 7.945 MB / 0.9608 GB, free: 88.11 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.003695/2.863, allocations: 142.6 kB / 0.9609 GB, free: 87.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005518/2.869, allocations: 6.928 MB / 0.9677 GB, free: 81.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.006257/2.875, allocations: 2.742 MB / 0.9704 GB, free: 78.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003561/2.879, allocations: 296 kB / 0.9707 GB, free: 78.05 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.001461/2.88, allocations: 0.9304 MB / 0.9716 GB, free: 77.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01743/2.898, allocations: 11.15 MB / 0.9825 GB, free: 65.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02455/2.922, allocations: 17.75 MB / 0.9998 GB, free: 45.12 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3034/3.226, allocations: 13.88 MB / 1.013 GB, free: 169.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002254/3.226, allocations: 62.84 kB / 1.013 GB, free: 169.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=1935) (initialization): time 0.05636/3.282, allocations: 29.39 MB / 1.042 GB, free: 157.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004259/3.283, allocations: 103 kB / 1.042 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005332/3.283, allocations: 222.8 kB / 1.042 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005123/3.284, allocations: 346 kB / 1.043 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01999/3.304, allocations: 4.604 MB / 1.047 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005823/3.305, allocations: 461 kB / 1.048 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01525/3.32, allocations: 1.178 MB / 1.049 GB, free: 156.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.005623/3.326, allocations: 0.7564 MB / 1.05 GB, free: 155.9 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1013 * Number of states: 0 () * Number of discrete variables: 102 (jointRRR1.jointUSR.revolute.positiveBranch,jointRRR2.jointUSR.revolute.positiveBranch,jointRRR3.jointUSR.revolute.positiveBranch,body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body3.cylinderColor[3],body3.cylinderColor[2],body3.cylinderColor[1],rod4.color[3],rod4.color[2],rod4.color[1],jointRRR3.rodColor[3],jointRRR3.rodColor[2],jointRRR3.rodColor[1],jointRRR3.cylinderColor[3],jointRRR3.cylinderColor[2],jointRRR3.cylinderColor[1],jointRRR3.jointUSR.rod1Color[3],jointRRR3.jointUSR.rod1Color[2],jointRRR3.jointUSR.rod1Color[1],jointRRR3.jointUSR.cylinderColor[3],jointRRR3.jointUSR.cylinderColor[2],jointRRR3.jointUSR.cylinderColor[1],jointRRR3.jointUSR.sphereColor[3],jointRRR3.jointUSR.sphereColor[2],jointRRR3.jointUSR.sphereColor[1],jointRRR3.jointUSR.revoluteColor[3],jointRRR3.jointUSR.revoluteColor[2],jointRRR3.jointUSR.revoluteColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body2.cylinderColor[3],body2.cylinderColor[2],body2.cylinderColor[1],rod3.color[3],rod3.color[2],rod3.color[1],jointRRR2.rodColor[3],jointRRR2.rodColor[2],jointRRR2.rodColor[1],jointRRR2.cylinderColor[3],jointRRR2.cylinderColor[2],jointRRR2.cylinderColor[1],jointRRR2.jointUSR.rod1Color[3],jointRRR2.jointUSR.rod1Color[2],jointRRR2.jointUSR.rod1Color[1],jointRRR2.jointUSR.cylinderColor[3],jointRRR2.jointUSR.cylinderColor[2],jointRRR2.jointUSR.cylinderColor[1],jointRRR2.jointUSR.sphereColor[3],jointRRR2.jointUSR.sphereColor[2],jointRRR2.jointUSR.sphereColor[1],jointRRR2.jointUSR.revoluteColor[3],jointRRR2.jointUSR.revoluteColor[2],jointRRR2.jointUSR.revoluteColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body1.cylinderColor[3],body1.cylinderColor[2],body1.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],rod1.color[3],rod1.color[2],rod1.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],jointRRR1.rodColor[3],jointRRR1.rodColor[2],jointRRR1.rodColor[1],jointRRR1.cylinderColor[3],jointRRR1.cylinderColor[2],jointRRR1.cylinderColor[1],jointRRR1.jointUSR.rod1Color[3],jointRRR1.jointUSR.rod1Color[2],jointRRR1.jointUSR.rod1Color[1],jointRRR1.jointUSR.cylinderColor[3],jointRRR1.jointUSR.cylinderColor[2],jointRRR1.jointUSR.cylinderColor[1],jointRRR1.jointUSR.sphereColor[3],jointRRR1.jointUSR.sphereColor[2],jointRRR1.jointUSR.sphereColor[1],jointRRR1.jointUSR.revoluteColor[3],jointRRR1.jointUSR.revoluteColor[2],jointRRR1.jointUSR.revoluteColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1905): * Single equations (assignments): 1899 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01711/3.343, allocations: 5.494 MB / 1.055 GB, free: 151.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00394/3.347, allocations: 0.8022 MB / 1.056 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03936/3.386, allocations: 21.31 MB / 1.077 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001205/3.386, allocations: 76.55 kB / 1.077 GB, free: 132.2 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.069e-05/3.386, allocations: 4 kB / 1.077 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002498/3.387, allocations: 33.94 kB / 1.077 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09145/3.478, allocations: 45.89 MB / 1.121 GB, free: 86.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001204/3.478, allocations: 10.52 kB / 1.121 GB, free: 86.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01492/3.493, allocations: 2.511 MB / 1.124 GB, free: 84.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001362/3.493, allocations: 32 kB / 1.124 GB, free: 84.41 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002754/3.496, allocations: 136 kB / 1.124 GB, free: 84.28 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001103/3.496, allocations: 47.83 kB / 1.124 GB, free: 84.24 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.326e-06/3.496, allocations: 11.94 kB / 1.124 GB, free: 84.23 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05494/3.551, allocations: 35.68 MB / 1.159 GB, free: 48.75 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.008983/3.56, allocations: 2.896 MB / 1.162 GB, free: 45.83 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005288/3.566, allocations: 128 kB / 1.162 GB, free: 45.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009551/3.575, allocations: 0.7837 MB / 1.163 GB, free: 44.92 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002408/3.578, allocations: 412.8 kB / 1.163 GB, free: 44.52 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001782/3.579, allocations: 199.9 kB / 1.163 GB, free: 44.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.008843/3.588, allocations: 4.948 MB / 1.168 GB, free: 39.42 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.71e-07/3.588, allocations: 0 / 1.168 GB, free: 39.42 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01731/3.606, allocations: 3.28 MB / 1.171 GB, free: 36.15 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (757): * Single equations (assignments): 754 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003614/3.609, allocations: 414.7 kB / 1.172 GB, free: 35.77 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2839/3.893, allocations: 24.86 MB / 1.196 GB, free: 168.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/3.893, allocations: 3.875 kB / 1.196 GB, free: 168.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0177/3.911, allocations: 10.64 MB / 1.206 GB, free: 163.4 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01181/3.923, allocations: 0.9726 MB / 1.207 GB, free: 162.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07615/3.999, allocations: 39.03 MB / 1.245 GB, free: 131.9 MB / 494.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:754:5-754:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]