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.0009702/0.0009703, allocations: 170.8 kB / 16.11 MB, free: 5.676 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.437/1.437, allocations: 223.3 MB / 240.1 MB, free: 9.969 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.001009/0.001009, allocations: 93.2 kB / 291.3 MB, free: 10.56 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04212/0.04212, allocations: 8.944 MB / 351.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 8 kB / 414.4 MB, free: 56.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09462/0.09501, allocations: 52.38 MB / 466.8 MB, free: 4.379 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3271/0.4222, allocations: 94.19 MB / 0.5478 GB, free: 7.41 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002985/0.4225, allocations: 109.6 kB / 0.5479 GB, free: 7.348 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2943/0.7168, allocations: 98.67 MB / 0.6443 GB, free: 5.938 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.7169, allocations: 0 / 0.6443 GB, free: 5.938 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003114/0.7172, allocations: 95.98 kB / 0.6444 GB, free: 5.844 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.0337/0.7509, allocations: 5.146 MB / 0.6494 GB, free: 0.625 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.498e-05/0.751, allocations: 12.03 kB / 0.6494 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2474/0.9984, allocations: 3.595 MB / 0.6529 GB, free: 105.7 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008485/1.007, allocations: 2.681 MB / 0.6556 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006643/1.008, allocations: 364.6 kB / 0.6559 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003362/1.011, allocations: 476.4 kB / 0.6564 GB, free: 105.4 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0343/1.045, allocations: 13.52 MB / 0.6696 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004398/1.046, allocations: 67.03 kB / 0.6696 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002573/1.048, allocations: 240.7 kB / 0.6699 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002278/1.051, allocations: 1.521 MB / 0.6713 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02628/1.077, allocations: 11.94 MB / 0.683 GB, free: 102 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06137/1.138, allocations: 55.7 MB / 0.7374 GB, free: 61.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01112/1.15, allocations: 3.837 MB / 0.7411 GB, free: 59.46 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002285/1.152, allocations: 1.371 MB / 0.7425 GB, free: 58.99 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01254/1.165, allocations: 9.045 MB / 0.7513 GB, free: 53.21 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/1.165, allocations: 54.88 kB / 0.7514 GB, free: 53.15 MB / 458.7 MB Notification: Performance of pre-optimization done (n=202): time 5.781e-06/1.165, allocations: 3.469 kB / 0.7514 GB, free: 53.15 MB / 458.7 MB Notification: Performance of matching and sorting (n=211): time 0.01822/1.183, allocations: 10.17 MB / 0.7613 GB, free: 46.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.445e-05/1.183, allocations: 149.8 kB / 0.7614 GB, free: 46.64 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006886/1.19, allocations: 5.126 MB / 0.7664 GB, free: 42.33 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004572/1.19, allocations: 49.7 kB / 0.7665 GB, free: 42.27 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00329/1.194, allocations: 3.929 MB / 0.7703 GB, free: 38.76 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.195, allocations: 0.8283 MB / 0.7711 GB, free: 38.04 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004971/1.196, allocations: 156 kB / 0.7713 GB, free: 37.89 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005061/1.196, allocations: 0.6462 MB / 0.7719 GB, free: 37.33 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003361/1.2, allocations: 2.208 MB / 0.7741 GB, free: 35.48 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005601/1.205, allocations: 7.284 MB / 0.7812 GB, free: 26.26 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/1.215, allocations: 10.33 MB / 0.7913 GB, free: 13.98 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001918/1.215, allocations: 52 kB / 0.7913 GB, free: 13.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01544/1.231, allocations: 9.101 MB / 0.8002 GB, free: 5.809 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.048e-05/1.231, allocations: 84 kB / 0.8003 GB, free: 5.727 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001672/1.231, allocations: 183.8 kB / 0.8005 GB, free: 5.551 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001914/1.231, allocations: 236 kB / 0.8007 GB, free: 5.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005351/1.237, allocations: 1.848 MB / 0.8025 GB, free: 3.691 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002958/1.237, allocations: 354.7 kB / 0.8028 GB, free: 3.383 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005517/1.242, allocations: 376.5 kB / 0.8032 GB, free: 3.035 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00116/1.244, allocations: 0.4986 MB / 0.8037 GB, free: 2.551 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 () * Number of clocked 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.005184/1.249, allocations: 2.658 MB / 0.8063 GB, free: 200 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.25, allocations: 413.7 kB / 0.8067 GB, free: 15.79 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004622/1.254, allocations: 1.931 MB / 0.8086 GB, free: 14.13 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001198/1.255, allocations: 35.75 kB / 0.8086 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/1.255, allocations: 4 kB / 0.8086 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.912e-05/1.255, allocations: 7.5 kB / 0.8086 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01895/1.274, allocations: 7.8 MB / 0.8162 GB, free: 6.207 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.96e-05/1.274, allocations: 12.22 kB / 0.8162 GB, free: 6.195 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/1.275, allocations: 310.9 kB / 0.8165 GB, free: 5.895 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002115/1.275, allocations: 36.86 kB / 0.8166 GB, free: 5.855 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001995/1.275, allocations: 51.97 kB / 0.8166 GB, free: 5.805 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009856/1.276, allocations: 1.29 MB / 0.8179 GB, free: 4.387 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.61e-05/1.276, allocations: 27.86 kB / 0.8179 GB, free: 4.359 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2804/1.557, allocations: 4.324 MB / 0.8221 GB, free: 106.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001751/1.559, allocations: 0.5049 MB / 0.8226 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008141/1.559, allocations: 47.02 kB / 0.8227 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/1.561, allocations: 74.56 kB / 0.8227 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003193/1.561, allocations: 149 kB / 0.8229 GB, free: 106.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001829/1.561, allocations: 80.97 kB / 0.8229 GB, free: 106.2 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007698/1.569, allocations: 3.192 MB / 0.8261 GB, free: 106 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.092e-06/1.569, allocations: 0 / 0.8261 GB, free: 106 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009254/1.578, allocations: 1.117 MB / 0.8272 GB, free: 106 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 () * Number of clocked 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.0006298/1.579, allocations: 208.7 kB / 0.8274 GB, free: 105.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01076/1.59, allocations: 5.102 MB / 0.8323 GB, free: 105.9 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.93e-05/1.59, allocations: 4.906 kB / 0.8323 GB, free: 105.9 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002347/1.592, allocations: 1.219 MB / 0.8335 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01248/1.605, allocations: 0.5435 MB / 0.8341 GB, free: 105.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02645/1.631, allocations: 12.43 MB / 0.8462 GB, free: 100.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005524/1.637, allocations: 3.771 MB / 0.8499 GB, free: 99.74 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.006407/1.643, allocations: 2.459 MB / 0.8523 GB, free: 99.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007315/1.644, allocations: 310.9 kB / 0.8526 GB, free: 99.68 MB / 474.7 MB Notification: Performance of SimCode: time 1.614e-06/1.644, allocations: 0 / 0.8526 GB, free: 99.68 MB / 474.7 MB Notification: Performance of Templates: time 0.06669/1.711, allocations: 35.06 MB / 0.8868 GB, free: 97.9 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)