Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.0008893/0.0008896, allocations: 91.61 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.0009885/0.0009886, 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.446/1.446, allocations: 205.4 MB / 222.1 MB, free: 5.664 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.0004559/0.0004563, allocations: 8 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2716/0.2721, allocations: 47.59 MB / 326.5 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.09069/0.3628, allocations: 100.3 MB / 426.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05964/0.4225, allocations: 21.25 MB / 448 MB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02409/0.4467, allocations: 482.9 kB / 448.5 MB, free: 9.145 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02073/0.4675, allocations: 5.151 MB / 453.7 MB, free: 3.969 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.3041/0.7716, allocations: 14.85 MB / 468.5 MB, free: 4.129 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008184/0.7798, allocations: 2.07 MB / 470.6 MB, free: 4.094 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01579/0.7957, allocations: 12.31 MB / 482.9 MB, free: 3.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02479/0.8205, allocations: 18.4 MB / 0.4895 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009019/0.8295, allocations: 3.612 MB / 0.4931 GB, free: 14.58 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01131/0.8409, allocations: 5.62 MB / 0.4986 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003661/0.8446, allocations: 466.8 kB / 0.499 GB, free: 11.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007248/0.8519, allocations: 1.571 MB / 0.5005 GB, free: 10.05 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01031/0.8622, allocations: 4.728 MB / 0.5051 GB, free: 6.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006869/0.8691, allocations: 2.298 MB / 0.5074 GB, free: 5.82 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02213/0.8913, allocations: 18.38 MB / 0.5253 GB, free: 5.879 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.8914, allocations: 0 / 0.5253 GB, free: 5.879 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.8914, allocations: 0 / 0.5253 GB, free: 5.879 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008303/0.8922, allocations: 0 / 0.5253 GB, free: 5.879 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.03013/0.9223, allocations: 11.59 MB / 0.5367 GB, free: 11.26 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.9224, allocations: 8.031 kB / 0.5367 GB, free: 11.25 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/0.9359, allocations: 3.107 MB / 0.5397 GB, free: 8.199 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01367/0.9496, allocations: 6.935 MB / 0.5465 GB, free: 3.258 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006457/0.9502, allocations: 0.7497 MB / 0.5472 GB, free: 2.836 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004404/0.9547, allocations: 1.096 MB / 0.5483 GB, free: 2.109 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07837/1.033, allocations: 33.91 MB / 0.5814 GB, free: 8.562 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005798/1.034, allocations: 83.19 kB / 0.5815 GB, free: 8.48 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003781/1.037, allocations: 451.8 kB / 0.5819 GB, free: 8.363 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006951/1.044, allocations: 4.544 MB / 0.5863 GB, free: 4.648 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06738/1.112, allocations: 31.96 MB / 0.6176 GB, free: 9.691 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3554/1.467, allocations: 114.1 MB / 0.729 GB, free: 110.4 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04661/1.514, allocations: 18.88 MB / 0.7474 GB, free: 91.37 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01306/1.527, allocations: 9.999 MB / 0.7572 GB, free: 81.36 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04624/1.573, allocations: 32.23 MB / 0.7887 GB, free: 48.15 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000103/1.573, allocations: 90.09 kB / 0.7888 GB, free: 48.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=512): time 1.175e-05/1.573, allocations: 0 / 0.7888 GB, free: 48.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=773): time 0.7639/2.337, allocations: 166.8 MB / 0.9516 GB, free: 101.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001298/2.338, allocations: 202.2 kB / 0.9518 GB, free: 101.4 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01496/2.353, allocations: 7.944 MB / 0.9596 GB, free: 93.51 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002682/2.355, allocations: 143 kB / 0.9597 GB, free: 93.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004489/2.36, allocations: 6.929 MB / 0.9665 GB, free: 86.44 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004538/2.364, allocations: 2.74 MB / 0.9691 GB, free: 83.72 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003181/2.368, allocations: 297.5 kB / 0.9694 GB, free: 83.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.001404/2.369, allocations: 0.9304 MB / 0.9703 GB, free: 82.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01702/2.386, allocations: 11.15 MB / 0.9812 GB, free: 71.34 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02188/2.408, allocations: 17.75 MB / 0.9986 GB, free: 50.5 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2182/2.626, allocations: 13.87 MB / 1.012 GB, free: 173.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001882/2.626, allocations: 63.41 kB / 1.012 GB, free: 173.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=1935) (initialization): time 0.05381/2.68, allocations: 29.4 MB / 1.041 GB, free: 164 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001835/2.68, allocations: 100.3 kB / 1.041 GB, free: 164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000416/2.681, allocations: 220.8 kB / 1.041 GB, free: 164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004793/2.681, allocations: 344.1 kB / 1.042 GB, free: 164 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02053/2.702, allocations: 4.6 MB / 1.046 GB, free: 163.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005264/2.702, allocations: 455.1 kB / 1.046 GB, free: 163.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01515/2.718, allocations: 1.187 MB / 1.048 GB, free: 163.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003768/2.721, allocations: 0.7463 MB / 1.048 GB, free: 163.2 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.01212/2.734, allocations: 5.509 MB / 1.054 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002086/2.736, allocations: 0.7976 MB / 1.054 GB, free: 158.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03345/2.769, allocations: 21.31 MB / 1.075 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.191e-05/2.769, allocations: 79.75 kB / 1.075 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.899e-05/2.769, allocations: 0 / 1.075 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001101/2.769, allocations: 43 kB / 1.075 GB, free: 139.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07573/2.845, allocations: 45.88 MB / 1.12 GB, free: 95.19 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.528e-05/2.845, allocations: 8 kB / 1.12 GB, free: 95.18 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01351/2.859, allocations: 2.511 MB / 1.123 GB, free: 92.67 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001507/2.859, allocations: 32 kB / 1.123 GB, free: 92.64 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002636/2.862, allocations: 134 kB / 1.123 GB, free: 92.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001045/2.862, allocations: 42.42 kB / 1.123 GB, free: 92.47 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.834e-06/2.862, allocations: 11.94 kB / 1.123 GB, free: 92.46 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05032/2.912, allocations: 35.69 MB / 1.158 GB, free: 56.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007095/2.919, allocations: 2.894 MB / 1.161 GB, free: 54.06 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003765/2.923, allocations: 133.2 kB / 1.161 GB, free: 53.93 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008886/2.932, allocations: 0.7792 MB / 1.161 GB, free: 53.15 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002741/2.935, allocations: 415.3 kB / 1.162 GB, free: 52.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002112/2.937, allocations: 201.9 kB / 1.162 GB, free: 52.55 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.009083/2.946, allocations: 4.948 MB / 1.167 GB, free: 47.64 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.01e-07/2.946, allocations: 0 / 1.167 GB, free: 47.64 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0164/2.962, allocations: 3.288 MB / 1.17 GB, free: 44.38 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.003283/2.966, allocations: 404.8 kB / 1.17 GB, free: 43.98 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2188/3.184, allocations: 24.85 MB / 1.195 GB, free: 183.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.357e-05/3.185, allocations: 0 / 1.195 GB, free: 183.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01393/3.198, allocations: 10.64 MB / 1.205 GB, free: 178.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007248/3.206, allocations: 0.9743 MB / 1.206 GB, free: 177.8 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05699/3.263, allocations: 39.04 MB / 1.244 GB, free: 149 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]