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.0009105/0.0009106, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001128/0.001128, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1821/0.1821, allocations: 9.129 MB / 300.2 MB, free: 2.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003466/0.0003467, allocations: 16 kB / 363.1 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1274, allocations: 52.43 MB / 415.6 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2853/0.4128, allocations: 28.53 MB / 444.1 MB, free: 27.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.4295, allocations: 6.735 MB / 450.8 MB, free: 23.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006293/0.4359, allocations: 112.8 kB / 450.9 MB, free: 23.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004076/0.44, allocations: 1.386 MB / 452.3 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01352/0.4535, allocations: 4.843 MB / 457.2 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001542/0.4551, allocations: 137.2 kB / 457.3 MB, free: 20.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005693/0.4608, allocations: 4.505 MB / 461.8 MB, free: 18.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002339/0.4631, allocations: 1.875 MB / 463.7 MB, free: 17.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001933/0.4651, allocations: 1.296 MB / 465 MB, free: 17.54 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002283/0.4674, allocations: 2.049 MB / 467 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004946/0.4679, allocations: 185.9 kB / 467.2 MB, free: 16.9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001496/0.4694, allocations: 0.6844 MB / 467.9 MB, free: 16.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001458/0.4709, allocations: 1.757 MB / 469.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009401/0.4718, allocations: 0.9963 MB / 470.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007874/0.4797, allocations: 5.65 MB / 476.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/0.4797, allocations: 4 kB / 476.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4797, allocations: 1.406 kB / 476.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000301/0.48, allocations: 0 / 476.3 MB, free: 14.16 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.02332/0.5034, allocations: 6.064 MB / 482.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.5034, allocations: 13.28 kB / 482.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/0.5158, allocations: 3.348 MB / 485.7 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006201/0.522, allocations: 2.027 MB / 487.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003539/0.5224, allocations: 238.3 kB / 488 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001913/0.5243, allocations: 309.5 kB / 488.3 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03086/0.5552, allocations: 13.42 MB / 0.4899 GB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001946/0.5555, allocations: 51.53 kB / 0.49 GB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008423/0.5563, allocations: 159.8 kB / 0.4901 GB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00761/0.5639, allocations: 3.08 MB / 0.4932 GB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03782/0.6018, allocations: 11.89 MB / 0.5048 GB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09871/0.7005, allocations: 47.97 MB / 0.5516 GB, free: 12.42 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/0.7124, allocations: 3.768 MB / 0.5553 GB, free: 8.398 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002484/0.7149, allocations: 1.373 MB / 0.5566 GB, free: 7.016 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01612/0.731, allocations: 9.217 MB / 0.5656 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.764e-05/0.7311, allocations: 59.48 kB / 0.5657 GB, free: 12.99 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 6.382e-06/0.7311, allocations: 0 / 0.5657 GB, free: 12.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.02036/0.7515, allocations: 10.21 MB / 0.5757 GB, free: 2.637 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.7516, allocations: 149.8 kB / 0.5758 GB, free: 2.457 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2981/1.05, allocations: 5.117 MB / 0.5808 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004857/1.05, allocations: 52.17 kB / 0.5808 GB, free: 123.7 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002782/1.053, allocations: 3.924 MB / 0.5847 GB, free: 121.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001036/1.054, allocations: 0.8418 MB / 0.5855 GB, free: 121.4 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005227/1.055, allocations: 155.5 kB / 0.5857 GB, free: 121.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005022/1.055, allocations: 0.6458 MB / 0.5863 GB, free: 121.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003876/1.059, allocations: 2.21 MB / 0.5884 GB, free: 121 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005722/1.065, allocations: 7.294 MB / 0.5956 GB, free: 113.6 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005995/1.071, allocations: 3.994 MB / 0.5995 GB, free: 111.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001246/1.071, allocations: 50.66 kB / 0.5995 GB, free: 111.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01843/1.089, allocations: 9.128 MB / 0.6084 GB, free: 108.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001166/1.09, allocations: 81 kB / 0.6085 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000272/1.09, allocations: 181.3 kB / 0.6087 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000274/1.09, allocations: 263.1 kB / 0.6089 GB, free: 108.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005872/1.096, allocations: 1.843 MB / 0.6107 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002483/1.096, allocations: 353.2 kB / 0.6111 GB, free: 108.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006121/1.102, allocations: 373.3 kB / 0.6114 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001895/1.104, allocations: 0.5014 MB / 0.6119 GB, free: 107.9 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008805/1.113, allocations: 2.645 MB / 0.6145 GB, free: 106.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001248/1.114, allocations: 424.1 kB / 0.6149 GB, free: 106.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/1.119, allocations: 1.958 MB / 0.6168 GB, free: 105.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001088/1.119, allocations: 35.56 kB / 0.6168 GB, free: 105.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-05/1.119, allocations: 0.6562 kB / 0.6168 GB, free: 105.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/1.119, allocations: 12.39 kB / 0.6169 GB, free: 105.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01605/1.135, allocations: 7.759 MB / 0.6244 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.326e-05/1.135, allocations: 12.75 kB / 0.6244 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/1.136, allocations: 297.3 kB / 0.6247 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/1.136, allocations: 44.22 kB / 0.6248 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/1.136, allocations: 52.16 kB / 0.6248 GB, free: 102.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009145/1.137, allocations: 1.298 MB / 0.6261 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-05/1.137, allocations: 19.69 kB / 0.6261 GB, free: 101.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00588/1.143, allocations: 4.366 MB / 0.6304 GB, free: 98.81 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002324/1.146, allocations: 0.6942 MB / 0.631 GB, free: 98.37 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006524/1.146, allocations: 54.92 kB / 0.6311 GB, free: 98.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/1.148, allocations: 68.69 kB / 0.6312 GB, free: 98.33 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/1.148, allocations: 149.5 kB / 0.6313 GB, free: 98.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/1.148, allocations: 79.84 kB / 0.6314 GB, free: 98.27 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005777/1.154, allocations: 3.187 MB / 0.6345 GB, free: 97.17 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/1.154, allocations: 0 / 0.6345 GB, free: 97.17 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007869/1.162, allocations: 1.099 MB / 0.6356 GB, free: 97.04 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 (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.0004248/1.162, allocations: 196.9 kB / 0.6358 GB, free: 96.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00831/1.17, allocations: 5.122 MB / 0.6408 GB, free: 92.99 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.17, allocations: 4 kB / 0.6408 GB, free: 92.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001618/1.172, allocations: 1.231 MB / 0.642 GB, free: 91.88 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003554/1.176, allocations: 0.543 MB / 0.6425 GB, free: 91.42 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01948/1.195, allocations: 12.44 MB / 0.6546 GB, free: 79.75 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003242/1.198, allocations: 3.769 MB / 0.6583 GB, free: 76.79 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005192/1.204, allocations: 2.463 MB / 0.6607 GB, free: 75.25 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006007/1.204, allocations: 315.4 kB / 0.661 GB, free: 74.96 MB / 446.1 MB Notification: Performance of SimCode: time 6.31e-07/1.204, allocations: 0 / 0.661 GB, free: 74.96 MB / 446.1 MB Notification: Performance of Templates: time 0.06418/1.268, allocations: 34.76 MB / 0.695 GB, free: 40.68 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)