Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.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.PlanetaryGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear") translateModel(PlanarMechanics.GearComponents.Examples.PlanetaryGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005531/0.005531, allocations: 172 kB / 15.11 MB, free: 5.98 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.331/1.331, allocations: 223.2 MB / 239 MB, free: 1.809 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008763/0.0008759, allocations: 102.8 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04007/0.04007, allocations: 8.943 MB / 350.3 MB, free: 2.086 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004651/0.0004651, allocations: 6.969 kB / 413.1 MB, free: 88.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1293/0.1298, allocations: 52.39 MB / 465.5 MB, free: 41.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4206/0.5505, allocations: 109.4 MB / 0.5615 GB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003839/0.5509, allocations: 105.9 kB / 0.5616 GB, free: 15.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7024/1.253, allocations: 153.2 MB / 0.7112 GB, free: 74.52 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.997e-06/1.253, allocations: 0 / 0.7112 GB, free: 74.52 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004632/1.254, allocations: 125.8 kB / 0.7113 GB, free: 74.52 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: 2454 * Number of variables: 2454 Notification: Performance of Generate backend data structure: time 0.04769/1.302, allocations: 7.753 MB / 0.7189 GB, free: 71.95 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.03e-05/1.302, allocations: 9.531 kB / 0.7189 GB, free: 71.95 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02089/1.323, allocations: 3.965 MB / 0.7227 GB, free: 71.51 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01811/1.341, allocations: 5.687 MB / 0.7283 GB, free: 70.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005932/1.341, allocations: 479.8 kB / 0.7288 GB, free: 70.78 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004533/1.346, allocations: 0.6136 MB / 0.7294 GB, free: 70.77 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04767/1.394, allocations: 17.72 MB / 0.7467 GB, free: 66.71 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004844/1.394, allocations: 92.42 kB / 0.7467 GB, free: 66.71 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003191/1.397, allocations: 308.5 kB / 0.747 GB, free: 66.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002971/1.4, allocations: 1.965 MB / 0.749 GB, free: 66.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03379/1.434, allocations: 15.54 MB / 0.7641 GB, free: 66.38 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09902/1.533, allocations: 80.56 MB / 0.8428 GB, free: 21.07 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02251/1.556, allocations: 7.4 MB / 0.85 GB, free: 14.63 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02767/1.583, allocations: 14.69 MB / 0.8644 GB, free: 2.094 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.472e-05/1.584, allocations: 76.81 kB / 0.8645 GB, free: 2.012 MB / 474.7 MB Notification: Performance of pre-optimization done (n=379): time 7.273e-06/1.584, allocations: 0 / 0.8645 GB, free: 2.012 MB / 474.7 MB Notification: Performance of matching and sorting (n=435): time 0.4297/2.013, allocations: 27.75 MB / 0.8916 GB, free: 80.79 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.043e-05/2.013, allocations: 199.8 kB / 0.8917 GB, free: 80.59 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009546/2.023, allocations: 5.863 MB / 0.8975 GB, free: 80.11 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008214/2.024, allocations: 85.59 kB / 0.8976 GB, free: 80.07 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003574/2.027, allocations: 4.806 MB / 0.9022 GB, free: 77.82 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002181/2.03, allocations: 1.592 MB / 0.9038 GB, free: 76.89 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007038/2.03, allocations: 214 kB / 0.904 GB, free: 76.89 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006206/2.031, allocations: 0.7633 MB / 0.9047 GB, free: 76.56 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005579/2.036, allocations: 3.567 MB / 0.9082 GB, free: 76.54 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009095/2.046, allocations: 9.557 MB / 0.9176 GB, free: 68.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/2.056, allocations: 5.892 MB / 0.9233 GB, free: 68.84 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002728/2.056, allocations: 64.81 kB / 0.9234 GB, free: 68.84 MB / 474.7 MB Notification: Performance of matching and sorting (n=1401) (initialization): time 0.02782/2.084, allocations: 13.33 MB / 0.9364 GB, free: 66.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001612/2.084, allocations: 94 kB / 0.9365 GB, free: 66.55 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000298/2.085, allocations: 215 kB / 0.9367 GB, free: 66.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001274/2.086, allocations: 0.6427 MB / 0.9373 GB, free: 66.46 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009464/2.095, allocations: 2.475 MB / 0.9397 GB, free: 66.16 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006316/2.102, allocations: 4.962 MB / 0.9446 GB, free: 63.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/2.113, allocations: 497.6 kB / 0.9451 GB, free: 63 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002701/2.116, allocations: 0.6329 MB / 0.9457 GB, free: 62.92 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 42 (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],fixed.color[3],fixed.color[2],fixed.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],planetary.body3D.sphereColor[3],planetary.body3D.sphereColor[2],planetary.body3D.sphereColor[1],planetary.carrierPart.color[3],planetary.carrierPart.color[2],planetary.carrierPart.color[1],planetary.carrierAngle.color[3],planetary.carrierAngle.color[2],planetary.carrierAngle.color[1],planetary.bearing_Carrier.cylinderColor[3],planetary.bearing_Carrier.cylinderColor[2],planetary.bearing_Carrier.cylinderColor[1],planetary.bearing_Planet.cylinderColor[3],planetary.bearing_Planet.cylinderColor[2],planetary.bearing_Planet.cylinderColor[1],planetary.bearing_Ring.cylinderColor[3],planetary.bearing_Ring.cylinderColor[2],planetary.bearing_Ring.cylinderColor[1],planetary.bearing_Sun.cylinderColor[3],planetary.bearing_Sun.cylinderColor[2],planetary.bearing_Sun.cylinderColor[1],planetary.planet.sphereColor[3],planetary.planet.sphereColor[2],planetary.planet.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1318): * Single equations (assignments): 1311 * Array equations: 6 * 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 {(6,44.4%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009127/2.125, allocations: 3.53 MB / 0.9491 GB, free: 61.13 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001832/2.127, allocations: 0.5794 MB / 0.9497 GB, free: 60.81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009531/2.137, allocations: 5.313 MB / 0.9549 GB, free: 58.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.62e-05/2.137, allocations: 69.34 kB / 0.9549 GB, free: 58.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.035e-05/2.137, allocations: 10.03 kB / 0.955 GB, free: 58.55 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.799e-05/2.137, allocations: 20.06 kB / 0.955 GB, free: 58.55 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03696/2.174, allocations: 21.66 MB / 0.9761 GB, free: 45.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.991e-05/2.174, allocations: 28 kB / 0.9762 GB, free: 45.84 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003108/2.177, allocations: 0.698 MB / 0.9768 GB, free: 45.25 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008857/2.178, allocations: 359.8 kB / 0.9772 GB, free: 44.95 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003617/2.178, allocations: 110.2 kB / 0.9773 GB, free: 44.85 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005224/2.183, allocations: 6.268 MB / 0.9834 GB, free: 38.54 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-05/2.184, allocations: 39.16 kB / 0.9834 GB, free: 38.51 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/2.197, allocations: 14.75 MB / 0.9978 GB, free: 23.35 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003083/2.2, allocations: 0.7326 MB / 0.9986 GB, free: 22.62 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002103/2.202, allocations: 109.9 kB / 0.9987 GB, free: 22.53 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004006/2.206, allocations: 168.1 kB / 0.9988 GB, free: 22.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007245/2.207, allocations: 341.8 kB / 0.9992 GB, free: 22.16 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002713/2.208, allocations: 135.2 kB / 0.9993 GB, free: 22.03 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.008406/2.216, allocations: 4.318 MB / 1.003 GB, free: 18.45 MB / 474.7 MB Notification: Performance of sort global known variables: time 5.71e-07/2.216, allocations: 0 / 1.003 GB, free: 18.45 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01282/2.229, allocations: 1.664 MB / 1.005 GB, free: 16.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 115 * Number of states: 6 (heatCapacitor.T,planetary.planetRing.frame_a.phi,planetary.bearing_Carrier.phi,planetary.bearing_Carrier.w,sunSpeed.phi,ringTorque.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 (380): * Single equations (assignments): 371 * Array equations: 6 * 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 {(5,52.0%) 22,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001032/2.23, allocations: 296.8 kB / 1.005 GB, free: 16.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01442/2.244, allocations: 8.725 MB / 1.014 GB, free: 8.777 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.66e-05/2.244, allocations: 5.812 kB / 1.014 GB, free: 8.773 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004789/2.249, allocations: 3.17 MB / 1.017 GB, free: 5.906 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005384/2.255, allocations: 0.763 MB / 1.018 GB, free: 5.262 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03659/2.291, allocations: 18.56 MB / 1.036 GB, free: 3.863 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2639/2.555, allocations: 5.207 MB / 1.041 GB, free: 82.16 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01179/2.567, allocations: 3.253 MB / 1.044 GB, free: 82.09 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001948/2.569, allocations: 478.6 kB / 1.045 GB, free: 82.09 MB / 490.7 MB Notification: Performance of SimCode: time 1.793e-06/2.569, allocations: 0 / 1.045 GB, free: 82.09 MB / 490.7 MB Notification: Performance of Templates: time 0.1194/2.688, allocations: 62.93 MB / 1.106 GB, free: 78.11 MB / 490.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.makefile (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)