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.00163/0.00163, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002487/0.002487, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.725/1.725, allocations: 205.1 MB / 222 MB, free: 4.969 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.00131/0.00131, allocations: 47.92 kB / 278.1 MB, free: 13.01 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2492, allocations: 46.63 MB / 324.7 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.06218/0.3114, allocations: 66.41 MB / 391.1 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03439/0.3459, allocations: 13.42 MB / 404.5 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0155/0.3614, allocations: 287.3 kB / 404.8 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008028/0.3695, allocations: 4.087 MB / 408.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006991/0.3765, allocations: 1.946 MB / 410.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.379, allocations: 0.7294 MB / 411.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009312/0.3883, allocations: 6.784 MB / 418.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006658/0.395, allocations: 5.06 MB / 423.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002922/0.3979, allocations: 1.721 MB / 425.1 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004286/0.4022, allocations: 2.878 MB / 428 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001005/0.4032, allocations: 328 kB / 428.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002713/0.406, allocations: 1.276 MB / 429.6 MB, free: 10.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002144/0.4081, allocations: 2.256 MB / 431.8 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00286/0.411, allocations: 2.618 MB / 434.5 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008638/0.4197, allocations: 8.419 MB / 442.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.4197, allocations: 4 kB / 442.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4197, allocations: 0 / 442.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002469/0.42, allocations: 0 / 442.9 MB, free: 13.54 MB / 382.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.0285/0.4485, allocations: 6.957 MB / 449.8 MB, free: 6.504 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.4485, allocations: 8.031 kB / 449.9 MB, free: 6.496 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01435/0.4629, allocations: 2.537 MB / 452.4 MB, free: 3.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007277/0.4702, allocations: 3.132 MB / 455.5 MB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002337/0.4705, allocations: 299.8 kB / 455.8 MB, free: 476 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/0.4717, allocations: 411.7 kB / 456.2 MB, free: 64 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2205/0.6922, allocations: 13.28 MB / 469.5 MB, free: 108.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001595/0.6924, allocations: 44.78 kB / 469.5 MB, free: 108.6 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006472/0.6931, allocations: 191.8 kB / 469.7 MB, free: 108.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003859/0.697, allocations: 2.206 MB / 471.9 MB, free: 106.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0239/0.7209, allocations: 12.69 MB / 484.6 MB, free: 94.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06378/0.7847, allocations: 49.42 MB / 0.5215 GB, free: 43.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02299/0.8078, allocations: 6.441 MB / 0.5278 GB, free: 37.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004462/0.8123, allocations: 3.932 MB / 0.5317 GB, free: 33.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009324/0.8132, allocations: 424.3 kB / 0.5321 GB, free: 32.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.198e-05/0.8133, allocations: 51.88 kB / 0.5321 GB, free: 32.92 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.679e-06/0.8133, allocations: 0 / 0.5321 GB, free: 32.92 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1034/0.9167, allocations: 36.17 MB / 0.5674 GB, free: 12.52 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001719/0.9169, allocations: 213.9 kB / 0.5676 GB, free: 12.26 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009906/0.9269, allocations: 4.423 MB / 0.572 GB, free: 7.812 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0011/0.928, allocations: 65.64 kB / 0.572 GB, free: 7.742 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003533/0.9315, allocations: 3.449 MB / 0.5754 GB, free: 4.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002216/0.9338, allocations: 0.9601 MB / 0.5763 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006244/0.94, allocations: 1.603 MB / 0.5779 GB, free: 1.664 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/0.9403, allocations: 301.1 kB / 0.5782 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008819/0.9491, allocations: 4.327 MB / 0.5824 GB, free: 13.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01238/0.9615, allocations: 8.242 MB / 0.5905 GB, free: 2.883 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01903/0.9806, allocations: 13.38 MB / 0.6035 GB, free: 3.59 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001608/0.9808, allocations: 40 kB / 0.6036 GB, free: 3.551 MB / 430.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.2407/1.221, allocations: 14.78 MB / 0.618 GB, free: 140.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002192/1.222, allocations: 65.62 kB / 0.6181 GB, free: 140.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000317/1.222, allocations: 137.8 kB / 0.6182 GB, free: 140.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006339/1.228, allocations: 2.455 MB / 0.6206 GB, free: 139.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007493/1.236, allocations: 1.79 MB / 0.6223 GB, free: 139.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01898/1.255, allocations: 15.85 MB / 0.6378 GB, free: 130 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007616/1.263, allocations: 465.8 kB / 0.6383 GB, free: 129.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001821/1.264, allocations: 0.5027 MB / 0.6388 GB, free: 129.1 MB / 430.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.005909/1.27, allocations: 2.388 MB / 0.6411 GB, free: 126.8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001464/1.272, allocations: 397.3 kB / 0.6415 GB, free: 126.6 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/1.287, allocations: 9.664 MB / 0.6509 GB, free: 116.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-05/1.287, allocations: 28 kB / 0.6509 GB, free: 116.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.433e-05/1.287, allocations: 16 kB / 0.6509 GB, free: 116.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.492e-05/1.287, allocations: 11.95 kB / 0.651 GB, free: 116.9 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03157/1.319, allocations: 18.14 MB / 0.6687 GB, free: 98.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.76e-05/1.319, allocations: 7.922 kB / 0.6687 GB, free: 98.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002976/1.322, allocations: 0.5849 MB / 0.6693 GB, free: 98.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005707/1.328, allocations: 2.234 MB / 0.6714 GB, free: 95.95 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004874/1.328, allocations: 123.8 kB / 0.6716 GB, free: 95.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01549/1.344, allocations: 14.6 MB / 0.6858 GB, free: 80.95 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.344, allocations: 0 / 0.6858 GB, free: 80.95 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02166/1.366, allocations: 15.16 MB / 0.7006 GB, free: 65.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003983/1.37, allocations: 1.058 MB / 0.7016 GB, free: 64.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001609/1.371, allocations: 46.2 kB / 0.7017 GB, free: 64.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003921/1.375, allocations: 231.6 kB / 0.7019 GB, free: 64.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001106/1.376, allocations: 237.6 kB / 0.7021 GB, free: 64.15 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005935/1.377, allocations: 143.8 kB / 0.7023 GB, free: 64.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005369/1.382, allocations: 2.791 MB / 0.705 GB, free: 61.21 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.71e-07/1.382, allocations: 3.938 kB / 0.705 GB, free: 61.21 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009481/1.392, allocations: 1.436 MB / 0.7064 GB, free: 59.78 MB / 430.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.001332/1.393, allocations: 186.3 kB / 0.7066 GB, free: 59.59 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01464/1.408, allocations: 10.38 MB / 0.7167 GB, free: 49.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/1.408, allocations: 4 kB / 0.7167 GB, free: 49.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006044/1.414, allocations: 4.629 MB / 0.7213 GB, free: 44.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005216/1.419, allocations: 481.5 kB / 0.7217 GB, free: 44.05 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02766/1.447, allocations: 15.7 MB / 0.737 GB, free: 28.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006819/1.454, allocations: 3.759 MB / 0.7407 GB, free: 24.54 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.007387/1.461, allocations: 2.389 MB / 0.743 GB, free: 22.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002534/1.464, allocations: 0.5417 MB / 0.7436 GB, free: 21.61 MB / 430.1 MB Notification: Performance of SimCode: time 1.402e-06/1.464, allocations: 0 / 0.7436 GB, free: 21.61 MB / 430.1 MB Notification: Performance of Templates: time 0.331/1.795, allocations: 77.46 MB / 0.8192 GB, free: 96.38 MB / 430.1 MB 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)