Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.0009551/0.0009597, allocations: 92.16 kB / 15.06 MB, free: 1.098 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.0009843/0.000984, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.637/1.637, allocations: 205.4 MB / 222.1 MB, free: 5.715 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.0004799/0.00048, allocations: 12 kB / 278.9 MB, free: 12.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2754, allocations: 47.58 MB / 326.5 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.09663/0.3721, allocations: 100.3 MB / 426.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.06037/0.4325, allocations: 21.25 MB / 448 MB, free: 9.613 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02501/0.4576, allocations: 478.9 kB / 448.5 MB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01852/0.4762, allocations: 5.151 MB / 453.7 MB, free: 3.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3054/0.7816, allocations: 14.85 MB / 468.5 MB, free: 4.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009941/0.7916, allocations: 2.06 MB / 470.6 MB, free: 4.121 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01629/0.8079, allocations: 12.31 MB / 482.9 MB, free: 3.973 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03143/0.8394, allocations: 18.4 MB / 0.4895 GB, free: 15.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009345/0.8488, allocations: 3.624 MB / 0.4931 GB, free: 14.59 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01122/0.8601, allocations: 5.601 MB / 0.4985 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003319/0.8634, allocations: 474.7 kB / 0.499 GB, free: 11.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006708/0.8701, allocations: 1.573 MB / 0.5005 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008711/0.8789, allocations: 4.723 MB / 0.5051 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006237/0.8852, allocations: 2.303 MB / 0.5074 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02505/0.9102, allocations: 18.38 MB / 0.5253 GB, free: 5.832 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.017e-05/0.9103, allocations: 3.984 kB / 0.5253 GB, free: 5.828 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.9103, allocations: 0 / 0.5253 GB, free: 5.828 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0009322/0.9112, allocations: 0 / 0.5253 GB, free: 5.828 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.03579/0.9471, allocations: 11.59 MB / 0.5367 GB, free: 11.21 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.298e-05/0.9471, allocations: 12.03 kB / 0.5367 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01439/0.9615, allocations: 3.099 MB / 0.5397 GB, free: 8.152 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01707/0.9786, allocations: 6.937 MB / 0.5465 GB, free: 3.211 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008923/0.9796, allocations: 0.7399 MB / 0.5472 GB, free: 2.797 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005326/0.9849, allocations: 1.103 MB / 0.5483 GB, free: 2.062 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08585/1.071, allocations: 33.91 MB / 0.5814 GB, free: 8.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007215/1.072, allocations: 79.19 kB / 0.5815 GB, free: 8.441 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005087/1.077, allocations: 455.9 kB / 0.5819 GB, free: 8.324 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.008251/1.085, allocations: 4.555 MB / 0.5864 GB, free: 4.598 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07532/1.16, allocations: 31.94 MB / 0.6175 GB, free: 9.656 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5576/1.718, allocations: 114.1 MB / 0.729 GB, free: 107.6 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04772/1.766, allocations: 18.87 MB / 0.7474 GB, free: 88.6 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01177/1.777, allocations: 10 MB / 0.7572 GB, free: 78.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04655/1.824, allocations: 32.24 MB / 0.7887 GB, free: 45.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.96e-05/1.824, allocations: 82.16 kB / 0.7888 GB, free: 45.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=512): time 1.161e-05/1.824, allocations: 0 / 0.7888 GB, free: 45.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=773): time 0.8117/2.636, allocations: 166.8 MB / 0.9516 GB, free: 96.15 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/2.636, allocations: 210.1 kB / 0.9518 GB, free: 95.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/2.649, allocations: 7.947 MB / 0.9596 GB, free: 88.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002262/2.651, allocations: 147.3 kB / 0.9597 GB, free: 87.87 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003673/2.655, allocations: 6.922 MB / 0.9665 GB, free: 80.96 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004008/2.659, allocations: 2.734 MB / 0.9691 GB, free: 78.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001839/2.661, allocations: 301.5 kB / 0.9694 GB, free: 77.96 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0005784/2.661, allocations: 0.9304 MB / 0.9703 GB, free: 77.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01413/2.675, allocations: 11.15 MB / 0.9812 GB, free: 65.87 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02007/2.695, allocations: 17.75 MB / 0.9986 GB, free: 45.03 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2648/2.96, allocations: 13.87 MB / 1.012 GB, free: 169.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001809/2.961, allocations: 62.31 kB / 1.012 GB, free: 169.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=1935) (initialization): time 0.05794/3.019, allocations: 29.38 MB / 1.041 GB, free: 157.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001509/3.019, allocations: 104.8 kB / 1.041 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003219/3.019, allocations: 223.8 kB / 1.041 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003624/3.019, allocations: 345.4 kB / 1.042 GB, free: 157.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02075/3.04, allocations: 4.598 MB / 1.046 GB, free: 157.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000756/3.041, allocations: 458.2 kB / 1.046 GB, free: 157.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01547/3.056, allocations: 1.178 MB / 1.048 GB, free: 156.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004102/3.061, allocations: 0.7535 MB / 1.048 GB, free: 155.8 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.01811/3.079, allocations: 5.503 MB / 1.054 GB, free: 151 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003849/3.083, allocations: 0.8028 MB / 1.054 GB, free: 150.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03968/3.122, allocations: 21.31 MB / 1.075 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.092e-05/3.122, allocations: 76 kB / 1.075 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.493e-05/3.122, allocations: 2.516 kB / 1.075 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001519/3.123, allocations: 42.16 kB / 1.075 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08063/3.203, allocations: 45.89 MB / 1.12 GB, free: 86.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.072e-05/3.203, allocations: 8 kB / 1.12 GB, free: 86.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01397/3.217, allocations: 2.507 MB / 1.123 GB, free: 84.31 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000122/3.217, allocations: 39.92 kB / 1.123 GB, free: 84.27 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002762/3.22, allocations: 132 kB / 1.123 GB, free: 84.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001226/3.22, allocations: 32 kB / 1.123 GB, free: 84.11 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/3.22, allocations: 11.94 kB / 1.123 GB, free: 84.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05009/3.27, allocations: 35.69 MB / 1.158 GB, free: 48.61 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007394/3.278, allocations: 2.9 MB / 1.161 GB, free: 45.69 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004646/3.283, allocations: 132 kB / 1.161 GB, free: 45.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009421/3.292, allocations: 0.7729 MB / 1.161 GB, free: 44.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002769/3.295, allocations: 424.5 kB / 1.162 GB, free: 44.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001952/3.297, allocations: 197.2 kB / 1.162 GB, free: 44.18 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009391/3.306, allocations: 4.948 MB / 1.167 GB, free: 39.27 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.81e-07/3.306, allocations: 2.438 kB / 1.167 GB, free: 39.27 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01466/3.321, allocations: 3.287 MB / 1.17 GB, free: 36.01 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.002456/3.323, allocations: 401.4 kB / 1.17 GB, free: 35.63 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2656/3.589, allocations: 24.86 MB / 1.195 GB, free: 172.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.502e-05/3.589, allocations: 7.875 kB / 1.195 GB, free: 172.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01533/3.604, allocations: 10.63 MB / 1.205 GB, free: 167.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00995/3.614, allocations: 0.9715 MB / 1.206 GB, free: 167.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0665/3.681, allocations: 39.03 MB / 1.244 GB, free: 135.6 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]