Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.00107/0.00107, allocations: 87.88 kB / 16.31 MB, free: 6.453 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.00127/0.00127, allocations: 178.3 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.518/1.518, allocations: 223.3 MB / 241.2 MB, free: 5.332 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.000274, allocations: 8.625 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1058, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarLoops_analytic): time 0.3143/0.4202, allocations: 100.2 MB / 451.5 MB, free: 468 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.04741/0.4677, allocations: 21.28 MB / 472.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02418/0.4919, allocations: 479.2 kB / 473.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01821/0.5101, allocations: 5.147 MB / 478.4 MB, free: 10.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.05125/0.5614, allocations: 14.85 MB / 493.2 MB, free: 3.438 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01024/0.5717, allocations: 2.068 MB / 495.3 MB, free: 2.543 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01989/0.5916, allocations: 12.28 MB / 0.4957 GB, free: 9.223 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03222/0.6238, allocations: 18.39 MB / 0.5136 GB, free: 8.016 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009206/0.6331, allocations: 3.61 MB / 0.5172 GB, free: 4.527 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01263/0.6458, allocations: 5.599 MB / 0.5226 GB, free: 15.27 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003439/0.6493, allocations: 468 kB / 0.5231 GB, free: 14.82 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006769/0.6561, allocations: 1.583 MB / 0.5246 GB, free: 13.26 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008768/0.6649, allocations: 4.713 MB / 0.5292 GB, free: 8.555 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005802/0.6707, allocations: 2.296 MB / 0.5315 GB, free: 6.246 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02229/0.693, allocations: 18.38 MB / 0.5494 GB, free: 3.934 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.693, allocations: 0 / 0.5494 GB, free: 3.934 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.693, allocations: 0 / 0.5494 GB, free: 3.934 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0008894/0.6939, allocations: 4 kB / 0.5494 GB, free: 3.93 MB / 430.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.03207/0.726, allocations: 11.57 MB / 0.5607 GB, free: 8.262 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.7261, allocations: 8.031 kB / 0.5607 GB, free: 8.254 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01367/0.7398, allocations: 3.108 MB / 0.5638 GB, free: 5.125 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01587/0.7557, allocations: 6.793 MB / 0.5704 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007468/0.7565, allocations: 0.7417 MB / 0.5711 GB, free: 13.51 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004744/0.7612, allocations: 1.101 MB / 0.5722 GB, free: 12.41 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4566/1.218, allocations: 33.9 MB / 0.6053 GB, free: 160.4 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003303/1.218, allocations: 81.27 kB / 0.6054 GB, free: 160.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002244/1.221, allocations: 453 kB / 0.6058 GB, free: 160.3 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.007812/1.228, allocations: 4.549 MB / 0.6102 GB, free: 160.3 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06467/1.293, allocations: 31.95 MB / 0.6414 GB, free: 144.7 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1461/1.439, allocations: 114.1 MB / 0.7529 GB, free: 29.31 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04552/1.485, allocations: 18.88 MB / 0.7713 GB, free: 10.29 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0115/1.496, allocations: 9.998 MB / 0.7811 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2751/1.772, allocations: 32.23 MB / 0.8126 GB, free: 140.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.249e-05/1.772, allocations: 85.84 kB / 0.8126 GB, free: 140.8 MB / 478.1 MB Notification: Performance of pre-optimization done (n=512): time 9.257e-06/1.772, allocations: 3.406 kB / 0.8126 GB, free: 140.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=773): time 0.7596/2.531, allocations: 166.7 MB / 0.9754 GB, free: 133.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/2.531, allocations: 206.5 kB / 0.9756 GB, free: 133.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.013/2.544, allocations: 7.912 MB / 0.9834 GB, free: 130.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.002858/2.547, allocations: 150.7 kB / 0.9835 GB, free: 130.6 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00469/2.552, allocations: 6.925 MB / 0.9903 GB, free: 125.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.004532/2.557, allocations: 2.735 MB / 0.9929 GB, free: 123.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002898/2.559, allocations: 304.2 kB / 0.9932 GB, free: 123.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.00114/2.561, allocations: 0.9247 MB / 0.9941 GB, free: 122.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01599/2.577, allocations: 11.16 MB / 1.005 GB, free: 117.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02092/2.598, allocations: 17.75 MB / 1.022 GB, free: 104.8 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02186/2.62, allocations: 13.86 MB / 1.036 GB, free: 94.36 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003251/2.62, allocations: 64 kB / 1.036 GB, free: 94.29 MB / 478.1 MB Notification: Performance of matching and sorting (n=1935) (initialization): time 0.05212/2.672, allocations: 29.4 MB / 1.065 GB, free: 66.45 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003785/2.672, allocations: 100 kB / 1.065 GB, free: 66.35 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004737/2.673, allocations: 228.1 kB / 1.065 GB, free: 66.13 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004684/2.673, allocations: 348 kB / 1.065 GB, free: 65.79 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02022/2.694, allocations: 4.589 MB / 1.07 GB, free: 61.19 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005197/2.694, allocations: 458.3 kB / 1.07 GB, free: 60.74 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01399/2.708, allocations: 1.183 MB / 1.071 GB, free: 59.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003468/2.712, allocations: 0.7512 MB / 1.072 GB, free: 58.81 MB / 478.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.01165/2.723, allocations: 5.495 MB / 1.077 GB, free: 53.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002886/2.726, allocations: 0.8059 MB / 1.078 GB, free: 52.49 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03419/2.76, allocations: 21.32 MB / 1.099 GB, free: 31.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.444e-05/2.761, allocations: 76.56 kB / 1.099 GB, free: 31.03 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-05/2.761, allocations: 4 kB / 1.099 GB, free: 31.02 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001321/2.761, allocations: 35.86 kB / 1.099 GB, free: 30.99 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2932/3.054, allocations: 45.88 MB / 1.144 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-05/3.054, allocations: 7.875 kB / 1.144 GB, free: 125.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01295/3.067, allocations: 2.515 MB / 1.146 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001027/3.067, allocations: 32.88 kB / 1.147 GB, free: 125 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001641/3.069, allocations: 133.9 kB / 1.147 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.356e-05/3.069, allocations: 37.45 kB / 1.147 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.144e-06/3.069, allocations: 13.53 kB / 1.147 GB, free: 124.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04382/3.113, allocations: 35.68 MB / 1.182 GB, free: 106.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006742/3.119, allocations: 2.889 MB / 1.184 GB, free: 104.2 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003148/3.123, allocations: 127.5 kB / 1.184 GB, free: 104 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008204/3.131, allocations: 0.779 MB / 1.185 GB, free: 103.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002119/3.133, allocations: 429.9 kB / 1.186 GB, free: 103.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001531/3.135, allocations: 197.3 kB / 1.186 GB, free: 103.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0085/3.143, allocations: 4.926 MB / 1.191 GB, free: 99.12 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.21e-07/3.143, allocations: 0 / 1.191 GB, free: 99.12 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01564/3.159, allocations: 3.282 MB / 1.194 GB, free: 95.87 MB / 478.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.00243/3.161, allocations: 405.8 kB / 1.194 GB, free: 95.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03336/3.195, allocations: 24.86 MB / 1.219 GB, free: 73.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/3.195, allocations: 4 kB / 1.219 GB, free: 73.35 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0133/3.208, allocations: 10.63 MB / 1.229 GB, free: 62.76 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009579/3.218, allocations: 0.9709 MB / 1.23 GB, free: 61.82 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06061/3.278, allocations: 38.99 MB / 1.268 GB, free: 22.97 MB / 478.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]