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.001132/0.001137, allocations: 182.1 kB / 15.98 MB, free: 5.77 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.254/1.254, allocations: 222.9 MB / 239.7 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009706/0.0009706, allocations: 97.91 kB / 289.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04051/0.04051, allocations: 8.937 MB / 349 MB, free: 32 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009708/0.000971, allocations: 62.62 kB / 411.1 MB, free: 57.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08543/0.08641, allocations: 51.38 MB / 462.5 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2051/0.2915, allocations: 31.56 MB / 494.1 MB, free: 10.67 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01304/0.3046, allocations: 7.077 MB / 0.4894 GB, free: 8.004 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006275/0.311, allocations: 118.9 kB / 0.4895 GB, free: 7.988 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.3129, allocations: 0.6616 MB / 0.4902 GB, free: 7.766 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00594/0.3189, allocations: 1.925 MB / 0.492 GB, free: 7.094 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005676/0.3194, allocations: 123.6 kB / 0.4922 GB, free: 7.023 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007023/0.3265, allocations: 5.736 MB / 0.4978 GB, free: 4.953 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002598/0.3291, allocations: 1.815 MB / 0.4995 GB, free: 3.812 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002074/0.3312, allocations: 1.21 MB / 0.5007 GB, free: 3.215 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002546/0.3338, allocations: 2.096 MB / 0.5028 GB, free: 2.164 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005587/0.3343, allocations: 203.2 kB / 0.503 GB, free: 2.156 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.336, allocations: 0.8023 MB / 0.5037 GB, free: 1.789 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001215/0.3372, allocations: 1.81 MB / 0.5055 GB, free: 0.8086 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001833/0.339, allocations: 2.366 MB / 0.5078 GB, free: 14.85 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006064/0.3451, allocations: 7.074 MB / 0.5147 GB, free: 7.758 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3451, allocations: 0 / 0.5147 GB, free: 7.758 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3451, allocations: 0 / 0.5147 GB, free: 7.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001731/0.3453, allocations: 8 kB / 0.5147 GB, free: 7.75 MB / 330.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.0222/0.3675, allocations: 7.051 MB / 0.5216 GB, free: 0.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3676, allocations: 12.03 kB / 0.5216 GB, free: 0.6133 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/0.3788, allocations: 3.254 MB / 0.5248 GB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005436/0.3842, allocations: 2.059 MB / 0.5268 GB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001995/0.3845, allocations: 237.7 kB / 0.527 GB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008476/0.3853, allocations: 311.7 kB / 0.5273 GB, free: 10.7 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02196/0.4073, allocations: 13.44 MB / 0.5405 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002627/0.4076, allocations: 63.45 kB / 0.5405 GB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001504/0.4091, allocations: 155.8 kB / 0.5407 GB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005791/0.415, allocations: 3.084 MB / 0.5437 GB, free: 9.078 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02451/0.4395, allocations: 11.95 MB / 0.5554 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06769/0.5072, allocations: 47.96 MB / 0.6022 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01167/0.519, allocations: 3.779 MB / 0.6059 GB, free: 7.844 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002601/0.5216, allocations: 1.383 MB / 0.6072 GB, free: 6.453 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01529/0.5369, allocations: 9.213 MB / 0.6162 GB, free: 12.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.537, allocations: 51.5 kB / 0.6163 GB, free: 12.43 MB / 442.7 MB Notification: Performance of pre-optimization done (n=202): time 5.5e-06/0.537, allocations: 0 / 0.6163 GB, free: 12.43 MB / 442.7 MB Notification: Performance of matching and sorting (n=211): time 0.0211/0.5581, allocations: 10.25 MB / 0.6263 GB, free: 2.043 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.216e-05/0.5582, allocations: 149.8 kB / 0.6264 GB, free: 1.863 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008971/0.5672, allocations: 5.146 MB / 0.6315 GB, free: 12.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002596/0.5675, allocations: 49.7 kB / 0.6315 GB, free: 12.65 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002615/0.5701, allocations: 3.936 MB / 0.6353 GB, free: 8.664 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009957/0.5711, allocations: 0.8295 MB / 0.6362 GB, free: 7.824 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00315/0.5743, allocations: 1.602 MB / 0.6377 GB, free: 6.211 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.5744, allocations: 301.1 kB / 0.638 GB, free: 5.914 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003993/0.5784, allocations: 2.249 MB / 0.6402 GB, free: 3.66 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.195/0.7735, allocations: 7.311 MB / 0.6473 GB, free: 143.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.7844, allocations: 10.39 MB / 0.6575 GB, free: 134.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004058/0.7848, allocations: 51.75 kB / 0.6575 GB, free: 134.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01929/0.8041, allocations: 9.188 MB / 0.6665 GB, free: 131.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001888/0.8043, allocations: 82.47 kB / 0.6666 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003288/0.8047, allocations: 180.5 kB / 0.6668 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003717/0.805, allocations: 242.5 kB / 0.667 GB, free: 131.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005849/0.8109, allocations: 1.843 MB / 0.6688 GB, free: 130.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003468/0.8113, allocations: 358.1 kB / 0.6691 GB, free: 130.8 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005998/0.8173, allocations: 376.9 kB / 0.6695 GB, free: 130.6 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001111/0.8184, allocations: 0.4912 MB / 0.67 GB, free: 130.6 MB / 458.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004218/0.8226, allocations: 2.656 MB / 0.6726 GB, free: 129.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007127/0.8234, allocations: 415.8 kB / 0.673 GB, free: 129.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002943/0.8263, allocations: 1.965 MB / 0.6749 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001063/0.8264, allocations: 36.95 kB / 0.6749 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.445e-05/0.8265, allocations: 7.844 kB / 0.6749 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.451e-05/0.8265, allocations: 7.969 kB / 0.6749 GB, free: 128.6 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.8383, allocations: 7.764 MB / 0.6825 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.753e-05/0.8383, allocations: 15.42 kB / 0.6825 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001039/0.8394, allocations: 309 kB / 0.6828 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001453/0.8395, allocations: 35.05 kB / 0.6829 GB, free: 125.5 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/0.8396, allocations: 54.22 kB / 0.6829 GB, free: 125.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007024/0.8404, allocations: 1.293 MB / 0.6842 GB, free: 124.1 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.187e-05/0.8404, allocations: 22.05 kB / 0.6842 GB, free: 124.1 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01202/0.8524, allocations: 9.644 MB / 0.6936 GB, free: 115.8 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001357/0.8538, allocations: 0.6765 MB / 0.6943 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005603/0.8544, allocations: 51.77 kB / 0.6943 GB, free: 115.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001502/0.8559, allocations: 70.98 kB / 0.6944 GB, free: 115 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002392/0.8561, allocations: 150.2 kB / 0.6945 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001245/0.8563, allocations: 79.56 kB / 0.6946 GB, free: 114.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004541/0.8608, allocations: 3.213 MB / 0.6977 GB, free: 112.2 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.8608, allocations: 0 / 0.6977 GB, free: 112.2 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006904/0.8678, allocations: 1.375 MB / 0.6991 GB, free: 110.8 MB / 458.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 (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.0005189/0.8683, allocations: 199.7 kB / 0.6993 GB, free: 110.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008436/0.8767, allocations: 5.15 MB / 0.7043 GB, free: 105.8 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.649e-05/0.8768, allocations: 0 / 0.7043 GB, free: 105.8 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001826/0.8786, allocations: 1.239 MB / 0.7055 GB, free: 104.6 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004479/0.8831, allocations: 0.5312 MB / 0.706 GB, free: 104.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01862/0.9018, allocations: 14.19 MB / 0.7199 GB, free: 89.66 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004648/0.9065, allocations: 3.838 MB / 0.7236 GB, free: 85.79 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005612/0.9121, allocations: 2.457 MB / 0.726 GB, free: 83.32 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009287/0.9131, allocations: 319.4 kB / 0.7263 GB, free: 83.01 MB / 458.7 MB Notification: Performance of SimCode: time 9.41e-07/0.9131, allocations: 0 / 0.7263 GB, free: 83.01 MB / 458.7 MB Notification: Performance of Templates: time 0.05873/0.9718, allocations: 36.93 MB / 0.7624 GB, free: 46.3 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)