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.001052/0.001052, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001086/0.001086, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.0004815/0.0004817, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2849, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.0584/0.3433, allocations: 60.24 MB / 386.7 MB, free: 7.109 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03631/0.3797, allocations: 12.78 MB / 399.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01423/0.3939, allocations: 283.3 kB / 399.8 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01042/0.4044, allocations: 2.935 MB / 402.7 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02891/0.4333, allocations: 8.58 MB / 411.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003977/0.4373, allocations: 0.7059 MB / 412 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02653/0.4639, allocations: 19.5 MB / 431.5 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01114/0.4751, allocations: 6.36 MB / 437.9 MB, free: 3.781 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003394/0.4785, allocations: 1.448 MB / 439.3 MB, free: 2.328 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00382/0.4824, allocations: 2.391 MB / 441.7 MB, free: 15.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001061/0.4834, allocations: 172 kB / 441.9 MB, free: 15.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002769/0.4862, allocations: 0.9713 MB / 442.8 MB, free: 14.79 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003037/0.4893, allocations: 1.975 MB / 444.8 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002467/0.4918, allocations: 0.979 MB / 445.8 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009396/0.5012, allocations: 6.784 MB / 452.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.5012, allocations: 0 / 452.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.5012, allocations: 0 / 452.6 MB, free: 5.02 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003834/0.5016, allocations: 4 kB / 452.6 MB, free: 5.016 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.2506/0.7522, allocations: 5.802 MB / 458.4 MB, free: 115.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.628e-05/0.7523, allocations: 8.875 kB / 458.4 MB, free: 115.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01533/0.7677, allocations: 2.593 MB / 461 MB, free: 115.1 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008439/0.7762, allocations: 3.087 MB / 464.1 MB, free: 113.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002956/0.7765, allocations: 298.9 kB / 464.4 MB, free: 113.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.7777, allocations: 405.5 kB / 464.8 MB, free: 113.1 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02275/0.8005, allocations: 13.27 MB / 478 MB, free: 101.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.8007, allocations: 47.53 kB / 478.1 MB, free: 101.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005551/0.8012, allocations: 191.3 kB / 478.3 MB, free: 101.4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00333/0.8046, allocations: 2.199 MB / 480.5 MB, free: 99.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02269/0.8273, allocations: 12.67 MB / 493.1 MB, free: 86.52 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05573/0.8831, allocations: 49.38 MB / 0.5298 GB, free: 36.31 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02015/0.9032, allocations: 6.449 MB / 0.5361 GB, free: 29.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004314/0.9076, allocations: 3.919 MB / 0.5399 GB, free: 25.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008116/0.9084, allocations: 431.1 kB / 0.5403 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.428e-05/0.9085, allocations: 55.81 kB / 0.5404 GB, free: 25.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 7.965e-06/0.9085, allocations: 0 / 0.5404 GB, free: 25.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.08543/0.994, allocations: 36.19 MB / 0.5757 GB, free: 4.863 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/0.9941, allocations: 205.9 kB / 0.5759 GB, free: 4.617 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005876/1, allocations: 4.403 MB / 0.5802 GB, free: 192 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004159/1, allocations: 65.7 kB / 0.5803 GB, free: 120 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002577/1.003, allocations: 3.452 MB / 0.5836 GB, free: 12.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/1.004, allocations: 0.9562 MB / 0.5846 GB, free: 11.65 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004043/1.005, allocations: 136 kB / 0.5847 GB, free: 11.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000397/1.005, allocations: 0.5994 MB / 0.5853 GB, free: 10.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00599/1.011, allocations: 4.316 MB / 0.5895 GB, free: 6.594 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008932/1.02, allocations: 8.212 MB / 0.5975 GB, free: 12.47 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009892/1.03, allocations: 5.832 MB / 0.6032 GB, free: 6.633 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001404/1.03, allocations: 39.95 kB / 0.6033 GB, free: 6.594 MB / 430.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.2792/1.309, allocations: 14.74 MB / 0.6177 GB, free: 140.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.88e-05/1.309, allocations: 62.88 kB / 0.6177 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001678/1.31, allocations: 133.7 kB / 0.6179 GB, free: 140.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005726/1.315, allocations: 2.468 MB / 0.6203 GB, free: 140.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006443/1.322, allocations: 1.798 MB / 0.622 GB, free: 140.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/1.34, allocations: 15.82 MB / 0.6375 GB, free: 131.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007364/1.347, allocations: 476.7 kB / 0.6379 GB, free: 131.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001894/1.349, allocations: 0.4947 MB / 0.6384 GB, free: 131.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005673/1.355, allocations: 2.39 MB / 0.6407 GB, free: 129.2 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001158/1.356, allocations: 401.8 kB / 0.6411 GB, free: 129 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0138/1.37, allocations: 9.667 MB / 0.6506 GB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-05/1.37, allocations: 28 kB / 0.6506 GB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-05/1.37, allocations: 10.75 kB / 0.6506 GB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.771e-05/1.37, allocations: 15.95 kB / 0.6506 GB, free: 119.3 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02555/1.395, allocations: 18.15 MB / 0.6683 GB, free: 101.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/1.395, allocations: 3.812 kB / 0.6683 GB, free: 101.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002881/1.398, allocations: 0.5889 MB / 0.6689 GB, free: 100.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005191/1.404, allocations: 2.228 MB / 0.6711 GB, free: 98.37 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006066/1.404, allocations: 126.1 kB / 0.6712 GB, free: 98.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01504/1.419, allocations: 14.57 MB / 0.6854 GB, free: 83.39 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/1.419, allocations: 7.938 kB / 0.6854 GB, free: 83.39 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01969/1.439, allocations: 15.16 MB / 0.7002 GB, free: 68.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002728/1.442, allocations: 1.066 MB / 0.7013 GB, free: 67.07 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001393/1.443, allocations: 40.7 kB / 0.7013 GB, free: 67.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003401/1.447, allocations: 223.7 kB / 0.7015 GB, free: 66.82 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007452/1.447, allocations: 245.7 kB / 0.7018 GB, free: 66.58 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000427/1.448, allocations: 152.4 kB / 0.7019 GB, free: 66.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005401/1.453, allocations: 2.768 MB / 0.7046 GB, free: 63.66 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/1.453, allocations: 2.188 kB / 0.7046 GB, free: 63.66 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008013/1.461, allocations: 1.435 MB / 0.706 GB, free: 62.23 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008666/1.462, allocations: 183.7 kB / 0.7062 GB, free: 62.05 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01399/1.476, allocations: 10.37 MB / 0.7163 GB, free: 51.69 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1.476, allocations: 0 / 0.7163 GB, free: 51.69 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00604/1.482, allocations: 4.612 MB / 0.7208 GB, free: 47.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004903/1.487, allocations: 488.4 kB / 0.7213 GB, free: 46.57 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02505/1.512, allocations: 15.29 MB / 0.7362 GB, free: 31.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00554/1.518, allocations: 3.759 MB / 0.7399 GB, free: 27.45 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005922/1.524, allocations: 2.387 MB / 0.7422 GB, free: 25.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001941/1.526, allocations: 0.5456 MB / 0.7428 GB, free: 24.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.493e-06/1.526, allocations: 0 / 0.7428 GB, free: 24.5 MB / 430.1 MB Notification: Performance of Templates: time 0.34/1.866, allocations: 74.23 MB / 0.8153 GB, free: 103.3 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)