Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00258/0.002586, allocations: 182.1 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.578/3.578, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002077/0.002077, allocations: 97.48 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006766/0.0006769, allocations: 12 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5337/0.5344, allocations: 47.56 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.1274/0.6619, allocations: 56.83 MB / 431.4 MB, free: 7.883 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.06437/0.7263, allocations: 13.37 MB / 444.7 MB, free: 10.47 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01937/0.7458, allocations: 275.4 kB / 445 MB, free: 10.2 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01695/0.7628, allocations: 2.838 MB / 447.8 MB, free: 7.352 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05813/0.821, allocations: 8.126 MB / 456 MB, free: 15.21 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008541/0.8296, allocations: 0.7254 MB / 456.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.06669/0.8964, allocations: 14.37 MB / 471.1 MB, free: 92 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02376/0.9202, allocations: 6.319 MB / 477.4 MB, free: 9.711 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005389/0.9257, allocations: 1.187 MB / 478.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00704/0.9328, allocations: 1.678 MB / 480.2 MB, free: 6.836 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002134/0.935, allocations: 172 kB / 480.4 MB, free: 6.668 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005717/0.9409, allocations: 0.9442 MB / 481.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005867/0.9468, allocations: 1.835 MB / 483.2 MB, free: 3.883 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003602/0.9505, allocations: 0.9829 MB / 484.2 MB, free: 2.891 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0201/0.9707, allocations: 6.949 MB / 491.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.9708, allocations: 0 / 491.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.148e-06/0.9708, allocations: 0 / 491.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003761/0.9712, allocations: 0 / 491.1 MB, free: 11.93 MB / 378.7 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.08386/1.055, allocations: 6.146 MB / 497.3 MB, free: 5.707 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.648e-05/1.055, allocations: 8.031 kB / 497.3 MB, free: 5.699 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.6959/1.751, allocations: 8.373 MB / 0.4938 GB, free: 109.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02058/1.772, allocations: 3.415 MB / 0.4971 GB, free: 108 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007289/1.773, allocations: 300.2 kB / 0.4974 GB, free: 107.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003969/1.777, allocations: 406 kB / 0.4978 GB, free: 107.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06892/1.846, allocations: 13.35 MB / 0.5109 GB, free: 98.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004414/1.846, allocations: 47.59 kB / 0.5109 GB, free: 98.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003259/1.849, allocations: 184.6 kB / 0.5111 GB, free: 98.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01086/1.86, allocations: 2.198 MB / 0.5132 GB, free: 96.47 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06507/1.926, allocations: 12.79 MB / 0.5257 GB, free: 83.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1451/2.071, allocations: 49.32 MB / 0.5739 GB, free: 33.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06992/2.141, allocations: 6.612 MB / 0.5803 GB, free: 26.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002324/2.143, allocations: 427.3 kB / 0.5807 GB, free: 26.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001048/2.143, allocations: 64.84 kB / 0.5808 GB, free: 26.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=217): time 1.155e-05/2.143, allocations: 0 / 0.5808 GB, free: 26.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=255): time 0.2938/2.437, allocations: 37.19 MB / 0.6171 GB, free: 4.793 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002897/2.438, allocations: 213.9 kB / 0.6173 GB, free: 4.539 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01932/2.457, allocations: 4.558 MB / 0.6218 GB, free: 15.96 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001549/2.459, allocations: 65.7 kB / 0.6218 GB, free: 15.89 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006062/2.465, allocations: 3.384 MB / 0.6251 GB, free: 12.51 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003422/2.468, allocations: 0.9594 MB / 0.6261 GB, free: 11.55 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002264/2.471, allocations: 135.6 kB / 0.6262 GB, free: 11.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.001118/2.472, allocations: 0.6012 MB / 0.6268 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01814/2.49, allocations: 4.265 MB / 0.631 GB, free: 6.547 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02488/2.515, allocations: 8.121 MB / 0.6389 GB, free: 12.51 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02346/2.538, allocations: 5.752 MB / 0.6445 GB, free: 6.754 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002116/2.539, allocations: 40 kB / 0.6446 GB, free: 6.715 MB / 426.7 MB Notification: Performance of matching and sorting (n=884) (initialization): time 0.552/3.091, allocations: 14.46 MB / 0.6587 GB, free: 135.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002842/3.091, allocations: 62.91 kB / 0.6587 GB, free: 135.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005003/3.092, allocations: 136.1 kB / 0.6589 GB, free: 135.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02173/3.113, allocations: 2.514 MB / 0.6613 GB, free: 134.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01807/3.132, allocations: 1.768 MB / 0.663 GB, free: 134.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05152/3.183, allocations: 16.3 MB / 0.679 GB, free: 126.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01689/3.2, allocations: 478.9 kB / 0.6794 GB, free: 126.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003221/3.203, allocations: 0.4925 MB / 0.6799 GB, free: 126 MB / 426.7 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 (811): * Single equations (assignments): 805 * 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.01137/3.215, allocations: 2.386 MB / 0.6822 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002686/3.218, allocations: 404.2 kB / 0.6826 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04407/3.262, allocations: 9.702 MB / 0.6921 GB, free: 116 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.8e-05/3.262, allocations: 28 kB / 0.6921 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.487e-05/3.262, allocations: 8.875 kB / 0.6921 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-05/3.262, allocations: 11.95 kB / 0.6921 GB, free: 115.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08096/3.343, allocations: 18.17 MB / 0.7099 GB, free: 97.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.068e-05/3.343, allocations: 4 kB / 0.7099 GB, free: 97.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009307/3.353, allocations: 0.5966 MB / 0.7105 GB, free: 97.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01806/3.371, allocations: 2.276 MB / 0.7127 GB, free: 94.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001623/3.372, allocations: 132.5 kB / 0.7128 GB, free: 94.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04739/3.42, allocations: 15.02 MB / 0.7275 GB, free: 79.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/3.42, allocations: 0 / 0.7275 GB, free: 79.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05804/3.478, allocations: 15.42 MB / 0.7425 GB, free: 63.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005959/3.484, allocations: 1.077 MB / 0.7436 GB, free: 62.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003208/3.487, allocations: 48.19 kB / 0.7436 GB, free: 62.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01027/3.498, allocations: 234 kB / 0.7439 GB, free: 62.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0026/3.5, allocations: 241.6 kB / 0.7441 GB, free: 62.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001812/3.502, allocations: 147.8 kB / 0.7442 GB, free: 62.22 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0113/3.514, allocations: 2.9 MB / 0.7471 GB, free: 59.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.613e-06/3.514, allocations: 0 / 0.7471 GB, free: 59.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01608/3.53, allocations: 1.439 MB / 0.7485 GB, free: 57.88 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (202): * Single equations (assignments): 196 * 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.002505/3.532, allocations: 213.9 kB / 0.7487 GB, free: 57.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.03587/3.568, allocations: 10.26 MB / 0.7587 GB, free: 47.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.374e-05/3.568, allocations: 0 / 0.7587 GB, free: 47.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01754/3.586, allocations: 4.638 MB / 0.7632 GB, free: 42.76 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006969/3.593, allocations: 466.6 kB / 0.7637 GB, free: 42.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05891/3.652, allocations: 15.81 MB / 0.7791 GB, free: 26.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01308/3.665, allocations: 3.869 MB / 0.7829 GB, free: 22.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007028/3.672, allocations: 0.5847 MB / 0.7835 GB, free: 21.96 MB / 426.7 MB Notification: Performance of SimCode: time 1.763e-05/3.672, allocations: 0 / 0.7835 GB, free: 21.96 MB / 426.7 MB Notification: Performance of Templates: time 0.8295/4.502, allocations: 140.6 MB / 0.9208 GB, free: 48.77 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1)