Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 175 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.19/1.19, allocations: 221.4 MB / 234.6 MB, free: 14.44 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008226/0.0008224, allocations: 92.92 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03833/0.03833, allocations: 8.836 MB / 345.3 MB, free: 1.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.568e-05, allocations: 4 kB / 405.6 MB, free: 61.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06953/0.06957, allocations: 52.39 MB / 457.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.281/0.3506, allocations: 94.14 MB / 0.5392 GB, free: 7.719 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002067/0.3508, allocations: 93.52 kB / 0.5392 GB, free: 7.672 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2308/0.5816, allocations: 99.64 MB / 0.6365 GB, free: 9.648 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5817, allocations: 0 / 0.6365 GB, free: 9.648 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001363/0.5818, allocations: 88 kB / 0.6366 GB, free: 9.562 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02487/0.6067, allocations: 5.197 MB / 0.6417 GB, free: 4.297 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.6067, allocations: 8.031 kB / 0.6417 GB, free: 4.289 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01519/0.6219, allocations: 3.608 MB / 0.6452 GB, free: 0.668 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2036/0.8256, allocations: 2.639 MB / 0.6478 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003514/0.826, allocations: 361.1 kB / 0.6482 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001625/0.8276, allocations: 475.1 kB / 0.6486 GB, free: 104.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.8524, allocations: 13.44 MB / 0.6617 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001736/0.8526, allocations: 69.73 kB / 0.6618 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007653/0.8534, allocations: 238.3 kB / 0.662 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002161/0.8555, allocations: 1.529 MB / 0.6635 GB, free: 101.6 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02151/0.8771, allocations: 11.8 MB / 0.675 GB, free: 101.5 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05031/0.9274, allocations: 55.74 MB / 0.7295 GB, free: 61.15 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01135/0.9388, allocations: 3.787 MB / 0.7332 GB, free: 59.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002019/0.9409, allocations: 1.333 MB / 0.7345 GB, free: 58.73 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0117/0.9526, allocations: 9.098 MB / 0.7434 GB, free: 52.93 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.611e-05/0.9526, allocations: 50.16 kB / 0.7434 GB, free: 52.88 MB / 458.7 MB Notification: Performance of pre-optimization done (n=202): time 4.889e-06/0.9527, allocations: 0 / 0.7434 GB, free: 52.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=211): time 0.0156/0.9683, allocations: 9.22 MB / 0.7524 GB, free: 48.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.9683, allocations: 156.8 kB / 0.7526 GB, free: 48.09 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005734/0.9741, allocations: 4.543 MB / 0.757 GB, free: 45.22 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000287/0.9744, allocations: 49.7 kB / 0.757 GB, free: 45.17 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001649/0.9761, allocations: 3.925 MB / 0.7609 GB, free: 41.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006989/0.9768, allocations: 0.8365 MB / 0.7617 GB, free: 40.93 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002791/0.9771, allocations: 156.9 kB / 0.7618 GB, free: 40.78 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003202/0.9774, allocations: 0.6423 MB / 0.7625 GB, free: 40.22 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002545/0.9799, allocations: 2.138 MB / 0.7646 GB, free: 38.28 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003959/0.9839, allocations: 7.184 MB / 0.7716 GB, free: 29.05 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00416/0.9881, allocations: 3.979 MB / 0.7755 GB, free: 25.63 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-05/0.9882, allocations: 52 kB / 0.7755 GB, free: 25.58 MB / 458.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01206/1, allocations: 8.976 MB / 0.7843 GB, free: 17.58 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.664e-05/1, allocations: 84 kB / 0.7844 GB, free: 17.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/1.001, allocations: 180.9 kB / 0.7845 GB, free: 17.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001852/1.001, allocations: 262.4 kB / 0.7848 GB, free: 17.07 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005065/1.006, allocations: 1.852 MB / 0.7866 GB, free: 15.44 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001953/1.006, allocations: 354.5 kB / 0.7869 GB, free: 15.13 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004962/1.011, allocations: 370.3 kB / 0.7873 GB, free: 14.79 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009731/1.012, allocations: 0.4992 MB / 0.7878 GB, free: 14.3 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009419/1.013, allocations: 0.6997 MB / 0.7885 GB, free: 13.59 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006081/1.014, allocations: 426 kB / 0.7889 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00267/1.016, allocations: 1.894 MB / 0.7907 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001085/1.016, allocations: 31.09 kB / 0.7907 GB, free: 11.51 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/1.016, allocations: 8 kB / 0.7907 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/1.016, allocations: 6.938 kB / 0.7908 GB, free: 11.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01093/1.027, allocations: 7.761 MB / 0.7983 GB, free: 4.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.885e-05/1.027, allocations: 19.8 kB / 0.7983 GB, free: 4.895 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/1.028, allocations: 306.3 kB / 0.7986 GB, free: 4.645 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001369/1.029, allocations: 36.86 kB / 0.7987 GB, free: 4.605 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001058/1.029, allocations: 55.27 kB / 0.7987 GB, free: 4.559 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006767/1.029, allocations: 1.292 MB / 0.8 GB, free: 3.156 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.588e-06/1.029, allocations: 23.88 kB / 0.8 GB, free: 3.133 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005567/1.035, allocations: 6.233 MB / 0.8061 GB, free: 12.64 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001164/1.036, allocations: 0.508 MB / 0.8066 GB, free: 12.13 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004015/1.037, allocations: 47.47 kB / 0.8066 GB, free: 12.09 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/1.038, allocations: 72.89 kB / 0.8067 GB, free: 12.03 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002229/1.038, allocations: 143.8 kB / 0.8068 GB, free: 11.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/1.038, allocations: 79.62 kB / 0.8069 GB, free: 11.86 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004895/1.043, allocations: 3.136 MB / 0.81 GB, free: 9.086 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.043, allocations: 0 / 0.81 GB, free: 9.086 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005965/1.049, allocations: 1.123 MB / 0.8111 GB, free: 7.973 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (162): * Single equations (assignments): 154 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004525/1.05, allocations: 205.2 kB / 0.8113 GB, free: 7.781 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007993/1.058, allocations: 5.02 MB / 0.8162 GB, free: 3.184 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/1.058, allocations: 8.125 kB / 0.8162 GB, free: 3.176 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00168/1.059, allocations: 1.202 MB / 0.8174 GB, free: 2.059 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/1.062, allocations: 0.5127 MB / 0.8179 GB, free: 1.621 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2155/1.278, allocations: 8.592 MB / 0.8263 GB, free: 103.9 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004688/1.282, allocations: 3.875 MB / 0.83 GB, free: 103.1 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006487/1.289, allocations: 2.453 MB / 0.8324 GB, free: 103.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008347/1.29, allocations: 313.7 kB / 0.8327 GB, free: 103.1 MB / 474.7 MB Notification: Performance of SimCode: time 7.62e-07/1.29, allocations: 4.625 kB / 0.8327 GB, free: 103.1 MB / 474.7 MB Notification: Performance of Templates: time 0.0577/1.347, allocations: 34.94 MB / 0.8669 GB, free: 101.6 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)