Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.009425/0.009425, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.002071/0.002071, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.467/1.467, allocations: 205.1 MB / 222.5 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.001189/0.001189, allocations: 51.14 kB / 326.5 MB, free: 14.31 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09472/0.09591, allocations: 46.63 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01516/0.1111, allocations: 13.96 MB / 387.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01063/0.1219, allocations: 4.716 MB / 391.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002627/0.1246, allocations: 83.75 kB / 391.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007336/0.1319, allocations: 4.092 MB / 396 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00555/0.1375, allocations: 2.069 MB / 398.1 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.1397, allocations: 0.8227 MB / 398.9 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007372/0.147, allocations: 4.592 MB / 403.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0077/0.1548, allocations: 5.145 MB / 408.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003643/0.1585, allocations: 1.932 MB / 410.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004289/0.1628, allocations: 2.722 MB / 413.3 MB, free: 8.973 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001625/0.1644, allocations: 452 kB / 413.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003511/0.168, allocations: 1.327 MB / 415.1 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004476/0.1725, allocations: 2.342 MB / 417.4 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00642/0.1789, allocations: 2.727 MB / 420.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01326/0.1922, allocations: 8.752 MB / 428.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.1923, allocations: 0 / 428.9 MB, free: 9.332 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.496e-06/0.1923, allocations: 7.938 kB / 428.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002992/0.1926, allocations: 7.938 kB / 428.9 MB, free: 9.316 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.03199/0.2246, allocations: 6.961 MB / 435.9 MB, free: 2.281 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.2247, allocations: 8.031 kB / 435.9 MB, free: 2.273 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01713/0.2418, allocations: 2.533 MB / 438.4 MB, free: 15.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008046/0.2499, allocations: 3.179 MB / 441.6 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002405/0.2502, allocations: 295.8 kB / 441.9 MB, free: 12.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/0.2515, allocations: 407.7 kB / 442.3 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2488/0.5004, allocations: 13.28 MB / 455.6 MB, free: 62.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002736/0.5007, allocations: 48.36 kB / 455.6 MB, free: 62.96 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001076/0.5018, allocations: 189.1 kB / 455.8 MB, free: 62.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005259/0.507, allocations: 2.201 MB / 458 MB, free: 62.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03017/0.5373, allocations: 12.7 MB / 470.7 MB, free: 58.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06295/0.6003, allocations: 49.2 MB / 0.5077 GB, free: 12.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02229/0.6226, allocations: 6.444 MB / 0.514 GB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003898/0.6265, allocations: 3.92 MB / 0.5178 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007877/0.6274, allocations: 426.3 kB / 0.5182 GB, free: 1.867 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.499e-05/0.6274, allocations: 60.94 kB / 0.5183 GB, free: 1.801 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.06e-06/0.6274, allocations: 0 / 0.5183 GB, free: 1.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1082/0.7356, allocations: 36.17 MB / 0.5536 GB, free: 13.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.7358, allocations: 213.9 kB / 0.5538 GB, free: 13.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008014/0.7438, allocations: 4.427 MB / 0.5581 GB, free: 8.715 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001178/0.7451, allocations: 61.7 kB / 0.5582 GB, free: 8.648 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003346/0.7484, allocations: 3.449 MB / 0.5616 GB, free: 5.156 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002511/0.751, allocations: 0.9678 MB / 0.5625 GB, free: 4.176 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003307/0.7543, allocations: 1.591 MB / 0.5641 GB, free: 2.574 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001419/0.7544, allocations: 301.1 kB / 0.5644 GB, free: 2.277 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006512/0.761, allocations: 4.335 MB / 0.5686 GB, free: 13.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01114/0.7721, allocations: 8.232 MB / 0.5766 GB, free: 3.789 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01963/0.7918, allocations: 13.39 MB / 0.5897 GB, free: 4.484 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001723/0.792, allocations: 40 kB / 0.5897 GB, free: 4.445 MB / 462.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.04079/0.8329, allocations: 14.77 MB / 0.6042 GB, free: 5.645 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003164/0.8332, allocations: 67.91 kB / 0.6042 GB, free: 5.578 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004545/0.8337, allocations: 136 kB / 0.6044 GB, free: 5.445 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008559/0.8423, allocations: 2.453 MB / 0.6068 GB, free: 2.98 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008118/0.8505, allocations: 1.793 MB / 0.6085 GB, free: 1.184 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3377/1.188, allocations: 17.03 MB / 0.6251 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008869/1.197, allocations: 473 kB / 0.6256 GB, free: 152.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002819/1.2, allocations: 0.4913 MB / 0.6261 GB, free: 152.2 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.008133/1.208, allocations: 2.384 MB / 0.6284 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001819/1.21, allocations: 405.2 kB / 0.6288 GB, free: 152.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02069/1.231, allocations: 9.663 MB / 0.6382 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.831e-05/1.231, allocations: 27.03 kB / 0.6382 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.75e-05/1.231, allocations: 11.09 kB / 0.6383 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.998e-05/1.231, allocations: 13.22 kB / 0.6383 GB, free: 150 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03233/1.263, allocations: 18.05 MB / 0.6559 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.187e-05/1.263, allocations: 1.469 kB / 0.6559 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003929/1.267, allocations: 0.586 MB / 0.6565 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006665/1.274, allocations: 2.247 MB / 0.6587 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001242/1.275, allocations: 128.7 kB / 0.6588 GB, free: 143.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01789/1.293, allocations: 15.67 MB / 0.6741 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/1.293, allocations: 0 / 0.6741 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02214/1.315, allocations: 15.2 MB / 0.6889 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004198/1.32, allocations: 1.064 MB / 0.69 GB, free: 114.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001357/1.321, allocations: 40 kB / 0.69 GB, free: 114.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003611/1.325, allocations: 219.5 kB / 0.6902 GB, free: 114.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008189/1.326, allocations: 249.5 kB / 0.6905 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003188/1.326, allocations: 143.8 kB / 0.6906 GB, free: 114.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00403/1.33, allocations: 2.795 MB / 0.6933 GB, free: 111.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.33, allocations: 0 / 0.6933 GB, free: 111.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007873/1.338, allocations: 1.435 MB / 0.6947 GB, free: 110 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.0007143/1.339, allocations: 193.2 kB / 0.6949 GB, free: 109.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01427/1.353, allocations: 10.41 MB / 0.7051 GB, free: 99.46 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/1.353, allocations: 6.75 kB / 0.7051 GB, free: 99.46 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006231/1.359, allocations: 4.64 MB / 0.7096 GB, free: 94.79 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00465/1.364, allocations: 497.4 kB / 0.7101 GB, free: 94.33 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02203/1.386, allocations: 13.17 MB / 0.7229 GB, free: 81.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003977/1.39, allocations: 3.755 MB / 0.7266 GB, free: 77.39 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005734/1.396, allocations: 2.379 MB / 0.7289 GB, free: 75.01 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/1.398, allocations: 0.5417 MB / 0.7295 GB, free: 74.46 MB / 494.1 MB Notification: Performance of SimCode: time 1.493e-06/1.398, allocations: 0 / 0.7295 GB, free: 74.46 MB / 494.1 MB Notification: Performance of Templates: time 0.1231/1.521, allocations: 76.86 MB / 0.8045 GB, free: 13.58 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)