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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 73.97 kB / 20.66 MB, free: 3.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.022/1.022, allocations: 177.1 MB / 204.5 MB, free: 5.508 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo): time 0.02941/0.02941, allocations: 7.184 MB / 268.2 MB, free: 5.906 MB / 250.7 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.7.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.7.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 340.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.483e-05/1.661e-05, allocations: 5.125 kB / 340.1 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.009688/0.009705, allocations: 12.2 MB / 352.3 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.006203/0.01591, allocations: 3.524 MB / 355.8 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001402/0.01731, allocations: 63.75 kB / 355.9 MB, free: 11.11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00136/0.01867, allocations: 0.7961 MB / 356.7 MB, free: 10.31 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003111/0.02178, allocations: 2.173 MB / 358.9 MB, free: 8.125 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000321/0.0221, allocations: 143.7 kB / 359 MB, free: 7.984 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.003448/0.02555, allocations: 4.182 MB / 363.2 MB, free: 3.793 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.02767, allocations: 2.137 MB / 365.3 MB, free: 1.621 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002189/0.02986, allocations: 2.155 MB / 367.5 MB, free: 15.46 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002152/0.03201, allocations: 2.069 MB / 369.6 MB, free: 13.39 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004375/0.03245, allocations: 320 kB / 369.9 MB, free: 13.07 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.03362, allocations: 0.905 MB / 370.8 MB, free: 12.17 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.03473, allocations: 1.994 MB / 372.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.03582, allocations: 1.249 MB / 374 MB, free: 8.914 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003603/0.03942, allocations: 4.928 MB / 378.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.03942, allocations: 0 / 378.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.03942, allocations: 0 / 378.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.298e-05/0.03949, allocations: 0 / 378.9 MB, free: 3.965 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1956 * Number of variables: 1956 Notification: Performance of Generate backend data structure: time 0.01162/0.0511, allocations: 7.587 MB / 386.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.05114, allocations: 8.625 kB / 386.5 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004861/0.056, allocations: 2.1 MB / 388.6 MB, free: 10.19 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001872/0.05787, allocations: 1.853 MB / 390.5 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.05799, allocations: 238.2 kB / 390.7 MB, free: 8.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004163/0.05841, allocations: 315.8 kB / 391 MB, free: 7.762 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009132/0.06754, allocations: 7.006 MB / 398 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001017/0.06764, allocations: 59.44 kB / 398.1 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004215/0.06806, allocations: 159.8 kB / 398.3 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003315/0.07138, allocations: 2.737 MB / 401 MB, free: 12.6 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008/0.07938, allocations: 3.38 MB / 404.4 MB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1973/0.2766, allocations: 52.61 MB / 457 MB, free: 84.82 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006568/0.2832, allocations: 1.683 MB / 458.7 MB, free: 84.68 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/0.284, allocations: 0.5095 MB / 459.2 MB, free: 84.62 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006948/0.291, allocations: 5.13 MB / 464.3 MB, free: 83.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.291, allocations: 59.11 kB / 464.4 MB, free: 83.46 MB / 410.7 MB Notification: Performance of pre-optimization done (n=202): time 3.757e-06/0.291, allocations: 0 / 464.4 MB, free: 83.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=211): time 0.02772/0.3187, allocations: 4.458 MB / 468.8 MB, free: 82.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.3188, allocations: 149.7 kB / 469 MB, free: 82.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009832/0.3286, allocations: 4.155 MB / 473.1 MB, free: 81.72 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.147e-05/0.3287, allocations: 56.17 kB / 473.2 MB, free: 81.69 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007802/0.3365, allocations: 4.33 MB / 477.5 MB, free: 79 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005868/0.3371, allocations: 0.9053 MB / 478.4 MB, free: 78.52 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0017/0.3388, allocations: 1.79 MB / 480.2 MB, free: 78.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.628e-05/0.3388, allocations: 476.8 kB / 480.7 MB, free: 77.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007026/0.3458, allocations: 0.5986 MB / 481.3 MB, free: 77.82 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009272/0.3551, allocations: 8.188 MB / 489.5 MB, free: 67.81 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005691/0.3608, allocations: 9.828 MB / 499.3 MB, free: 57.12 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.477e-05/0.3609, allocations: 51.22 kB / 499.3 MB, free: 57.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=1054) (initialization): time 0.007159/0.368, allocations: 6.24 MB / 0.4937 GB, free: 54.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.111e-05/0.3681, allocations: 79.84 kB / 0.4938 GB, free: 54.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001821/0.3683, allocations: 180.5 kB / 0.494 GB, free: 54.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001276/0.3684, allocations: 239.6 kB / 0.4942 GB, free: 54.78 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002634/0.3711, allocations: 1.834 MB / 0.496 GB, free: 54.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001529/0.3712, allocations: 363.3 kB / 0.4963 GB, free: 54.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002585/0.3738, allocations: 338.1 kB / 0.4967 GB, free: 54.33 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003348/0.3741, allocations: 447 kB / 0.4971 GB, free: 54.27 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 24 (gearA_Bearing.cylinderColor[1],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[3],gearA.sphereColor[1],gearA.sphereColor[2],gearA.sphereColor[3],gearB.sphereColor[1],gearB.sphereColor[2],gearB.sphereColor[3],gearB_Bearing.cylinderColor[1],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[3],world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1004): * Single equations (assignments): 997 * 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.001198/0.3753, allocations: 0.8094 MB / 0.4979 GB, free: 53.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003514/0.3757, allocations: 435.3 kB / 0.4983 GB, free: 53.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001077/0.3768, allocations: 1.019 MB / 0.4993 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.942e-05/0.3768, allocations: 30 kB / 0.4993 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.3768, allocations: 0 / 0.4993 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.3768, allocations: 9.859 kB / 0.4993 GB, free: 52.99 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005052/0.3819, allocations: 4.312 MB / 0.5035 GB, free: 50.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.3819, allocations: 16.28 kB / 0.5036 GB, free: 50.68 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005347/0.3824, allocations: 275 kB / 0.5038 GB, free: 50.65 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000103/0.3825, allocations: 41.78 kB / 0.5039 GB, free: 50.64 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-05/0.3826, allocations: 56.5 kB / 0.5039 GB, free: 50.61 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005412/0.3831, allocations: 1.733 MB / 0.5056 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.598e-06/0.3831, allocations: 22.75 kB / 0.5056 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001793/0.3849, allocations: 2.516 MB / 0.5081 GB, free: 47.08 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004904/0.3854, allocations: 487.3 kB / 0.5085 GB, free: 46.72 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002373/0.3857, allocations: 47.14 kB / 0.5086 GB, free: 46.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006051/0.3863, allocations: 51.25 kB / 0.5086 GB, free: 46.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.3864, allocations: 145.8 kB / 0.5088 GB, free: 46.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.565e-05/0.3865, allocations: 74.27 kB / 0.5088 GB, free: 46.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00115/0.3876, allocations: 1.584 MB / 0.5104 GB, free: 45.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3876, allocations: 0 / 0.5104 GB, free: 45.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003018/0.3906, allocations: 1.066 MB / 0.5114 GB, free: 44.11 MB / 410.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.0002116/0.3908, allocations: 197.5 kB / 0.5116 GB, free: 43.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002762/0.3936, allocations: 3.205 MB / 0.5148 GB, free: 41.13 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3936, allocations: 8 kB / 0.5148 GB, free: 41.12 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005135/0.3941, allocations: 0.6794 MB / 0.5154 GB, free: 40.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.3954, allocations: 454.9 kB / 0.5159 GB, free: 40.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009332/0.4047, allocations: 8.823 MB / 0.5245 GB, free: 31.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001118/0.4059, allocations: 1.446 MB / 0.5259 GB, free: 30.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001413/0.4073, allocations: 0.5879 MB / 0.5265 GB, free: 30.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006615/0.4079, allocations: 0.6565 MB / 0.5271 GB, free: 29.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.332e-06/0.4079, allocations: 0 / 0.5271 GB, free: 29.56 MB / 410.7 MB Notification: Performance of Templates: time 0.0424/0.4503, allocations: 28.49 MB / 0.5549 GB, free: 4.449 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile [Timeout 660] (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=240 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.376360802911222]