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.001843/0.001844, allocations: 175.3 kB / 15.78 MB, free: 6.352 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.247/2.247, allocations: 223.2 MB / 239.8 MB, free: 4 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 103.7 kB / 290.9 MB, free: 4.602 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.06446/0.06446, allocations: 8.946 MB / 351 MB, free: 4.176 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006002/0.0006004, allocations: 8 kB / 413.9 MB, free: 5.262 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4461/0.4467, allocations: 52.38 MB / 466.2 MB, free: 69.27 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.03949/0.4862, allocations: 28.55 MB / 494.8 MB, free: 40.64 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02417/0.5105, allocations: 6.749 MB / 0.4898 GB, free: 33.88 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008923/0.5195, allocations: 115.8 kB / 0.4899 GB, free: 33.77 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006975/0.5265, allocations: 1.38 MB / 0.4912 GB, free: 32.38 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01999/0.5466, allocations: 4.844 MB / 0.496 GB, free: 27.52 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002835/0.5495, allocations: 127.8 kB / 0.4961 GB, free: 27.39 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008235/0.5577, allocations: 4.506 MB / 0.5005 GB, free: 22.88 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005051/0.5629, allocations: 1.869 MB / 0.5023 GB, free: 20.95 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003795/0.5668, allocations: 1.296 MB / 0.5036 GB, free: 19.64 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004133/0.5709, allocations: 2.055 MB / 0.5056 GB, free: 17.58 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00145/0.5724, allocations: 188 kB / 0.5058 GB, free: 17.4 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003064/0.5755, allocations: 0.6788 MB / 0.5064 GB, free: 16.72 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003195/0.5787, allocations: 1.757 MB / 0.5081 GB, free: 14.96 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002144/0.5809, allocations: 1.002 MB / 0.5091 GB, free: 13.95 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008481/0.5894, allocations: 5.655 MB / 0.5146 GB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.5895, allocations: 0 / 0.5146 GB, free: 8.277 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.5895, allocations: 0 / 0.5146 GB, free: 8.277 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003289/0.5898, allocations: 0 / 0.5146 GB, free: 8.277 MB / 346.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.0309/0.6207, allocations: 6.068 MB / 0.5206 GB, free: 2.137 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/0.6208, allocations: 8.031 kB / 0.5206 GB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01854/0.6394, allocations: 3.343 MB / 0.5238 GB, free: 14.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009144/0.6486, allocations: 2.027 MB / 0.5258 GB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004899/0.6492, allocations: 233.7 kB / 0.526 GB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002359/0.6515, allocations: 315.6 kB / 0.5263 GB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03948/0.691, allocations: 13.42 MB / 0.5395 GB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003438/0.6914, allocations: 55.52 kB / 0.5395 GB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002004/0.6935, allocations: 159.8 kB / 0.5397 GB, free: 13.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006588/0.7001, allocations: 3.092 MB / 0.5427 GB, free: 10.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4751/1.175, allocations: 11.89 MB / 0.5543 GB, free: 78.46 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07935/1.255, allocations: 47.95 MB / 0.6011 GB, free: 42.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/1.271, allocations: 3.778 MB / 0.6048 GB, free: 38.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003986/1.275, allocations: 1.378 MB / 0.6061 GB, free: 37.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02465/1.299, allocations: 9.21 MB / 0.6151 GB, free: 27.55 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/1.3, allocations: 55.5 kB / 0.6152 GB, free: 27.48 MB / 378.7 MB Notification: Performance of pre-optimization done (n=202): time 9.898e-06/1.3, allocations: 4 kB / 0.6152 GB, free: 27.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=211): time 0.04006/1.34, allocations: 10.22 MB / 0.6252 GB, free: 17.13 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.013e-05/1.34, allocations: 153.8 kB / 0.6253 GB, free: 16.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01278/1.353, allocations: 5.115 MB / 0.6303 GB, free: 11.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004184/1.353, allocations: 52.67 kB / 0.6304 GB, free: 11.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002843/1.356, allocations: 3.938 MB / 0.6342 GB, free: 7.848 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001275/1.357, allocations: 0.8351 MB / 0.635 GB, free: 7.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007686/1.358, allocations: 152 kB / 0.6352 GB, free: 6.871 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004993/1.359, allocations: 0.641 MB / 0.6358 GB, free: 6.223 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00372/1.362, allocations: 2.217 MB / 0.638 GB, free: 4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007711/1.37, allocations: 7.288 MB / 0.6451 GB, free: 10.17 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00736/1.377, allocations: 3.989 MB / 0.649 GB, free: 6.184 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001634/1.378, allocations: 56 kB / 0.649 GB, free: 6.129 MB / 394.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.022/1.4, allocations: 9.125 MB / 0.6579 GB, free: 13.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001554/1.4, allocations: 80 kB / 0.658 GB, free: 12.93 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002769/1.4, allocations: 184 kB / 0.6582 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002762/1.4, allocations: 260 kB / 0.6584 GB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006868/1.407, allocations: 1.844 MB / 0.6602 GB, free: 10.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003535/1.408, allocations: 350.6 kB / 0.6606 GB, free: 10.31 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006347/1.414, allocations: 375.8 kB / 0.6609 GB, free: 9.941 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001495/1.416, allocations: 0.4998 MB / 0.6614 GB, free: 9.445 MB / 410.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.005693/1.421, allocations: 2.647 MB / 0.664 GB, free: 6.785 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000893/1.422, allocations: 422.5 kB / 0.6644 GB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003846/1.426, allocations: 1.962 MB / 0.6663 GB, free: 4.398 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001297/1.426, allocations: 39.81 kB / 0.6664 GB, free: 4.363 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.441e-05/1.426, allocations: 4 kB / 0.6664 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.937e-05/1.426, allocations: 7.969 kB / 0.6664 GB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.446, allocations: 7.75 MB / 0.6739 GB, free: 12.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-05/1.446, allocations: 15.95 kB / 0.674 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001355/1.448, allocations: 307.6 kB / 0.6743 GB, free: 12.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002025/1.448, allocations: 40.73 kB / 0.6743 GB, free: 12.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/1.448, allocations: 56.72 kB / 0.6743 GB, free: 11.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00117/1.449, allocations: 1.299 MB / 0.6756 GB, free: 10.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.56e-05/1.449, allocations: 19.94 kB / 0.6756 GB, free: 10.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008918/1.458, allocations: 4.368 MB / 0.6799 GB, free: 5.969 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003181/1.462, allocations: 0.6946 MB / 0.6806 GB, free: 5.25 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001374/1.463, allocations: 43.98 kB / 0.6806 GB, free: 5.207 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003494/1.466, allocations: 71.78 kB / 0.6807 GB, free: 5.141 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004759/1.467, allocations: 152.2 kB / 0.6808 GB, free: 4.992 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/1.467, allocations: 87.91 kB / 0.6809 GB, free: 4.906 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.01026/1.477, allocations: 3.179 MB / 0.684 GB, free: 1.734 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.21e-07/1.478, allocations: 0 / 0.684 GB, free: 1.734 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.01275/1.49, allocations: 1.1 MB / 0.6851 GB, free: 0.6406 MB / 426.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 (163): * Single equations (assignments): 155 * 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.0009337/1.491, allocations: 188 kB / 0.6853 GB, free: 460 kB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01482/1.506, allocations: 5.135 MB / 0.6903 GB, free: 11.37 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-05/1.506, allocations: 8.25 kB / 0.6903 GB, free: 11.36 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003122/1.509, allocations: 1.189 MB / 0.6915 GB, free: 10.16 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005769/1.515, allocations: 0.5362 MB / 0.692 GB, free: 9.633 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03258/1.548, allocations: 13.03 MB / 0.7047 GB, free: 12.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00722/1.555, allocations: 3.775 MB / 0.7084 GB, free: 8.578 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001755/1.557, allocations: 391.3 kB / 0.7088 GB, free: 8.195 MB / 458.7 MB Notification: Performance of SimCode: time 1.513e-06/1.557, allocations: 0 / 0.7088 GB, free: 8.195 MB / 458.7 MB Notification: Performance of Templates: time 0.5293/2.086, allocations: 79.76 MB / 0.7867 GB, free: 120.4 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)