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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 99.08 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009357/0.0009358, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2065/0.2065, allocations: 9.086 MB / 300.1 MB, free: 2.793 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003467/0.0003467, allocations: 8 kB / 363 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1103, allocations: 52.42 MB / 415.4 MB, free: 8.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2456/0.356, allocations: 26.86 MB / 442.3 MB, free: 28.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02026/0.3763, allocations: 7.029 MB / 449.3 MB, free: 24.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01059/0.3869, allocations: 113.5 kB / 449.4 MB, free: 24.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006034/0.393, allocations: 1.301 MB / 450.7 MB, free: 23.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01572/0.4088, allocations: 4.125 MB / 454.8 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.4105, allocations: 131.2 kB / 455 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005039/0.4156, allocations: 2.358 MB / 457.3 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002626/0.4182, allocations: 1.872 MB / 459.2 MB, free: 19.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00171/0.42, allocations: 1.097 MB / 460.3 MB, free: 19.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001725/0.4217, allocations: 1.53 MB / 461.8 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005241/0.4222, allocations: 184.7 kB / 462 MB, free: 18.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001469/0.4237, allocations: 0.6807 MB / 462.7 MB, free: 18.69 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001391/0.4251, allocations: 1.639 MB / 464.3 MB, free: 18.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008913/0.426, allocations: 0.9998 MB / 465.3 MB, free: 17.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006348/0.4324, allocations: 5.642 MB / 471 MB, free: 16.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.4324, allocations: 0 / 471 MB, free: 16.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4324, allocations: 0 / 471 MB, free: 16.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003403/0.4328, allocations: 0 / 471 MB, free: 16.11 MB / 350.1 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.02842/0.4612, allocations: 6.198 MB / 477.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.4613, allocations: 12.47 kB / 477.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01604/0.4773, allocations: 3.984 MB / 481.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006847/0.4842, allocations: 2.007 MB / 483.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003398/0.4846, allocations: 233.4 kB / 483.4 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002236/0.4868, allocations: 313.4 kB / 483.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02684/0.5136, allocations: 13.47 MB / 497.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/0.5139, allocations: 59.45 kB / 497.2 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001033/0.5149, allocations: 159.7 kB / 497.4 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005835/0.5208, allocations: 3.084 MB / 0.4887 GB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02875/0.5496, allocations: 11.96 MB / 0.5004 GB, free: 1.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07675/0.6263, allocations: 47.97 MB / 0.5473 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01223/0.6386, allocations: 3.779 MB / 0.551 GB, free: 12.57 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003031/0.6417, allocations: 2.747 MB / 0.5536 GB, free: 9.387 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.263e-05/0.6418, allocations: 67.8 kB / 0.5537 GB, free: 9.309 MB / 430.1 MB Notification: Performance of pre-optimization done (n=247): time 6.652e-06/0.6418, allocations: 0 / 0.5537 GB, free: 9.309 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.03961/0.6814, allocations: 12.88 MB / 0.5663 GB, free: 12.19 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6816, allocations: 150.5 kB / 0.5664 GB, free: 12.01 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009498/0.6911, allocations: 4.957 MB / 0.5713 GB, free: 7.047 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004837/0.6916, allocations: 61.7 kB / 0.5713 GB, free: 6.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002995/0.6946, allocations: 3.809 MB / 0.5751 GB, free: 3.117 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001383/0.696, allocations: 1.003 MB / 0.576 GB, free: 2.102 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004313/0.6964, allocations: 160 kB / 0.5762 GB, free: 1.945 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004932/0.6969, allocations: 0.6492 MB / 0.5768 GB, free: 1.289 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2438/0.9408, allocations: 2.285 MB / 0.579 GB, free: 122.2 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008361/0.9492, allocations: 7.33 MB / 0.5862 GB, free: 115.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007604/0.9568, allocations: 4.088 MB / 0.5902 GB, free: 115.2 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001975/0.9571, allocations: 52.33 kB / 0.5902 GB, free: 115.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=1065) (initialization): time 0.01802/0.9751, allocations: 9.305 MB / 0.5993 GB, free: 112.1 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001312/0.9753, allocations: 88.94 kB / 0.5994 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002626/0.9756, allocations: 183.8 kB / 0.5996 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/0.9758, allocations: 262.3 kB / 0.5998 GB, free: 112.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008969/0.9848, allocations: 1.881 MB / 0.6017 GB, free: 111.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004843/0.9854, allocations: 353.2 kB / 0.602 GB, free: 111.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01021/0.9956, allocations: 379.8 kB / 0.6024 GB, free: 111.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002247/0.9979, allocations: 0.4995 MB / 0.6029 GB, free: 111.6 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 819 * 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 (1015): * Single equations (assignments): 1008 * 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.008319/1.006, allocations: 2.66 MB / 0.6055 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001273/1.008, allocations: 429.2 kB / 0.6059 GB, free: 110.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006246/1.014, allocations: 2.566 MB / 0.6084 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001786/1.014, allocations: 39.8 kB / 0.6084 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.167e-05/1.014, allocations: 5.641 kB / 0.6084 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.18e-05/1.014, allocations: 10.55 kB / 0.6084 GB, free: 109.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03099/1.045, allocations: 10.73 MB / 0.6189 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.788e-05/1.045, allocations: 23.12 kB / 0.6189 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00244/1.048, allocations: 394.1 kB / 0.6193 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002372/1.048, allocations: 53.19 kB / 0.6194 GB, free: 105 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/1.048, allocations: 78.22 kB / 0.6194 GB, free: 104.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/1.049, allocations: 1.309 MB / 0.6207 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.357e-05/1.049, allocations: 40.12 kB / 0.6208 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01199/1.061, allocations: 8.519 MB / 0.6291 GB, free: 96.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003502/1.065, allocations: 0.7379 MB / 0.6298 GB, free: 96.26 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001454/1.066, allocations: 70.38 kB / 0.6299 GB, free: 96.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003054/1.069, allocations: 86.81 kB / 0.6299 GB, free: 96.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003744/1.07, allocations: 209.7 kB / 0.6301 GB, free: 96.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002205/1.07, allocations: 98.39 kB / 0.6302 GB, free: 96.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.008286/1.078, allocations: 3.103 MB / 0.6333 GB, free: 95.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.533e-06/1.078, allocations: 0 / 0.6333 GB, free: 95.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01247/1.091, allocations: 1.127 MB / 0.6344 GB, free: 94.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 98 * 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 (214): * Single equations (assignments): 206 * 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.001054/1.092, allocations: 219.5 kB / 0.6346 GB, free: 94.74 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01114/1.103, allocations: 5.397 MB / 0.6399 GB, free: 91.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/1.103, allocations: 4 kB / 0.6399 GB, free: 91.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002295/1.106, allocations: 1.474 MB / 0.6413 GB, free: 90.5 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004081/1.11, allocations: 0.5323 MB / 0.6418 GB, free: 90.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/1.133, allocations: 12.96 MB / 0.6545 GB, free: 77.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005283/1.138, allocations: 3.911 MB / 0.6583 GB, free: 74.77 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00622/1.144, allocations: 2.576 MB / 0.6608 GB, free: 73 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/1.146, allocations: 331.4 kB / 0.6611 GB, free: 72.68 MB / 446.1 MB Notification: Performance of SimCode: time 2.445e-06/1.146, allocations: 0 / 0.6611 GB, free: 72.68 MB / 446.1 MB Notification: Performance of Templates: time 0.06378/1.209, allocations: 35.76 MB / 0.6961 GB, free: 37.17 MB / 446.1 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)