Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001296/0.001296, allocations: 114.2 kB / 17.07 MB, free: 5.988 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.001249/0.001249, allocations: 195 kB / 18 MB, free: 5.074 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.47/1.47, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001319/0.001319, allocations: 47.94 kB / 327.9 MB, free: 3.305 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09156/0.09289, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2066/0.2995, allocations: 13.97 MB / 388.5 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.3113, allocations: 4.722 MB / 393.2 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.3148, allocations: 85.66 kB / 393.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007626/0.3225, allocations: 4.077 MB / 397.3 MB, free: 348 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006383/0.3289, allocations: 2.083 MB / 399.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002003/0.3309, allocations: 0.8047 MB / 400.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006495/0.3374, allocations: 4.599 MB / 404.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005852/0.3433, allocations: 5.145 MB / 410 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003204/0.3465, allocations: 1.932 MB / 411.9 MB, free: 8.777 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003992/0.3505, allocations: 2.721 MB / 414.6 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001091/0.3516, allocations: 456.2 kB / 415.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002735/0.3544, allocations: 1.319 MB / 416.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002019/0.3564, allocations: 2.342 MB / 418.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002821/0.3592, allocations: 2.742 MB / 421.5 MB, free: 432 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009689/0.3689, allocations: 8.791 MB / 430.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.855e-06/0.369, allocations: 0 / 430.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.369, allocations: 0 / 430.3 MB, free: 7.598 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000333/0.3693, allocations: 0 / 430.3 MB, free: 7.598 MB / 350.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.02883/0.3981, allocations: 7.104 MB / 437.4 MB, free: 420 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.3982, allocations: 12.03 kB / 437.4 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01585/0.4141, allocations: 2.564 MB / 439.9 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007067/0.4212, allocations: 3.204 MB / 443.1 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/0.4214, allocations: 295.8 kB / 443.4 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001156/0.4226, allocations: 407.8 kB / 443.8 MB, free: 9.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02651/0.4491, allocations: 13.28 MB / 457.1 MB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001634/0.4493, allocations: 47.58 kB / 457.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007843/0.4501, allocations: 187.9 kB / 457.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004654/0.4548, allocations: 2.198 MB / 459.5 MB, free: 9.418 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02856/0.4834, allocations: 12.7 MB / 472.2 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07091/0.5543, allocations: 49.29 MB / 0.5093 GB, free: 10.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02496/0.5794, allocations: 6.445 MB / 0.5156 GB, free: 3.621 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005251/0.5846, allocations: 3.916 MB / 0.5194 GB, free: 15.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000896/0.5856, allocations: 428.2 kB / 0.5198 GB, free: 15.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.241e-05/0.5856, allocations: 59.88 kB / 0.5199 GB, free: 15.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 4.879e-06/0.5856, allocations: 3.938 kB / 0.5199 GB, free: 15.15 MB / 462.1 MB Notification: Performance of matching and sorting (n=255): time 0.3379/0.9236, allocations: 36.42 MB / 0.5555 GB, free: 148.7 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.846e-05/0.9237, allocations: 210.2 kB / 0.5557 GB, free: 148.5 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008722/0.9324, allocations: 4.438 MB / 0.56 GB, free: 147.1 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001075/0.9335, allocations: 61.67 kB / 0.5601 GB, free: 147 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002767/0.9363, allocations: 3.595 MB / 0.5636 GB, free: 144.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001595/0.9379, allocations: 0.9949 MB / 0.5645 GB, free: 144 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002933/0.9408, allocations: 1.609 MB / 0.5661 GB, free: 143.4 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 6.182e-05/0.9409, allocations: 307.3 kB / 0.5664 GB, free: 143.1 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006745/0.9477, allocations: 4.336 MB / 0.5706 GB, free: 141.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008912/0.9566, allocations: 8.232 MB / 0.5787 GB, free: 135.1 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01429/0.9709, allocations: 13.4 MB / 0.5918 GB, free: 126.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001906/0.9712, allocations: 35.25 kB / 0.5918 GB, free: 126.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02635/0.9975, allocations: 14.8 MB / 0.6062 GB, free: 116.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.9977, allocations: 64.78 kB / 0.6063 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/0.9978, allocations: 137.2 kB / 0.6064 GB, free: 116.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005977/1.004, allocations: 2.46 MB / 0.6088 GB, free: 113.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006804/1.011, allocations: 1.79 MB / 0.6106 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01839/1.029, allocations: 17.06 MB / 0.6272 GB, free: 94.65 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009228/1.038, allocations: 467.4 kB / 0.6277 GB, free: 94.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002487/1.041, allocations: 0.4997 MB / 0.6282 GB, free: 93.7 MB / 478.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.007458/1.048, allocations: 2.392 MB / 0.6305 GB, free: 91.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001926/1.05, allocations: 413.2 kB / 0.6309 GB, free: 90.89 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01749/1.068, allocations: 9.665 MB / 0.6403 GB, free: 81.19 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.524e-05/1.068, allocations: 28 kB / 0.6404 GB, free: 81.16 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.22e-05/1.068, allocations: 8 kB / 0.6404 GB, free: 81.16 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.827e-05/1.068, allocations: 11.97 kB / 0.6404 GB, free: 81.14 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03299/1.101, allocations: 18.05 MB / 0.658 GB, free: 63.09 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.487e-05/1.101, allocations: 0 / 0.658 GB, free: 63.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003183/1.104, allocations: 0.5888 MB / 0.6586 GB, free: 62.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005952/1.11, allocations: 2.242 MB / 0.6608 GB, free: 60.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001054/1.111, allocations: 123.8 kB / 0.6609 GB, free: 60.12 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01784/1.129, allocations: 15.68 MB / 0.6762 GB, free: 44.04 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.129, allocations: 4 kB / 0.6762 GB, free: 44.04 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02261/1.152, allocations: 15.2 MB / 0.6911 GB, free: 28.75 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003348/1.155, allocations: 1.072 MB / 0.6921 GB, free: 27.65 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00184/1.157, allocations: 46.97 kB / 0.6922 GB, free: 27.61 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004357/1.162, allocations: 219.7 kB / 0.6924 GB, free: 27.39 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001079/1.163, allocations: 237.5 kB / 0.6926 GB, free: 27.16 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006287/1.163, allocations: 156.2 kB / 0.6927 GB, free: 27.02 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005375/1.169, allocations: 2.788 MB / 0.6955 GB, free: 24.22 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.169, allocations: 4 kB / 0.6955 GB, free: 24.22 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01055/1.179, allocations: 1.433 MB / 0.6969 GB, free: 22.79 MB / 478.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.001144/1.18, allocations: 193.7 kB / 0.6971 GB, free: 22.59 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01672/1.197, allocations: 10.43 MB / 0.7072 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.864e-06/1.197, allocations: 0 / 0.7072 GB, free: 12.14 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006368/1.204, allocations: 4.643 MB / 0.7118 GB, free: 7.461 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005155/1.209, allocations: 0.4961 MB / 0.7123 GB, free: 6.984 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02597/1.235, allocations: 13.34 MB / 0.7253 GB, free: 9.617 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2551/1.49, allocations: 3.749 MB / 0.7289 GB, free: 149.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008767/1.499, allocations: 2.39 MB / 0.7313 GB, free: 149.2 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003042/1.502, allocations: 0.5353 MB / 0.7318 GB, free: 149.2 MB / 494.1 MB Notification: Performance of SimCode: time 2.354e-06/1.502, allocations: 2.281 kB / 0.7318 GB, free: 149.2 MB / 494.1 MB Notification: Performance of Templates: time 0.1371/1.639, allocations: 76.86 MB / 0.8069 GB, free: 99.63 MB / 494.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)