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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.007527/0.007527, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001209/0.001209, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04448/0.04448, allocations: 9.132 MB / 299.7 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 63.91 kB / 414.7 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1049, allocations: 51.44 MB / 466.1 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01306/0.118, allocations: 12.92 MB / 479 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008921/0.127, allocations: 3.563 MB / 482.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002446/0.1295, allocations: 55.94 kB / 482.6 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.1318, allocations: 0.7574 MB / 483.4 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005919/0.1378, allocations: 2.038 MB / 485.4 MB, free: 14.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006631/0.1385, allocations: 147.7 kB / 485.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005444/0.1439, allocations: 4.109 MB / 489.7 MB, free: 9.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002763/0.1467, allocations: 1.978 MB / 491.7 MB, free: 7.969 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002101/0.1488, allocations: 1.404 MB / 493.1 MB, free: 6.559 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002647/0.1515, allocations: 2.016 MB / 495.1 MB, free: 4.535 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008788/0.1524, allocations: 320 kB / 495.4 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00203/0.1544, allocations: 0.8894 MB / 496.3 MB, free: 3.332 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00173/0.1562, allocations: 1.897 MB / 498.2 MB, free: 1.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002495/0.1587, allocations: 2.461 MB / 0.4889 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009213/0.1679, allocations: 7.686 MB / 0.4964 GB, free: 7.234 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.168, allocations: 0 / 0.4964 GB, free: 7.234 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.226e-06/0.168, allocations: 0 / 0.4964 GB, free: 7.234 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003546/0.1683, allocations: 0 / 0.4964 GB, free: 7.234 MB / 382.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.2782/0.4465, allocations: 7.198 MB / 0.5034 GB, free: 40.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.4466, allocations: 9.688 kB / 0.5035 GB, free: 40.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01321/0.4598, allocations: 3.291 MB / 0.5067 GB, free: 39.76 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004977/0.4648, allocations: 2.078 MB / 0.5087 GB, free: 39.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00029/0.4652, allocations: 238.5 kB / 0.5089 GB, free: 39.27 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001489/0.4667, allocations: 307.4 kB / 0.5092 GB, free: 39.22 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03044/0.4971, allocations: 13.45 MB / 0.5224 GB, free: 32.64 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001443/0.4973, allocations: 55.17 kB / 0.5224 GB, free: 32.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005543/0.4979, allocations: 153.2 kB / 0.5226 GB, free: 32.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004653/0.5025, allocations: 3.083 MB / 0.5256 GB, free: 31.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02135/0.5239, allocations: 11.95 MB / 0.5372 GB, free: 19.06 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06377/0.5877, allocations: 47.89 MB / 0.584 GB, free: 2.297 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/0.5996, allocations: 3.791 MB / 0.5877 GB, free: 14.26 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00265/0.6023, allocations: 1.373 MB / 0.589 GB, free: 12.88 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0152/0.6175, allocations: 9.22 MB / 0.598 GB, free: 2.949 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.24e-05/0.6176, allocations: 59.48 kB / 0.5981 GB, free: 2.883 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 6.603e-06/0.6176, allocations: 0 / 0.5981 GB, free: 2.883 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.02516/0.6428, allocations: 10.51 MB / 0.6084 GB, free: 8.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.6e-05/0.6429, allocations: 153.8 kB / 0.6085 GB, free: 8.086 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007393/0.6503, allocations: 5.159 MB / 0.6136 GB, free: 2.926 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002755/0.6506, allocations: 57.69 kB / 0.6136 GB, free: 2.863 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002861/0.6535, allocations: 4.099 MB / 0.6176 GB, free: 14.72 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001129/0.6546, allocations: 0.8685 MB / 0.6185 GB, free: 13.85 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002093/0.6567, allocations: 1.604 MB / 0.62 GB, free: 12.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.6568, allocations: 312.9 kB / 0.6203 GB, free: 11.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003386/0.6602, allocations: 2.245 MB / 0.6225 GB, free: 9.68 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006893/0.6671, allocations: 7.315 MB / 0.6297 GB, free: 15.83 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/0.6785, allocations: 10.4 MB / 0.6398 GB, free: 2.91 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001475/0.6787, allocations: 52 kB / 0.6399 GB, free: 2.859 MB / 478.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01581/0.6945, allocations: 9.212 MB / 0.6489 GB, free: 9.645 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000144/0.6947, allocations: 80 kB / 0.6489 GB, free: 9.566 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003276/0.695, allocations: 180 kB / 0.6491 GB, free: 9.391 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002546/0.6953, allocations: 236 kB / 0.6493 GB, free: 9.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005902/0.7012, allocations: 1.844 MB / 0.6511 GB, free: 7.312 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003898/0.7016, allocations: 350.7 kB / 0.6515 GB, free: 6.969 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006177/0.7078, allocations: 384 kB / 0.6518 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001236/0.709, allocations: 0.4921 MB / 0.6523 GB, free: 6.102 MB / 494.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.007961/0.717, allocations: 2.652 MB / 0.6549 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001484/0.7185, allocations: 445 kB / 0.6553 GB, free: 2.996 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00569/0.7242, allocations: 1.97 MB / 0.6573 GB, free: 1.012 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001623/0.7244, allocations: 31.98 kB / 0.6573 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.989e-05/0.7245, allocations: 3.938 kB / 0.6573 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.676e-05/0.7245, allocations: 11.97 kB / 0.6573 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02393/0.7484, allocations: 7.759 MB / 0.6649 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.978e-05/0.7485, allocations: 16 kB / 0.6649 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/0.7502, allocations: 299.6 kB / 0.6652 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002731/0.7505, allocations: 44.84 kB / 0.6652 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003348/0.7509, allocations: 51.97 kB / 0.6653 GB, free: 8.559 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001668/0.7526, allocations: 1.398 MB / 0.6666 GB, free: 7.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.606e-05/0.7526, allocations: 24 kB / 0.6667 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00827/0.7609, allocations: 4.4 MB / 0.671 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002097/0.763, allocations: 0.701 MB / 0.6716 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00102/0.7641, allocations: 47.98 kB / 0.6717 GB, free: 1.637 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002222/0.7663, allocations: 71.92 kB / 0.6718 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000295/0.7666, allocations: 148.1 kB / 0.6719 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001581/0.7668, allocations: 75.98 kB / 0.672 GB, free: 1.348 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.006991/0.7738, allocations: 3.215 MB / 0.6751 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of sort global known variables: time 4.51e-07/0.7738, allocations: 0 / 0.6751 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007224/0.781, allocations: 1.101 MB / 0.6762 GB, free: 13.04 MB / 0.5137 GB 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.0005697/0.7816, allocations: 194.6 kB / 0.6764 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008616/0.7902, allocations: 5.205 MB / 0.6815 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.189e-05/0.7903, allocations: 1.625 kB / 0.6815 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001878/0.7922, allocations: 1.235 MB / 0.6827 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004118/0.7963, allocations: 0.569 MB / 0.6832 GB, free: 5.863 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01871/0.815, allocations: 10.58 MB / 0.6935 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004349/0.8194, allocations: 3.767 MB / 0.6972 GB, free: 7.266 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.005841/0.8253, allocations: 2.449 MB / 0.6996 GB, free: 4.809 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008313/0.8261, allocations: 315.4 kB / 0.6999 GB, free: 4.5 MB / 0.5294 GB Notification: Performance of SimCode: time 1.132e-06/0.8262, allocations: 0 / 0.6999 GB, free: 4.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.3187/1.145, allocations: 32.67 MB / 0.7318 GB, free: 167.1 MB / 0.5294 GB 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)