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.001583/0.001583, 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.001927/0.001927, allocations: 191.3 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.6/1.6, allocations: 205.1 MB / 222 MB, free: 4.766 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.001112/0.001112, allocations: 43.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2575/0.2586, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.05855/0.3172, allocations: 66.41 MB / 391.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03461/0.3519, allocations: 13.43 MB / 404.5 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01585/0.3678, allocations: 283.3 kB / 404.8 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008482/0.3764, allocations: 4.087 MB / 408.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006877/0.3833, allocations: 1.938 MB / 410.8 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003289/0.3866, allocations: 0.7334 MB / 411.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.3967, allocations: 6.792 MB / 418.3 MB, free: 6.168 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008987/0.4058, allocations: 5.056 MB / 423.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004184/0.41, allocations: 1.725 MB / 425.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005573/0.4156, allocations: 2.886 MB / 428 MB, free: 12.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002017/0.4177, allocations: 328 kB / 428.3 MB, free: 12.1 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003697/0.4214, allocations: 1.264 MB / 429.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003938/0.4254, allocations: 2.26 MB / 431.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00548/0.4309, allocations: 2.618 MB / 434.5 MB, free: 5.938 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.4414, allocations: 8.427 MB / 442.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.4415, allocations: 3.938 kB / 442.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4415, allocations: 0 / 442.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000437/0.4419, allocations: 0 / 442.9 MB, free: 13.48 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.03101/0.4729, allocations: 6.953 MB / 449.9 MB, free: 6.453 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.473, allocations: 8.031 kB / 449.9 MB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01499/0.488, allocations: 2.533 MB / 452.4 MB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008344/0.4964, allocations: 3.136 MB / 455.5 MB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002559/0.4967, allocations: 295.8 kB / 455.8 MB, free: 428 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00115/0.4978, allocations: 399.8 kB / 456.2 MB, free: 28 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2228/0.7206, allocations: 13.29 MB / 469.5 MB, free: 108.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.7208, allocations: 50.27 kB / 469.5 MB, free: 108.7 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005701/0.7214, allocations: 180.7 kB / 469.7 MB, free: 108.6 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/0.7249, allocations: 2.21 MB / 471.9 MB, free: 106.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02393/0.7488, allocations: 12.69 MB / 484.6 MB, free: 94.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05773/0.8066, allocations: 49.42 MB / 0.5215 GB, free: 43.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02202/0.8287, allocations: 6.449 MB / 0.5278 GB, free: 37.31 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004314/0.833, allocations: 3.917 MB / 0.5317 GB, free: 33.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007885/0.8338, allocations: 428.2 kB / 0.5321 GB, free: 32.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.8339, allocations: 55.88 kB / 0.5321 GB, free: 32.85 MB / 382.1 MB Notification: Performance of pre-optimization done (n=217): time 4.588e-06/0.8339, allocations: 0 / 0.5321 GB, free: 32.85 MB / 382.1 MB Notification: Performance of matching and sorting (n=255): time 0.09016/0.924, allocations: 36.17 MB / 0.5674 GB, free: 12.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001493/0.9242, allocations: 213.8 kB / 0.5676 GB, free: 12.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006878/0.9311, allocations: 4.423 MB / 0.572 GB, free: 7.746 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001021/0.9322, allocations: 62.64 kB / 0.572 GB, free: 7.68 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002698/0.9349, allocations: 3.457 MB / 0.5754 GB, free: 4.176 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001757/0.9366, allocations: 0.9562 MB / 0.5763 GB, free: 3.207 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002613/0.9393, allocations: 1.595 MB / 0.5779 GB, free: 1.602 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.9394, allocations: 305.1 kB / 0.5782 GB, free: 1.301 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006247/0.9457, allocations: 4.331 MB / 0.5824 GB, free: 12.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009828/0.9555, allocations: 8.232 MB / 0.5905 GB, free: 2.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01791/0.9735, allocations: 13.38 MB / 0.6035 GB, free: 3.527 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001227/0.9736, allocations: 40 kB / 0.6036 GB, free: 3.488 MB / 430.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.2896/1.263, allocations: 14.79 MB / 0.618 GB, free: 140.3 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.316e-05/1.263, allocations: 62.78 kB / 0.6181 GB, free: 140.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001598/1.264, allocations: 137.4 kB / 0.6182 GB, free: 140.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006159/1.27, allocations: 2.449 MB / 0.6206 GB, free: 139.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007062/1.277, allocations: 1.793 MB / 0.6223 GB, free: 139.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01753/1.294, allocations: 15.85 MB / 0.6378 GB, free: 130 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00794/1.302, allocations: 470.9 kB / 0.6383 GB, free: 129.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001529/1.304, allocations: 0.5029 MB / 0.6388 GB, free: 129 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.005106/1.309, allocations: 2.384 MB / 0.6411 GB, free: 126.7 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/1.311, allocations: 393.4 kB / 0.6415 GB, free: 126.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01333/1.324, allocations: 9.669 MB / 0.6509 GB, free: 116.8 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.04e-05/1.324, allocations: 28 kB / 0.6509 GB, free: 116.8 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.578e-05/1.324, allocations: 8 kB / 0.6509 GB, free: 116.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.524e-05/1.324, allocations: 15.95 kB / 0.651 GB, free: 116.8 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02673/1.351, allocations: 18.14 MB / 0.6687 GB, free: 98.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-05/1.351, allocations: 7.922 kB / 0.6687 GB, free: 98.69 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002993/1.354, allocations: 0.5889 MB / 0.6693 GB, free: 98.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00557/1.359, allocations: 2.23 MB / 0.6714 GB, free: 95.86 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007314/1.36, allocations: 127.8 kB / 0.6716 GB, free: 95.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01497/1.375, allocations: 14.59 MB / 0.6858 GB, free: 80.86 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.729e-06/1.375, allocations: 4 kB / 0.6858 GB, free: 80.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0208/1.396, allocations: 15.16 MB / 0.7006 GB, free: 65.64 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002955/1.399, allocations: 1.062 MB / 0.7017 GB, free: 64.55 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001234/1.4, allocations: 43.94 kB / 0.7017 GB, free: 64.51 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003323/1.404, allocations: 223.7 kB / 0.7019 GB, free: 64.29 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008252/1.405, allocations: 237.6 kB / 0.7021 GB, free: 64.05 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000351/1.405, allocations: 147.5 kB / 0.7023 GB, free: 63.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004203/1.409, allocations: 2.791 MB / 0.705 GB, free: 61.12 MB / 430.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.409, allocations: 4 kB / 0.705 GB, free: 61.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008374/1.417, allocations: 1.432 MB / 0.7064 GB, free: 59.68 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.0009553/1.418, allocations: 187.4 kB / 0.7066 GB, free: 59.5 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01436/1.433, allocations: 10.38 MB / 0.7167 GB, free: 49.11 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.616e-06/1.433, allocations: 0 / 0.7167 GB, free: 49.11 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006213/1.439, allocations: 4.634 MB / 0.7212 GB, free: 44.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003857/1.443, allocations: 485.9 kB / 0.7217 GB, free: 43.96 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0235/1.467, allocations: 15.7 MB / 0.737 GB, free: 28.23 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004116/1.471, allocations: 3.755 MB / 0.7407 GB, free: 24.45 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006179/1.477, allocations: 2.387 MB / 0.743 GB, free: 22.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002123/1.479, allocations: 0.5378 MB / 0.7436 GB, free: 21.51 MB / 430.1 MB Notification: Performance of SimCode: time 1.643e-06/1.479, allocations: 0 / 0.7436 GB, free: 21.51 MB / 430.1 MB Notification: Performance of Templates: time 0.3297/1.809, allocations: 77.46 MB / 0.8192 GB, free: 96.3 MB / 430.1 MB 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)