Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006494/0.006494, allocations: 102.2 kB / 15.73 MB, free: 5.969 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.001326/0.001326, allocations: 197.2 kB / 16.67 MB, free: 5.906 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.545/1.545, allocations: 205.1 MB / 222.5 MB, free: 4.512 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.001983/0.001983, allocations: 58.7 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1231, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01619/0.1393, allocations: 13.95 MB / 387.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01187/0.1513, allocations: 4.724 MB / 391.9 MB, free: 14.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00347/0.1549, allocations: 79.81 kB / 391.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009212/0.1641, allocations: 4.096 MB / 396 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008119/0.1723, allocations: 2.12 MB / 398.2 MB, free: 8.227 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002915/0.1752, allocations: 0.815 MB / 399 MB, free: 7.41 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008627/0.1838, allocations: 4.596 MB / 403.6 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009173/0.1931, allocations: 5.141 MB / 408.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004036/0.1971, allocations: 1.947 MB / 410.7 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00487/0.202, allocations: 2.718 MB / 413.4 MB, free: 8.914 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001758/0.2038, allocations: 456 kB / 413.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003629/0.2075, allocations: 1.33 MB / 415.1 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003347/0.2108, allocations: 2.334 MB / 417.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005568/0.2164, allocations: 2.739 MB / 420.2 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01202/0.2285, allocations: 8.748 MB / 429 MB, free: 9.266 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.004e-05/0.2285, allocations: 0 / 429 MB, free: 9.266 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.2285, allocations: 3.938 kB / 429 MB, free: 9.262 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002691/0.2288, allocations: 4 kB / 429 MB, free: 9.258 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.02995/0.2588, allocations: 6.961 MB / 435.9 MB, free: 2.223 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.2588, allocations: 12.03 kB / 436 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01388/0.2727, allocations: 2.533 MB / 438.5 MB, free: 15.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007633/0.2804, allocations: 3.183 MB / 441.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002187/0.2806, allocations: 299.8 kB / 442 MB, free: 12.13 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001076/0.2817, allocations: 407.7 kB / 442.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2943/0.576, allocations: 13.27 MB / 455.6 MB, free: 62.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001891/0.5763, allocations: 46.17 kB / 455.7 MB, free: 62.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006965/0.577, allocations: 191.5 kB / 455.9 MB, free: 62.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004906/0.5819, allocations: 2.2 MB / 458.1 MB, free: 62.51 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03031/0.6122, allocations: 12.7 MB / 470.8 MB, free: 58.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06344/0.6757, allocations: 49.2 MB / 0.5078 GB, free: 12.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02105/0.6968, allocations: 6.445 MB / 0.5141 GB, free: 6.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004112/0.7009, allocations: 3.922 MB / 0.5179 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007874/0.7018, allocations: 433.6 kB / 0.5183 GB, free: 1.68 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.661e-05/0.7018, allocations: 51.88 kB / 0.5184 GB, free: 1.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.558e-06/0.7018, allocations: 0 / 0.5184 GB, free: 1.621 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.111/0.8128, allocations: 36.17 MB / 0.5537 GB, free: 13.25 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000181/0.813, allocations: 201.9 kB / 0.5539 GB, free: 13.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01074/0.8238, allocations: 4.439 MB / 0.5582 GB, free: 8.547 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001267/0.8251, allocations: 61.7 kB / 0.5583 GB, free: 8.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004821/0.83, allocations: 3.452 MB / 0.5616 GB, free: 4.992 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003098/0.8331, allocations: 0.96 MB / 0.5626 GB, free: 4.02 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006453/0.8396, allocations: 1.599 MB / 0.5641 GB, free: 2.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.8398, allocations: 301.1 kB / 0.5644 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007906/0.8477, allocations: 4.339 MB / 0.5687 GB, free: 13.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01123/0.8589, allocations: 8.224 MB / 0.5767 GB, free: 3.629 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01925/0.8782, allocations: 13.39 MB / 0.5898 GB, free: 4.324 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001865/0.8785, allocations: 40 kB / 0.5898 GB, free: 4.285 MB / 462.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.03488/0.9134, allocations: 14.77 MB / 0.6042 GB, free: 5.488 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.9136, allocations: 67.91 kB / 0.6043 GB, free: 5.422 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002855/0.9139, allocations: 132 kB / 0.6044 GB, free: 5.293 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007398/0.9214, allocations: 2.457 MB / 0.6068 GB, free: 2.824 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008452/0.9298, allocations: 1.793 MB / 0.6086 GB, free: 1.031 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.355/1.285, allocations: 17.03 MB / 0.6252 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008662/1.294, allocations: 474.8 kB / 0.6257 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002273/1.296, allocations: 499.3 kB / 0.6261 GB, free: 153.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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 (830): * Single equations (assignments): 824 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006545/1.303, allocations: 2.388 MB / 0.6285 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/1.304, allocations: 401.8 kB / 0.6289 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02015/1.324, allocations: 9.663 MB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-05/1.325, allocations: 31.58 kB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-05/1.325, allocations: 7.688 kB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.671e-05/1.325, allocations: 16.73 kB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02766/1.352, allocations: 18.04 MB / 0.656 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/1.352, allocations: 2.906 kB / 0.656 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003269/1.356, allocations: 0.588 MB / 0.6565 GB, free: 145.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005699/1.361, allocations: 2.246 MB / 0.6587 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008826/1.362, allocations: 127.7 kB / 0.6589 GB, free: 145.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01607/1.378, allocations: 15.67 MB / 0.6742 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.378, allocations: 0 / 0.6742 GB, free: 132.1 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01907/1.397, allocations: 15.19 MB / 0.689 GB, free: 117.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003007/1.401, allocations: 1.057 MB / 0.69 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001106/1.402, allocations: 51.89 kB / 0.6901 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002901/1.405, allocations: 215.7 kB / 0.6903 GB, free: 115.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007376/1.405, allocations: 241.5 kB / 0.6905 GB, free: 115.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003208/1.406, allocations: 151.8 kB / 0.6907 GB, free: 115.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003992/1.41, allocations: 2.784 MB / 0.6934 GB, free: 112.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.41, allocations: 0 / 0.6934 GB, free: 112.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007093/1.417, allocations: 1.435 MB / 0.6948 GB, free: 111.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (198): * Single equations (assignments): 192 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000642/1.417, allocations: 201.1 kB / 0.695 GB, free: 111.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01291/1.43, allocations: 10.42 MB / 0.7051 GB, free: 100.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/1.43, allocations: 3.688 kB / 0.7051 GB, free: 100.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005879/1.436, allocations: 4.63 MB / 0.7097 GB, free: 96.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005115/1.441, allocations: 0.4966 MB / 0.7102 GB, free: 95.57 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/1.464, allocations: 13.17 MB / 0.723 GB, free: 82.43 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003801/1.468, allocations: 3.755 MB / 0.7267 GB, free: 78.64 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005695/1.474, allocations: 2.383 MB / 0.729 GB, free: 76.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002018/1.476, allocations: 0.5378 MB / 0.7295 GB, free: 75.71 MB / 494.1 MB Notification: Performance of SimCode: time 1.653e-06/1.476, allocations: 0 / 0.7295 GB, free: 75.71 MB / 494.1 MB Notification: Performance of Templates: time 0.1257/1.602, allocations: 76.86 MB / 0.8046 GB, free: 14.84 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)