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.001045/0.001045, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001438/0.002483, allocations: 440 kB / 10.41 MB, free: 284 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.001056/0.001056, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001445/0.002501, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9617/0.9617, allocations: 177.2 MB / 189.7 MB, free: 5.227 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09704/1.059, allocations: 53.67 MB / 243.4 MB, free: 15.48 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.05619/0.05619, allocations: 7.174 MB / 251.3 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.005303/0.06149, allocations: 2.565 MB / 253.9 MB, free: 5.191 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.493e-06/1.493e-06, allocations: 0 / 255.2 MB, free: 3.883 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.156e-05/2.305e-05, allocations: 2.312 kB / 255.2 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01243/0.01246, allocations: 12.35 MB / 267.5 MB, free: 7.477 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006767/0.01922, allocations: 3.698 MB / 271.2 MB, free: 3.766 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.02081, allocations: 59.81 kB / 271.3 MB, free: 3.707 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001311/0.02212, allocations: 0.8351 MB / 272.1 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003866/0.02598, allocations: 2.161 MB / 274.3 MB, free: 0.6953 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003853/0.02637, allocations: 135.7 kB / 274.4 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.135/0.1613, allocations: 4.153 MB / 278.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002639/0.164, allocations: 2.008 MB / 280.6 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003111/0.1671, allocations: 2.237 MB / 282.8 MB, free: 1.688 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002451/0.1695, allocations: 1.951 MB / 284.8 MB, free: 1.52 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005886/0.1701, allocations: 322.6 kB / 285.1 MB, free: 1.516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00152/0.1716, allocations: 0.9278 MB / 286 MB, free: 1.508 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.1727, allocations: 1.789 MB / 287.8 MB, free: 1.168 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.1737, allocations: 1.046 MB / 288.8 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003518/0.1772, allocations: 4.643 MB / 293.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.1772, allocations: 0 / 293.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1772, allocations: 0 / 293.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001301/0.1773, allocations: 0 / 293.5 MB, free: 15.45 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.008592/0.1859, allocations: 6.801 MB / 300.3 MB, free: 10.14 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.186, allocations: 14.53 kB / 300.3 MB, free: 10.13 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004193/0.1902, allocations: 1.644 MB / 302 MB, free: 8.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002053/0.1922, allocations: 1.557 MB / 303.5 MB, free: 7.191 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.1923, allocations: 238.3 kB / 303.7 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004083/0.1927, allocations: 313 kB / 304 MB, free: 6.773 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007354/0.2001, allocations: 6.277 MB / 310.3 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.487e-05/0.2002, allocations: 56.41 kB / 310.4 MB, free: 208 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003004/0.2005, allocations: 160.9 kB / 310.5 MB, free: 108 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002259/0.2027, allocations: 2.586 MB / 313.1 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006285/0.209, allocations: 3.399 MB / 316.5 MB, free: 10.44 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03003/0.239, allocations: 37.51 MB / 354 MB, free: 4.773 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004609/0.2436, allocations: 1.71 MB / 355.7 MB, free: 3.082 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005853/0.2442, allocations: 453.9 kB / 356.2 MB, free: 2.641 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00573/0.25, allocations: 4.408 MB / 360.6 MB, free: 14.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.25, allocations: 55.5 kB / 360.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=202): time 3.747e-06/0.25, allocations: 0 / 360.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=211): time 0.007716/0.2577, allocations: 4.358 MB / 365 MB, free: 9.902 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.2578, allocations: 149.8 kB / 365.1 MB, free: 9.727 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00256/0.2603, allocations: 3.349 MB / 368.5 MB, free: 7.031 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.433e-05/0.2604, allocations: 53.7 kB / 368.5 MB, free: 6.973 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001749/0.2622, allocations: 3.997 MB / 372.5 MB, free: 3.16 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004617/0.2626, allocations: 0.858 MB / 373.4 MB, free: 2.348 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001173/0.2638, allocations: 1.534 MB / 374.9 MB, free: 0.9766 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.2639, allocations: 305.1 kB / 375.2 MB, free: 0.6758 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009381/0.2648, allocations: 0.8 MB / 376 MB, free: 15.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003686/0.2685, allocations: 5.715 MB / 381.7 MB, free: 7.668 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0061/0.2746, allocations: 8.134 MB / 389.9 MB, free: 12.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001024/0.2747, allocations: 52 kB / 389.9 MB, free: 12.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=1054) (initialization): time 0.006291/0.281, allocations: 5.343 MB / 395.3 MB, free: 7.539 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.765e-05/0.281, allocations: 80 kB / 395.4 MB, free: 7.461 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001362/0.2812, allocations: 192 kB / 395.5 MB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001279/0.2813, allocations: 240 kB / 395.8 MB, free: 7.039 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/0.2845, allocations: 2.058 MB / 397.8 MB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001678/0.2847, allocations: 358.8 kB / 398.2 MB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.2873, allocations: 343.7 kB / 398.5 MB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000399/0.2877, allocations: 440 kB / 398.9 MB, free: 3.863 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.001396/0.2891, allocations: 0.7644 MB / 399.7 MB, free: 3.082 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003352/0.2895, allocations: 235.8 kB / 399.9 MB, free: 2.852 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.2908, allocations: 0.8744 MB / 400.8 MB, free: 1.953 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.753e-05/0.2909, allocations: 23.94 kB / 400.8 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2909, allocations: 0 / 400.8 MB, free: 1.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.2909, allocations: 7.969 kB / 400.9 MB, free: 1.922 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005656/0.2965, allocations: 3.944 MB / 404.8 MB, free: 13.72 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-05/0.2966, allocations: 28.06 kB / 404.8 MB, free: 13.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006502/0.2972, allocations: 315.5 kB / 405.1 MB, free: 13.39 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006097/0.2978, allocations: 449.2 kB / 405.6 MB, free: 12.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001038/0.2979, allocations: 49.28 kB / 405.6 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.775e-05/0.298, allocations: 47.97 kB / 405.7 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006104/0.2986, allocations: 1.174 MB / 406.8 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.064e-05/0.2986, allocations: 23.88 kB / 406.9 MB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002037/0.3007, allocations: 2.145 MB / 409 MB, free: 9.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/0.3009, allocations: 51.97 kB / 409.1 MB, free: 9.109 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005927/0.3015, allocations: 40.03 kB / 409.1 MB, free: 9.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001545/0.3017, allocations: 152.1 kB / 409.2 MB, free: 8.922 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.33e-05/0.3018, allocations: 67.98 kB / 409.3 MB, free: 8.855 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001109/0.3029, allocations: 1.297 MB / 410.6 MB, free: 7.543 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3029, allocations: 0 / 410.6 MB, free: 7.543 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003757/0.3066, allocations: 1.07 MB / 411.7 MB, free: 6.473 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.0003329/0.307, allocations: 179.8 kB / 411.9 MB, free: 6.285 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004203/0.3112, allocations: 3.14 MB / 415 MB, free: 3.195 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002451/0.3114, allocations: 125.3 kB / 415.1 MB, free: 3.066 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008787/0.3123, allocations: 0.6823 MB / 415.8 MB, free: 2.379 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/0.315, allocations: 2.877 MB / 418.7 MB, free: 15.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01483/0.3298, allocations: 9.101 MB / 427.8 MB, free: 5.777 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00177/0.3316, allocations: 1.422 MB / 429.2 MB, free: 4.328 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001658/0.3332, allocations: 0.5725 MB / 429.8 MB, free: 3.75 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007176/0.3339, allocations: 0.5871 MB / 430.4 MB, free: 3.16 MB / 410.7 MB Notification: Performance of SimCode: time 2.415e-06/0.334, allocations: 0 / 430.4 MB, free: 3.16 MB / 410.7 MB Notification: Performance of Templates: time 0.1527/0.4867, allocations: 26.33 MB / 456.7 MB, free: 124.5 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: 3.290616468526423]