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.0006433/0.0006433, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008182/0.001461, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0006554/0.0006554, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008208/0.001476, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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 0.9279/0.9279, allocations: 177.1 MB / 189.6 MB, free: 5.328 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0844/1.012, allocations: 53.66 MB / 243.2 MB, free: 15.59 MB / 250.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.02861/0.02861, allocations: 7.183 MB / 251.1 MB, free: 7.879 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004531/0.03314, allocations: 2.553 MB / 253.7 MB, free: 5.32 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.643e-06/1.643e-06, allocations: 0 / 255 MB, free: 4.043 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.318e-05/1.482e-05, allocations: 6.25 kB / 255 MB, free: 4.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.009095/0.00911, allocations: 12.34 MB / 267.3 MB, free: 7.641 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005177/0.01429, allocations: 3.705 MB / 271 MB, free: 3.922 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006834/0.01497, allocations: 59.81 kB / 271.1 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009514/0.01592, allocations: 0.8274 MB / 271.9 MB, free: 3.031 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002426/0.01835, allocations: 2.161 MB / 274.1 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002162/0.01856, allocations: 143.6 kB / 274.2 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.138/0.1565, allocations: 4.177 MB / 278.4 MB, free: 2.176 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003037/0.1596, allocations: 1.996 MB / 280.4 MB, free: 1.926 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003571/0.1631, allocations: 2.241 MB / 282.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.1664, allocations: 1.961 MB / 284.6 MB, free: 1.523 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009852/0.1674, allocations: 320.4 kB / 284.9 MB, free: 1.523 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002021/0.1694, allocations: 0.9224 MB / 285.8 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001501/0.1709, allocations: 1.787 MB / 287.6 MB, free: 1.234 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001335/0.1722, allocations: 1.044 MB / 288.6 MB, free: 1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003934/0.1762, allocations: 4.652 MB / 293.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181e-05/0.1762, allocations: 0 / 293.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1762, allocations: 0 / 293.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001986/0.1764, allocations: 3.156 kB / 293.3 MB, free: 15.51 MB / 282.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.009675/0.1861, allocations: 6.795 MB / 300.1 MB, free: 10.32 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1861, allocations: 9.641 kB / 300.1 MB, free: 10.31 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004315/0.1904, allocations: 1.645 MB / 301.7 MB, free: 8.758 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001939/0.1924, allocations: 1.55 MB / 303.3 MB, free: 7.371 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001227/0.1925, allocations: 244.3 kB / 303.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003917/0.1929, allocations: 312.9 kB / 303.8 MB, free: 6.949 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006838/0.1997, allocations: 6.282 MB / 310.1 MB, free: 420 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.542e-05/0.1998, allocations: 54.09 kB / 310.2 MB, free: 392 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003189/0.2001, allocations: 159.3 kB / 310.3 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002619/0.2027, allocations: 2.765 MB / 313.1 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006032/0.2088, allocations: 3.403 MB / 316.5 MB, free: 10.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02733/0.2361, allocations: 37.5 MB / 354 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004536/0.2406, allocations: 1.717 MB / 355.7 MB, free: 3.09 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005812/0.2412, allocations: 449 kB / 356.2 MB, free: 2.656 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005548/0.2468, allocations: 4.416 MB / 360.6 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.506e-05/0.2468, allocations: 55.5 kB / 360.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=202): time 2.966e-06/0.2468, allocations: 4 kB / 360.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=211): time 0.006836/0.2536, allocations: 4.069 MB / 364.7 MB, free: 10.19 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.2537, allocations: 145.8 kB / 364.8 MB, free: 10.02 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/0.256, allocations: 3.356 MB / 368.2 MB, free: 7.312 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.827e-05/0.2561, allocations: 56.83 kB / 368.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001771/0.2579, allocations: 3.983 MB / 372.2 MB, free: 3.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/0.2583, allocations: 0.864 MB / 373.1 MB, free: 2.633 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001217/0.2595, allocations: 1.538 MB / 374.6 MB, free: 1.262 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.388e-05/0.2596, allocations: 309.1 kB / 374.9 MB, free: 0.957 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000895/0.2605, allocations: 0.8 MB / 375.7 MB, free: 156 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003121/0.2636, allocations: 5.72 MB / 381.5 MB, free: 7.941 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005065/0.2686, allocations: 7.525 MB / 389 MB, free: 13.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.371e-05/0.2687, allocations: 52 kB / 389 MB, free: 13.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=1054) (initialization): time 0.005586/0.2743, allocations: 5.33 MB / 394.4 MB, free: 8.465 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.293e-05/0.2744, allocations: 84 kB / 394.4 MB, free: 8.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001114/0.2745, allocations: 180 kB / 394.6 MB, free: 8.207 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001308/0.2746, allocations: 236 kB / 394.9 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/0.2779, allocations: 2.063 MB / 396.9 MB, free: 5.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001583/0.278, allocations: 358.7 kB / 397.3 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.2802, allocations: 347.7 kB / 397.6 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003601/0.2805, allocations: 440 kB / 398 MB, free: 4.789 MB / 378.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.001317/0.2818, allocations: 0.7566 MB / 398.8 MB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002916/0.2821, allocations: 243.7 kB / 399 MB, free: 3.777 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009975/0.2831, allocations: 0.8666 MB / 399.9 MB, free: 2.887 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.237e-05/0.2832, allocations: 35.92 kB / 399.9 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.2832, allocations: 0 / 399.9 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.2832, allocations: 11.97 kB / 399.9 MB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00506/0.2883, allocations: 3.936 MB / 403.9 MB, free: 14.65 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.2883, allocations: 15.94 kB / 403.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006197/0.2889, allocations: 319.5 kB / 404.2 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004513/0.2893, allocations: 445.3 kB / 404.6 MB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.997e-05/0.2894, allocations: 33.27 kB / 404.7 MB, free: 13.85 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.539e-05/0.2895, allocations: 51.97 kB / 404.7 MB, free: 13.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005544/0.29, allocations: 1.182 MB / 405.9 MB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-05/0.2901, allocations: 27.81 kB / 405.9 MB, free: 12.5 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001562/0.2916, allocations: 2.13 MB / 408.1 MB, free: 10.11 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/0.2918, allocations: 51.97 kB / 408.1 MB, free: 10.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005481/0.2924, allocations: 44.03 kB / 408.2 MB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.2925, allocations: 152.1 kB / 408.3 MB, free: 9.871 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.239e-05/0.2926, allocations: 63.98 kB / 408.4 MB, free: 9.809 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001019/0.2936, allocations: 1.297 MB / 409.7 MB, free: 8.496 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2936, allocations: 0 / 409.7 MB, free: 8.496 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003239/0.2968, allocations: 1.074 MB / 410.7 MB, free: 7.422 MB / 394.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.000268/0.2971, allocations: 183.8 kB / 410.9 MB, free: 7.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002869/0.3, allocations: 3 MB / 413.9 MB, free: 4.258 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002066/0.3002, allocations: 120.2 kB / 414 MB, free: 4.133 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005955/0.3008, allocations: 0.564 MB / 414.6 MB, free: 3.562 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001359/0.3021, allocations: 0.6961 MB / 415.3 MB, free: 2.871 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01335/0.3155, allocations: 9.088 MB / 424.4 MB, free: 9.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001591/0.3171, allocations: 1.422 MB / 425.8 MB, free: 8.074 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001472/0.3186, allocations: 0.592 MB / 426.4 MB, free: 7.477 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007712/0.3193, allocations: 0.6144 MB / 427 MB, free: 6.859 MB / 410.7 MB Notification: Performance of SimCode: time 1.783e-06/0.3193, allocations: 0 / 427 MB, free: 6.859 MB / 410.7 MB Notification: Performance of Templates: time 0.173/0.4923, allocations: 28.45 MB / 455.5 MB, free: 125.9 MB / 410.7 MB " [Timeout remaining time 659] 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: 3.724480450153351]