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.001151/0.001151, allocations: 171.6 kB / 7.641 MB, free: 1.414 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.5 MB / 229.6 MB, free: 7.559 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.0009068/0.0009068, allocations: 92.3 kB / 280.5 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0368/0.0368, allocations: 8.823 MB / 340.1 MB, free: 6.398 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.028e-05/2.03e-05, allocations: 4.781 kB / 398.7 MB, free: 47.62 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1515, allocations: 52.39 MB / 451.1 MB, free: 4.543 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4398/0.5914, allocations: 93.39 MB / 0.5317 GB, free: 23.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004785/0.592, allocations: 93.72 kB / 0.5318 GB, free: 23.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2375/0.8295, allocations: 97.48 MB / 0.627 GB, free: 5.344 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.8296, allocations: 0 / 0.627 GB, free: 5.344 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002617/0.8298, allocations: 95.94 kB / 0.6271 GB, free: 5.25 MB / 394.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.02987/0.8597, allocations: 5.189 MB / 0.6321 GB, free: 4 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.965e-05/0.8598, allocations: 12.06 kB / 0.6322 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01726/0.8771, allocations: 3.608 MB / 0.6357 GB, free: 12.37 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007135/0.8843, allocations: 2.633 MB / 0.6383 GB, free: 9.703 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003099/0.8846, allocations: 160 kB / 0.6384 GB, free: 9.547 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002743/0.8874, allocations: 275.9 kB / 0.6387 GB, free: 9.277 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01673/0.9041, allocations: 8.451 MB / 0.6469 GB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0315/0.9357, allocations: 12.5 MB / 0.6591 GB, free: 3.148 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004953/0.9362, allocations: 75.33 kB / 0.6592 GB, free: 3.074 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003165/0.9394, allocations: 39.95 kB / 0.6592 GB, free: 3.035 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004181/0.9436, allocations: 1.519 MB / 0.6607 GB, free: 1.52 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4197/1.363, allocations: 54.61 MB / 0.7141 GB, free: 72.28 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0053/1.369, allocations: 3.951 MB / 0.7179 GB, free: 70.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00237/1.371, allocations: 1.224 MB / 0.7191 GB, free: 70.45 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01233/1.383, allocations: 6.492 MB / 0.7254 GB, free: 67.73 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/1.384, allocations: 50.34 kB / 0.7255 GB, free: 67.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=184): time 5.781e-06/1.384, allocations: 0 / 0.7255 GB, free: 67.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=193): time 0.01749/1.401, allocations: 8.102 MB / 0.7334 GB, free: 64.42 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.194e-05/1.401, allocations: 151.4 kB / 0.7335 GB, free: 64.26 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006891/1.408, allocations: 3.872 MB / 0.7373 GB, free: 63.85 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003483/1.408, allocations: 32.08 kB / 0.7374 GB, free: 63.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002224/1.411, allocations: 4.079 MB / 0.7413 GB, free: 61.45 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008291/1.412, allocations: 0.7589 MB / 0.7421 GB, free: 61.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002926/1.412, allocations: 3.781 kB / 0.7421 GB, free: 61.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003964/1.412, allocations: 0.656 MB / 0.7427 GB, free: 60.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002713/1.415, allocations: 2.089 MB / 0.7448 GB, free: 60.69 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005456/1.42, allocations: 7.363 MB / 0.752 GB, free: 53.79 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00572/1.426, allocations: 3.984 MB / 0.7559 GB, free: 53.75 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001282/1.426, allocations: 54.19 kB / 0.7559 GB, free: 53.75 MB / 458.7 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01502/1.441, allocations: 8.187 MB / 0.7639 GB, free: 52.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001144/1.442, allocations: 90.56 kB / 0.764 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002401/1.442, allocations: 192.6 kB / 0.7642 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002563/1.442, allocations: 277.5 kB / 0.7644 GB, free: 52.84 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005951/1.448, allocations: 1.926 MB / 0.7663 GB, free: 52.66 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002323/1.448, allocations: 372.8 kB / 0.7667 GB, free: 52.57 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006225/1.454, allocations: 229.6 kB / 0.7669 GB, free: 52.55 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001433/1.456, allocations: 0.5217 MB / 0.7674 GB, free: 52.55 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 869 * 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 (1036): * Single equations (assignments): 1029 * 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.001258/1.457, allocations: 0.5452 MB / 0.7679 GB, free: 52.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007928/1.458, allocations: 370.4 kB / 0.7683 GB, free: 51.94 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002685/1.461, allocations: 1.633 MB / 0.7699 GB, free: 51.82 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001278/1.461, allocations: 36.45 kB / 0.7699 GB, free: 51.82 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.748e-05/1.461, allocations: 7.719 kB / 0.7699 GB, free: 51.82 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.602e-05/1.461, allocations: 6.891 kB / 0.7699 GB, free: 51.82 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/1.474, allocations: 5.77 MB / 0.7756 GB, free: 49.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-05/1.474, allocations: 7.75 kB / 0.7756 GB, free: 49.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/1.475, allocations: 276.1 kB / 0.7758 GB, free: 49.57 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001453/1.475, allocations: 32.61 kB / 0.7759 GB, free: 49.55 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000101/1.475, allocations: 25.56 kB / 0.7759 GB, free: 49.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007508/1.476, allocations: 1.238 MB / 0.7771 GB, free: 48.31 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.307e-05/1.476, allocations: 23.36 kB / 0.7771 GB, free: 48.3 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004743/1.481, allocations: 4.879 MB / 0.7819 GB, free: 44.88 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001321/1.482, allocations: 448.9 kB / 0.7823 GB, free: 44.54 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001013/1.483, allocations: 13.31 kB / 0.7823 GB, free: 44.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00191/1.485, allocations: 49.03 kB / 0.7824 GB, free: 44.54 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/1.485, allocations: 114.2 kB / 0.7825 GB, free: 44.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000139/1.485, allocations: 71.84 kB / 0.7825 GB, free: 44.5 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004825/1.49, allocations: 2.526 MB / 0.785 GB, free: 43.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.49, allocations: 0 / 0.785 GB, free: 43.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008637/1.499, allocations: 0.9466 MB / 0.7859 GB, free: 43.35 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (144): * Single equations (assignments): 136 * 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.0007723/1.499, allocations: 170 kB / 0.7861 GB, free: 43.19 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008308/1.508, allocations: 4.719 MB / 0.7907 GB, free: 38.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.1e-05/1.508, allocations: 4.125 kB / 0.7907 GB, free: 38.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/1.51, allocations: 1.066 MB / 0.7918 GB, free: 37.92 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003002/1.513, allocations: 362.6 kB / 0.7921 GB, free: 37.61 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02143/1.534, allocations: 8.276 MB / 0.8002 GB, free: 30.04 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007029/1.541, allocations: 3.858 MB / 0.804 GB, free: 27.1 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007358/1.549, allocations: 2.466 MB / 0.8064 GB, free: 25.58 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001197/1.55, allocations: 292.8 kB / 0.8066 GB, free: 25.31 MB / 458.7 MB Notification: Performance of SimCode: time 1.383e-06/1.55, allocations: 0 / 0.8066 GB, free: 25.31 MB / 458.7 MB Notification: Performance of Templates: time 0.06056/1.61, allocations: 28.3 MB / 0.8343 GB, free: 6.758 MB / 458.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)