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.008501/0.008501, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001408/0.001408, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.567/1.567, allocations: 205.1 MB / 222.6 MB, free: 4.473 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.0011/0.0011, allocations: 46.3 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09994/0.1011, 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.0158/0.1169, allocations: 13.96 MB / 387.1 MB, free: 3.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01205/0.129, allocations: 4.713 MB / 391.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003253/0.1324, allocations: 87.75 kB / 391.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008087/0.1405, allocations: 4.089 MB / 396 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006912/0.1474, allocations: 2.066 MB / 398.1 MB, free: 8.289 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002417/0.1499, allocations: 0.8227 MB / 398.9 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007664/0.1575, allocations: 4.596 MB / 403.5 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006876/0.1644, allocations: 5.141 MB / 408.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00388/0.1684, allocations: 1.935 MB / 410.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004393/0.1728, allocations: 2.718 MB / 413.3 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001435/0.1742, allocations: 456 kB / 413.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003429/0.1777, allocations: 1.323 MB / 415.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002782/0.1805, allocations: 2.346 MB / 417.4 MB, free: 4.859 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004655/0.1851, allocations: 2.723 MB / 420.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01233/0.1975, allocations: 8.802 MB / 428.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.928e-06/0.1975, allocations: 0 / 428.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.1976, allocations: 3.938 kB / 429 MB, free: 9.281 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000296/0.1979, allocations: 0 / 429 MB, free: 9.281 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.03181/0.2297, allocations: 7.1 MB / 436.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.235e-05/0.2298, allocations: 12.03 kB / 436.1 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0171/0.2469, allocations: 2.568 MB / 438.6 MB, free: 15.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00837/0.2553, allocations: 3.188 MB / 441.8 MB, free: 12.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002396/0.2555, allocations: 303.8 kB / 442.1 MB, free: 11.97 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001253/0.2568, allocations: 407.8 kB / 442.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3176/0.5745, allocations: 13.27 MB / 455.8 MB, free: 62.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003469/0.5749, allocations: 51.48 kB / 455.8 MB, free: 62.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001657/0.5765, allocations: 190.7 kB / 456 MB, free: 62.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00643/0.583, allocations: 2.201 MB / 458.2 MB, free: 62.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03433/0.6173, allocations: 12.7 MB / 470.9 MB, free: 58.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05806/0.6754, allocations: 49.29 MB / 0.508 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02183/0.6973, allocations: 6.445 MB / 0.5143 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004083/0.7014, allocations: 3.918 MB / 0.5181 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007911/0.7023, allocations: 432.3 kB / 0.5185 GB, free: 1.637 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.109e-05/0.7023, allocations: 68.67 kB / 0.5186 GB, free: 1.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 5.671e-06/0.7023, allocations: 0 / 0.5186 GB, free: 1.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.1024/0.8047, allocations: 36.41 MB / 0.5542 GB, free: 13.2 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001796/0.8049, allocations: 209.9 kB / 0.5544 GB, free: 12.96 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007937/0.8129, allocations: 4.443 MB / 0.5587 GB, free: 8.574 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001399/0.8143, allocations: 61.7 kB / 0.5588 GB, free: 8.508 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003352/0.8177, allocations: 3.59 MB / 0.5623 GB, free: 4.977 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00279/0.8205, allocations: 0.9999 MB / 0.5633 GB, free: 3.969 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003425/0.824, allocations: 1.6 MB / 0.5648 GB, free: 2.359 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001241/0.8241, allocations: 313.1 kB / 0.5651 GB, free: 2.051 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007064/0.8312, allocations: 4.331 MB / 0.5693 GB, free: 13.71 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01107/0.8423, allocations: 8.226 MB / 0.5774 GB, free: 3.57 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01917/0.8615, allocations: 13.4 MB / 0.5905 GB, free: 4.262 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001293/0.8617, allocations: 40 kB / 0.5905 GB, free: 4.223 MB / 462.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.03237/0.8941, allocations: 14.8 MB / 0.6049 GB, free: 5.406 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.8943, allocations: 71.97 kB / 0.605 GB, free: 5.336 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002382/0.8945, allocations: 136 kB / 0.6051 GB, free: 5.203 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00753/0.9021, allocations: 2.456 MB / 0.6075 GB, free: 2.734 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007577/0.9097, allocations: 1.793 MB / 0.6093 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3016/1.211, allocations: 17.04 MB / 0.6259 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008244/1.22, allocations: 470.2 kB / 0.6264 GB, free: 153.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002343/1.222, allocations: 0.4948 MB / 0.6269 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.006765/1.229, allocations: 2.387 MB / 0.6292 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.23, allocations: 425.1 kB / 0.6296 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01821/1.248, allocations: 9.66 MB / 0.639 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.181e-05/1.249, allocations: 28.7 kB / 0.6391 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.444e-05/1.249, allocations: 10.5 kB / 0.6391 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.774e-05/1.249, allocations: 12.53 kB / 0.6391 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02894/1.278, allocations: 18.06 MB / 0.6567 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.219e-05/1.278, allocations: 0 / 0.6567 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003351/1.281, allocations: 0.588 MB / 0.6573 GB, free: 145.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006165/1.287, allocations: 2.242 MB / 0.6595 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007939/1.288, allocations: 129.6 kB / 0.6596 GB, free: 145.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01703/1.305, allocations: 15.67 MB / 0.6749 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/1.305, allocations: 0 / 0.6749 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02254/1.328, allocations: 15.21 MB / 0.6898 GB, free: 117 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00326/1.331, allocations: 1.083 MB / 0.6908 GB, free: 116.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/1.333, allocations: 45.06 kB / 0.6909 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004139/1.337, allocations: 219.7 kB / 0.6911 GB, free: 115.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001107/1.338, allocations: 245 kB / 0.6913 GB, free: 115.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005018/1.339, allocations: 143.8 kB / 0.6915 GB, free: 115.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004605/1.343, allocations: 2.791 MB / 0.6942 GB, free: 112.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.61e-07/1.343, allocations: 0 / 0.6942 GB, free: 112.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00927/1.352, allocations: 1.439 MB / 0.6956 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.0008874/1.353, allocations: 189.7 kB / 0.6958 GB, free: 111 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01469/1.368, allocations: 10.42 MB / 0.7059 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.368, allocations: 4 kB / 0.7059 GB, free: 100.6 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005468/1.374, allocations: 4.638 MB / 0.7105 GB, free: 95.98 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005131/1.379, allocations: 0.4976 MB / 0.711 GB, free: 95.51 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/1.397, allocations: 13.35 MB / 0.724 GB, free: 82.18 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003501/1.401, allocations: 3.748 MB / 0.7277 GB, free: 78.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005186/1.406, allocations: 2.391 MB / 0.73 GB, free: 76 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001712/1.408, allocations: 0.5417 MB / 0.7305 GB, free: 75.46 MB / 494.1 MB Notification: Performance of SimCode: time 9.62e-07/1.408, allocations: 0 / 0.7305 GB, free: 75.46 MB / 494.1 MB Notification: Performance of Templates: time 0.119/1.527, allocations: 76.86 MB / 0.8056 GB, free: 14.59 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)