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.001319/0.001319, allocations: 102.2 kB / 16.27 MB, free: 6 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.001275/0.001275, allocations: 191 kB / 17.2 MB, free: 5.609 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04609/0.04609, allocations: 9.116 MB / 300.2 MB, free: 5.922 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001239, allocations: 59.91 kB / 362.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1773/0.1785, allocations: 51.42 MB / 414 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.009348/0.1879, allocations: 12.94 MB / 427 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005412/0.1934, allocations: 3.569 MB / 430.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000892/0.1943, allocations: 51.94 kB / 430.6 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001185/0.1955, allocations: 0.7652 MB / 431.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002944/0.1985, allocations: 2.041 MB / 433.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003394/0.1988, allocations: 135.8 kB / 433.5 MB, free: 5.457 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002873/0.2017, allocations: 4.093 MB / 437.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.2035, allocations: 1.978 MB / 439.6 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001674/0.2052, allocations: 1.404 MB / 441 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002101/0.2073, allocations: 2.02 MB / 443 MB, free: 11.92 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005988/0.2079, allocations: 316 kB / 443.3 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001578/0.2095, allocations: 0.8816 MB / 444.2 MB, free: 10.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001428/0.211, allocations: 1.905 MB / 446.1 MB, free: 8.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001914/0.2129, allocations: 2.449 MB / 448.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00604/0.2189, allocations: 7.254 MB / 455.8 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.219, allocations: 3.984 kB / 455.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.219, allocations: 0 / 455.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001029/0.2191, allocations: 0 / 455.8 MB, free: 15.07 MB / 334.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.02215/0.2412, allocations: 7.059 MB / 462.9 MB, free: 7.938 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2413, allocations: 12.03 kB / 462.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01156/0.2529, allocations: 3.258 MB / 466.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003544/0.2564, allocations: 2.055 MB / 468.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001583/0.2566, allocations: 233.7 kB / 468.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006036/0.2572, allocations: 307.7 kB / 468.7 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01903/0.2763, allocations: 13.45 MB / 482.2 MB, free: 3.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001029/0.2764, allocations: 55.47 kB / 482.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004909/0.2769, allocations: 159.8 kB / 482.4 MB, free: 3.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004852/0.2818, allocations: 3.092 MB / 485.5 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02187/0.3036, allocations: 11.93 MB / 497.4 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2126/0.5163, allocations: 47.94 MB / 0.5326 GB, free: 50.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/0.5276, allocations: 3.789 MB / 0.5363 GB, free: 48.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002063/0.5297, allocations: 1.383 MB / 0.5376 GB, free: 47.95 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.5414, allocations: 9.217 MB / 0.5466 GB, free: 41.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.5414, allocations: 53.97 kB / 0.5467 GB, free: 41.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=202): time 4.729e-06/0.5414, allocations: 0 / 0.5467 GB, free: 41.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=211): time 0.01638/0.5578, allocations: 10.25 MB / 0.5567 GB, free: 34.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.179e-05/0.5579, allocations: 149.4 kB / 0.5568 GB, free: 34.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005345/0.5633, allocations: 5.145 MB / 0.5619 GB, free: 29.38 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.5635, allocations: 49.7 kB / 0.5619 GB, free: 29.33 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/0.5649, allocations: 3.933 MB / 0.5657 GB, free: 25.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000488/0.5654, allocations: 0.8285 MB / 0.5666 GB, free: 24.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00139/0.5668, allocations: 1.602 MB / 0.5681 GB, free: 22.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.91e-05/0.5669, allocations: 309.1 kB / 0.5684 GB, free: 22.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002735/0.5696, allocations: 2.241 MB / 0.5706 GB, free: 20.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004204/0.5738, allocations: 7.322 MB / 0.5778 GB, free: 10.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009005/0.5829, allocations: 10.38 MB / 0.5879 GB, free: 13.76 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001865/0.5831, allocations: 56 kB / 0.5879 GB, free: 13.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01568/0.5988, allocations: 9.189 MB / 0.5969 GB, free: 4.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.782e-05/0.5989, allocations: 87.94 kB / 0.597 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/0.5991, allocations: 180 kB / 0.5972 GB, free: 4.258 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002117/0.5993, allocations: 236.8 kB / 0.5974 GB, free: 4.027 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005515/0.6048, allocations: 1.848 MB / 0.5992 GB, free: 2.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002765/0.6051, allocations: 350.7 kB / 0.5995 GB, free: 1.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004871/0.61, allocations: 371.6 kB / 0.5999 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006902/0.6107, allocations: 0.4998 MB / 0.6004 GB, free: 0.9727 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003809/0.6145, allocations: 2.64 MB / 0.603 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006927/0.6152, allocations: 434.3 kB / 0.6034 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003406/0.6186, allocations: 1.966 MB / 0.6053 GB, free: 11.91 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001149/0.6188, allocations: 36.02 kB / 0.6053 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.6188, allocations: 0 / 0.6053 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.863e-05/0.6188, allocations: 11.97 kB / 0.6053 GB, free: 11.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.6312, allocations: 7.761 MB / 0.6129 GB, free: 3.906 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.093e-05/0.6313, allocations: 12 kB / 0.6129 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.6324, allocations: 295.5 kB / 0.6132 GB, free: 3.605 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001507/0.6326, allocations: 40.84 kB / 0.6133 GB, free: 3.562 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.6327, allocations: 54.95 kB / 0.6133 GB, free: 3.512 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001096/0.6338, allocations: 1.406 MB / 0.6147 GB, free: 1.961 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.511e-05/0.6339, allocations: 23.88 kB / 0.6147 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005625/0.6395, allocations: 4.385 MB / 0.619 GB, free: 13.37 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001619/0.6411, allocations: 0.6712 MB / 0.6196 GB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004875/0.6416, allocations: 43.98 kB / 0.6197 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001336/0.643, allocations: 71.94 kB / 0.6198 GB, free: 12.56 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002452/0.6432, allocations: 148.2 kB / 0.6199 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000134/0.6434, allocations: 83.89 kB / 0.62 GB, free: 12.34 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004879/0.6483, allocations: 3.211 MB / 0.6231 GB, free: 9.137 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6483, allocations: 0 / 0.6231 GB, free: 9.137 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005628/0.6539, allocations: 1.097 MB / 0.6242 GB, free: 8.043 MB / 430.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004024/0.6543, allocations: 202.9 kB / 0.6244 GB, free: 7.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.009633/0.664, allocations: 6.08 MB / 0.6303 GB, free: 1.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.664, allocations: 0 / 0.6303 GB, free: 1.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.6658, allocations: 1.2 MB / 0.6315 GB, free: 0.6094 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003222/0.669, allocations: 0.5697 MB / 0.632 GB, free: 64 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01735/0.6864, allocations: 11.12 MB / 0.6429 GB, free: 4.734 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003973/0.6904, allocations: 3.783 MB / 0.6466 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/0.6915, allocations: 387.3 kB / 0.647 GB, free: 0.543 MB / 446.1 MB Notification: Performance of SimCode: time 8.91e-07/0.6915, allocations: 3.938 kB / 0.647 GB, free: 0.5391 MB / 446.1 MB Notification: Performance of Templates: time 0.2707/0.9622, allocations: 80.5 MB / 0.7256 GB, free: 127.9 MB / 478.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)