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.007614/0.007615, allocations: 100.5 kB / 15.73 MB, free: 6.043 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.001353/0.001353, allocations: 191.7 kB / 16.67 MB, free: 5.957 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.472/1.472, allocations: 205.1 MB / 222.6 MB, free: 4.508 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.001243/0.001243, allocations: 54.72 kB / 326.6 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1076, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01462/0.1223, allocations: 13.97 MB / 387.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01065/0.133, allocations: 4.716 MB / 391.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003789/0.1369, allocations: 83.81 kB / 391.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007368/0.1443, allocations: 4.092 MB / 396 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006705/0.151, allocations: 2.069 MB / 398.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002051/0.1531, allocations: 0.815 MB / 398.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007867/0.161, allocations: 4.6 MB / 403.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007272/0.1683, allocations: 5.141 MB / 408.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004542/0.1729, allocations: 1.932 MB / 410.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006004/0.1789, allocations: 2.718 MB / 413.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001971/0.1809, allocations: 452 kB / 413.8 MB, free: 8.539 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003696/0.1846, allocations: 1.33 MB / 415.1 MB, free: 7.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003481/0.1881, allocations: 2.338 MB / 417.4 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003687/0.1919, allocations: 2.735 MB / 420.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01172/0.2036, allocations: 8.748 MB / 428.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.071e-05/0.2037, allocations: 0 / 428.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.789e-06/0.2037, allocations: 0 / 428.9 MB, free: 9.336 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003288/0.204, allocations: 7.938 kB / 428.9 MB, free: 9.328 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.03093/0.235, allocations: 6.961 MB / 435.9 MB, free: 2.293 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.235, allocations: 8.031 kB / 435.9 MB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01637/0.2514, allocations: 2.537 MB / 438.4 MB, free: 15.74 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008074/0.2595, allocations: 3.175 MB / 441.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002209/0.2598, allocations: 307.7 kB / 441.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001262/0.261, allocations: 407.7 kB / 442.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2554/0.5165, allocations: 13.27 MB / 455.6 MB, free: 62.57 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003066/0.5169, allocations: 49.61 kB / 455.6 MB, free: 62.55 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001271/0.5181, allocations: 188.5 kB / 455.8 MB, free: 62.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005428/0.5236, allocations: 2.203 MB / 458 MB, free: 62.52 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03003/0.5536, allocations: 12.7 MB / 470.7 MB, free: 58.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05838/0.6121, allocations: 49.2 MB / 0.5077 GB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02249/0.6346, allocations: 6.446 MB / 0.514 GB, free: 6.047 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003933/0.6386, allocations: 3.923 MB / 0.5178 GB, free: 2.117 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008115/0.6394, allocations: 433.1 kB / 0.5182 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.547e-05/0.6395, allocations: 51.88 kB / 0.5183 GB, free: 1.594 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 6.071e-06/0.6395, allocations: 0 / 0.5183 GB, free: 1.594 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1074/0.7469, allocations: 36.17 MB / 0.5536 GB, free: 13.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.7471, allocations: 201.9 kB / 0.5538 GB, free: 12.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007065/0.7542, allocations: 4.423 MB / 0.5581 GB, free: 8.531 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001191/0.7554, allocations: 69.7 kB / 0.5582 GB, free: 8.457 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002865/0.7583, allocations: 3.452 MB / 0.5616 GB, free: 4.973 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001956/0.7603, allocations: 0.9639 MB / 0.5625 GB, free: 3.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00285/0.7631, allocations: 1.595 MB / 0.5641 GB, free: 2.391 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.7633, allocations: 309.1 kB / 0.5644 GB, free: 2.086 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006779/0.77, allocations: 4.335 MB / 0.5686 GB, free: 13.75 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01073/0.7808, allocations: 8.224 MB / 0.5766 GB, free: 3.605 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01734/0.7982, allocations: 13.39 MB / 0.5897 GB, free: 4.305 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001104/0.7984, allocations: 36 kB / 0.5897 GB, free: 4.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.0296/0.828, allocations: 14.79 MB / 0.6042 GB, free: 5.457 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001079/0.8281, allocations: 63.91 kB / 0.6042 GB, free: 5.395 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002116/0.8283, allocations: 136 kB / 0.6044 GB, free: 5.262 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007286/0.8356, allocations: 2.456 MB / 0.6068 GB, free: 2.793 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007265/0.8429, allocations: 1.79 MB / 0.6085 GB, free: 1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3053/1.148, allocations: 17.03 MB / 0.6251 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008254/1.157, allocations: 471.2 kB / 0.6256 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002149/1.159, allocations: 0.493 MB / 0.6261 GB, free: 153.7 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.006011/1.165, allocations: 2.389 MB / 0.6284 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001223/1.166, allocations: 400.5 kB / 0.6288 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02006/1.186, allocations: 9.664 MB / 0.6382 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-05/1.186, allocations: 27.61 kB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-05/1.186, allocations: 9.625 kB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.674e-05/1.186, allocations: 14.53 kB / 0.6383 GB, free: 151.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03113/1.217, allocations: 18.05 MB / 0.6559 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.152e-05/1.218, allocations: 2.031 kB / 0.6559 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003319/1.221, allocations: 0.5857 MB / 0.6565 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005638/1.227, allocations: 2.244 MB / 0.6587 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006764/1.227, allocations: 126.4 kB / 0.6588 GB, free: 145.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01611/1.243, allocations: 15.66 MB / 0.6741 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.243, allocations: 3.25 kB / 0.6741 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0208/1.264, allocations: 15.19 MB / 0.6889 GB, free: 117 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003883/1.268, allocations: 1.061 MB / 0.69 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001766/1.27, allocations: 44 kB / 0.69 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003911/1.274, allocations: 219.3 kB / 0.6902 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007922/1.275, allocations: 252.6 kB / 0.6904 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003131/1.275, allocations: 143.8 kB / 0.6906 GB, free: 115.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003573/1.279, allocations: 2.791 MB / 0.6933 GB, free: 112.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.279, allocations: 0 / 0.6933 GB, free: 112.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007926/1.287, allocations: 1.438 MB / 0.6947 GB, free: 111.2 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.0007175/1.287, allocations: 190.5 kB / 0.6949 GB, free: 111 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01443/1.302, allocations: 10.43 MB / 0.7051 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.302, allocations: 0 / 0.7051 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006442/1.308, allocations: 4.636 MB / 0.7096 GB, free: 95.94 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003586/1.312, allocations: 497.6 kB / 0.7101 GB, free: 95.48 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/1.33, allocations: 13.17 MB / 0.7229 GB, free: 82.33 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003304/1.333, allocations: 3.755 MB / 0.7266 GB, free: 78.54 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005457/1.339, allocations: 2.387 MB / 0.7289 GB, free: 76.15 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002094/1.341, allocations: 0.5378 MB / 0.7295 GB, free: 75.61 MB / 494.1 MB Notification: Performance of SimCode: time 1.422e-06/1.341, allocations: 7.938 kB / 0.7295 GB, free: 75.6 MB / 494.1 MB Notification: Performance of Templates: time 0.1223/1.463, allocations: 76.85 MB / 0.8045 GB, free: 14.74 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)