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.001442/0.001442, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001625/0.001625, allocations: 189.8 kB / 16.25 MB, free: 6.633 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.5/1.5, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1768/0.1768, allocations: 9.117 MB / 299.2 MB, free: 1.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 71.89 kB / 361.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09808/0.09941, allocations: 51.43 MB / 412.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2109/0.3104, allocations: 31.55 MB / 444.4 MB, free: 25.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01597/0.3264, allocations: 7.035 MB / 451.5 MB, free: 21.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008293/0.3347, allocations: 116.1 kB / 451.6 MB, free: 21.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002815/0.3376, allocations: 0.6644 MB / 452.3 MB, free: 21 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00619/0.3439, allocations: 1.893 MB / 454.1 MB, free: 20.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000804/0.3447, allocations: 132.9 kB / 454.3 MB, free: 20.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00555/0.3502, allocations: 4.145 MB / 458.4 MB, free: 18.32 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002945/0.3532, allocations: 2.066 MB / 460.5 MB, free: 17.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002167/0.3554, allocations: 1.407 MB / 461.9 MB, free: 16.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002606/0.358, allocations: 2.229 MB / 464.1 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000921/0.359, allocations: 318.9 kB / 464.4 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.3608, allocations: 0.8954 MB / 465.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00129/0.3621, allocations: 1.931 MB / 467.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001824/0.3639, allocations: 2.49 MB / 469.8 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00747/0.3714, allocations: 7.292 MB / 477 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3714, allocations: 0 / 477 MB, free: 10.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.3714, allocations: 0 / 477 MB, free: 10.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002993/0.3717, allocations: 1.156 kB / 477 MB, free: 10.45 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.03174/0.4035, allocations: 7.057 MB / 484.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.516e-05/0.4036, allocations: 13.38 kB / 484.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01412/0.4177, allocations: 3.263 MB / 487.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006733/0.4245, allocations: 2.066 MB / 489.4 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003316/0.4248, allocations: 233.6 kB / 489.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002194/0.427, allocations: 310.8 kB / 490 MB, free: 4.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02427/0.4513, allocations: 13.44 MB / 0.4916 GB, free: 9.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001269/0.4515, allocations: 63.47 kB / 0.4917 GB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005937/0.4521, allocations: 151.8 kB / 0.4918 GB, free: 9.109 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005183/0.4573, allocations: 3.084 MB / 0.4948 GB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02729/0.4846, allocations: 11.94 MB / 0.5065 GB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06601/0.5506, allocations: 47.96 MB / 0.5533 GB, free: 8.859 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01244/0.5632, allocations: 3.782 MB / 0.557 GB, free: 4.816 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002376/0.5656, allocations: 1.393 MB / 0.5584 GB, free: 3.414 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01363/0.5792, allocations: 9.206 MB / 0.5674 GB, free: 9.465 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.579e-05/0.5793, allocations: 51.56 kB / 0.5674 GB, free: 9.406 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 4.508e-06/0.5793, allocations: 0 / 0.5674 GB, free: 9.406 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.2204/0.7997, allocations: 10.24 MB / 0.5774 GB, free: 127.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.7998, allocations: 149.9 kB / 0.5776 GB, free: 127.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00657/0.8064, allocations: 5.143 MB / 0.5826 GB, free: 127 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002628/0.8067, allocations: 50.7 kB / 0.5826 GB, free: 127 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001668/0.8083, allocations: 3.937 MB / 0.5865 GB, free: 124.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006712/0.809, allocations: 0.8317 MB / 0.5873 GB, free: 123.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/0.8109, allocations: 1.599 MB / 0.5889 GB, free: 123 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.497e-05/0.8109, allocations: 306.1 kB / 0.5892 GB, free: 122.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003218/0.8142, allocations: 2.242 MB / 0.5913 GB, free: 122 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006131/0.8203, allocations: 7.326 MB / 0.5985 GB, free: 114.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009753/0.8301, allocations: 10.38 MB / 0.6086 GB, free: 105.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001575/0.8303, allocations: 51.59 kB / 0.6087 GB, free: 105.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01514/0.8454, allocations: 9.185 MB / 0.6177 GB, free: 101.6 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001611/0.8456, allocations: 84 kB / 0.6177 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003437/0.846, allocations: 183.5 kB / 0.6179 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000378/0.8463, allocations: 236.5 kB / 0.6181 GB, free: 101.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005973/0.8523, allocations: 1.851 MB / 0.6199 GB, free: 101.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004906/0.8528, allocations: 349.8 kB / 0.6203 GB, free: 101.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00578/0.8586, allocations: 368.9 kB / 0.6206 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00125/0.8599, allocations: 0.496 MB / 0.6211 GB, free: 101.1 MB / 446.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.00524/0.8651, allocations: 2.658 MB / 0.6237 GB, free: 99.75 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009395/0.8661, allocations: 430.4 kB / 0.6241 GB, free: 99.51 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00381/0.8699, allocations: 1.955 MB / 0.626 GB, free: 98.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001184/0.87, allocations: 36.11 kB / 0.6261 GB, free: 98.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.8701, allocations: 2.062 kB / 0.6261 GB, free: 98.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.8701, allocations: 8.188 kB / 0.6261 GB, free: 98.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01609/0.8862, allocations: 7.773 MB / 0.6337 GB, free: 95.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.177e-05/0.8863, allocations: 12.48 kB / 0.6337 GB, free: 95.66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001247/0.8875, allocations: 301.8 kB / 0.634 GB, free: 95.63 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.8877, allocations: 44.58 kB / 0.634 GB, free: 95.61 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001897/0.8879, allocations: 49.98 kB / 0.634 GB, free: 95.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008551/0.8888, allocations: 1.395 MB / 0.6354 GB, free: 94.19 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.475e-05/0.8888, allocations: 22.5 kB / 0.6354 GB, free: 94.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005598/0.8944, allocations: 4.377 MB / 0.6397 GB, free: 91.47 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001902/0.8964, allocations: 0.6775 MB / 0.6404 GB, free: 90.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001135/0.8975, allocations: 51.33 kB / 0.6404 GB, free: 90.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002303/0.8998, allocations: 67.59 kB / 0.6405 GB, free: 90.73 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003111/0.9002, allocations: 152.2 kB / 0.6406 GB, free: 90.62 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/0.9003, allocations: 77.58 kB / 0.6407 GB, free: 90.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00674/0.9071, allocations: 3.215 MB / 0.6438 GB, free: 87.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9071, allocations: 0 / 0.6438 GB, free: 87.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00832/0.9154, allocations: 1.103 MB / 0.6449 GB, free: 86.79 MB / 446.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.0006771/0.9161, allocations: 195.2 kB / 0.6451 GB, free: 86.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009731/0.9259, allocations: 6.081 MB / 0.651 GB, free: 81.15 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.187e-05/0.9259, allocations: 4.5 kB / 0.651 GB, free: 81.15 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001742/0.9276, allocations: 1.245 MB / 0.6523 GB, free: 80.04 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005751/0.9334, allocations: 0.5502 MB / 0.6528 GB, free: 79.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02183/0.9553, allocations: 12.94 MB / 0.6654 GB, free: 67.38 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00593/0.9612, allocations: 3.771 MB / 0.6691 GB, free: 64.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006392/0.9677, allocations: 2.449 MB / 0.6715 GB, free: 61.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001084/0.9688, allocations: 323.3 kB / 0.6718 GB, free: 61.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.252e-06/0.9688, allocations: 0 / 0.6718 GB, free: 61.61 MB / 446.1 MB Notification: Performance of Templates: time 0.0666/1.035, allocations: 36.96 MB / 0.7079 GB, free: 24.91 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)