Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000754/0.000754, allocations: 99.28 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008609/0.0008609, allocations: 193.2 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.352/1.352, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000221/0.000221, allocations: 12 kB / 307.1 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09601, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.2731/0.3691, allocations: 99.52 MB / 458.2 MB, free: 7.613 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.04604/0.4152, allocations: 20.96 MB / 479.1 MB, free: 2.602 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0208/0.4361, allocations: 486.9 kB / 479.6 MB, free: 2.125 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01617/0.4523, allocations: 5.136 MB / 484.7 MB, free: 12.96 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03774/0.4901, allocations: 14.63 MB / 499.4 MB, free: 14.28 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008421/0.4985, allocations: 2.064 MB / 0.4897 GB, free: 12.21 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01959/0.5181, allocations: 12.4 MB / 0.5018 GB, free: 15.79 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02957/0.5477, allocations: 18.35 MB / 0.5197 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007508/0.5553, allocations: 3.597 MB / 0.5232 GB, free: 9.73 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00945/0.5648, allocations: 5.597 MB / 0.5287 GB, free: 4.117 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00282/0.5677, allocations: 468 kB / 0.5291 GB, free: 3.66 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00588/0.5736, allocations: 1.565 MB / 0.5306 GB, free: 2.094 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2322/0.8059, allocations: 4.674 MB / 0.5352 GB, free: 20.05 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005099/0.811, allocations: 2.285 MB / 0.5374 GB, free: 20.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02062/0.8316, allocations: 18.32 MB / 0.5553 GB, free: 19.15 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.8317, allocations: 4.344 kB / 0.5553 GB, free: 19.15 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.8317, allocations: 0 / 0.5553 GB, free: 19.15 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009047/0.8326, allocations: 3.938 kB / 0.5553 GB, free: 19.15 MB / 446.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.03134/0.864, allocations: 11.57 MB / 0.5666 GB, free: 14.84 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.864, allocations: 10.66 kB / 0.5667 GB, free: 14.84 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01274/0.8768, allocations: 3.118 MB / 0.5697 GB, free: 13.32 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01413/0.8909, allocations: 6.713 MB / 0.5763 GB, free: 11.37 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005481/0.8915, allocations: 0.7461 MB / 0.577 GB, free: 11.34 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004598/0.8961, allocations: 1.096 MB / 0.578 GB, free: 11.31 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07195/0.9681, allocations: 33.94 MB / 0.6112 GB, free: 1.398 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003333/0.9685, allocations: 79.31 kB / 0.6113 GB, free: 1.395 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002689/0.9711, allocations: 450.5 kB / 0.6117 GB, free: 1.395 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00688/0.978, allocations: 4.558 MB / 0.6161 GB, free: 13.72 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07837/1.056, allocations: 31.96 MB / 0.6474 GB, free: 7.84 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4211/1.478, allocations: 114.1 MB / 0.7588 GB, free: 153.7 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0486/1.526, allocations: 18.89 MB / 0.7773 GB, free: 153 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01168/1.538, allocations: 9.996 MB / 0.787 GB, free: 150.8 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04287/1.581, allocations: 32.32 MB / 0.8186 GB, free: 130.1 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.487e-05/1.581, allocations: 96.78 kB / 0.8187 GB, free: 130 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=512): time 7.745e-06/1.581, allocations: 0 / 0.8187 GB, free: 130 MB / 0.5294 GB Notification: Performance of matching and sorting (n=773): time 0.734/2.315, allocations: 163.9 MB / 0.9788 GB, free: 189.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.407e-05/2.315, allocations: 208.6 kB / 0.979 GB, free: 189 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01168/2.327, allocations: 7.911 MB / 0.9867 GB, free: 186.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.002286/2.329, allocations: 149.4 kB / 0.9868 GB, free: 186.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003838/2.333, allocations: 6.931 MB / 0.9936 GB, free: 180.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.00387/2.337, allocations: 2.729 MB / 0.9963 GB, free: 178.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002187/2.339, allocations: 301 kB / 0.9966 GB, free: 178.5 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0007022/2.34, allocations: 0.9305 MB / 0.9975 GB, free: 178 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01678/2.357, allocations: 11.17 MB / 1.008 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02045/2.377, allocations: 17.77 MB / 1.026 GB, free: 157.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02004/2.397, allocations: 13.88 MB / 1.039 GB, free: 145 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001474/2.397, allocations: 64 kB / 1.039 GB, free: 145 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1935) (initialization): time 0.04891/2.446, allocations: 29.41 MB / 1.068 GB, free: 118.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003188/2.447, allocations: 103.7 kB / 1.068 GB, free: 118.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004234/2.447, allocations: 220 kB / 1.068 GB, free: 118.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004204/2.447, allocations: 348.7 kB / 1.069 GB, free: 117.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02071/2.468, allocations: 4.606 MB / 1.073 GB, free: 114.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006437/2.469, allocations: 455.1 kB / 1.074 GB, free: 113.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01614/2.485, allocations: 1.188 MB / 1.075 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004063/2.489, allocations: 0.7522 MB / 1.076 GB, free: 112.3 MB / 0.5294 GB 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.01599/2.505, allocations: 5.499 MB / 1.081 GB, free: 107.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004126/2.509, allocations: 0.8028 MB / 1.082 GB, free: 106.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03364/2.543, allocations: 21.32 MB / 1.103 GB, free: 84.89 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.914e-05/2.543, allocations: 76 kB / 1.103 GB, free: 84.82 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-05/2.543, allocations: 0 / 1.103 GB, free: 84.82 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.979e-05/2.543, allocations: 39.86 kB / 1.103 GB, free: 84.78 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07797/2.621, allocations: 45.9 MB / 1.147 GB, free: 38.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.052e-05/2.621, allocations: 8 kB / 1.147 GB, free: 38.66 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01392/2.635, allocations: 2.519 MB / 1.15 GB, free: 36.13 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000106/2.635, allocations: 32 kB / 1.15 GB, free: 36.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2333/2.869, allocations: 133.2 kB / 1.15 GB, free: 189.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.345e-05/2.869, allocations: 33.7 kB / 1.15 GB, free: 189.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.205e-05/2.869, allocations: 11.88 kB / 1.15 GB, free: 189.7 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05304/2.922, allocations: 35.72 MB / 1.185 GB, free: 176.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006684/2.929, allocations: 2.885 MB / 1.188 GB, free: 175.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00248/2.931, allocations: 137.8 kB / 1.188 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00708/2.938, allocations: 0.7831 MB / 1.189 GB, free: 175.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001348/2.939, allocations: 423.4 kB / 1.189 GB, free: 175.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007761/2.94, allocations: 194.6 kB / 1.189 GB, free: 175.2 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008577/2.949, allocations: 4.927 MB / 1.194 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/2.949, allocations: 0 / 1.194 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01656/2.965, allocations: 3.252 MB / 1.197 GB, free: 173.3 MB / 0.5294 GB 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.003099/2.969, allocations: 409.4 kB / 1.198 GB, free: 173.1 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.03587/3.004, allocations: 24.88 MB / 1.222 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.05e-05/3.005, allocations: 1.688 kB / 1.222 GB, free: 154.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01369/3.018, allocations: 10.65 MB / 1.232 GB, free: 144.6 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007064/3.025, allocations: 0.9787 MB / 1.233 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06448/3.09, allocations: 39 MB / 1.271 GB, free: 108.5 MB / 0.5294 GB [/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]