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.0009752/0.0009752, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001052/0.001052, allocations: 177 kB / 23.36 MB, free: 1.129 MB / 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.04/1.04, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.02981/0.02981, allocations: 7.187 MB / 267.4 MB, free: 5.938 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.553e-06/1.553e-06, allocations: 0 / 286.1 MB, free: 3.277 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.696e-05/1.852e-05, allocations: 2.312 kB / 286.1 MB, free: 3.273 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.1357/0.1357, allocations: 12.26 MB / 298.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007336/0.143, allocations: 3.683 MB / 302 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.1447, allocations: 63.88 kB / 302.1 MB, free: 12.54 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001492/0.1462, allocations: 0.7959 MB / 302.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003952/0.1502, allocations: 2.16 MB / 305.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004758/0.1506, allocations: 144.3 kB / 305.2 MB, free: 10.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004189/0.1548, allocations: 4.18 MB / 309.4 MB, free: 8.418 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002324/0.1572, allocations: 2.21 MB / 311.6 MB, free: 6.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.1596, allocations: 2.159 MB / 313.8 MB, free: 4.316 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001744/0.1613, allocations: 1.967 MB / 315.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005146/0.1618, allocations: 324 kB / 316 MB, free: 2.027 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001132/0.1629, allocations: 0.9207 MB / 317 MB, free: 1.105 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009975/0.1639, allocations: 1.986 MB / 318.9 MB, free: 15.11 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.1651, allocations: 1.253 MB / 320.2 MB, free: 13.86 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004911/0.17, allocations: 4.921 MB / 325.1 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.17, allocations: 0 / 325.1 MB, free: 8.914 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.17, allocations: 0 / 325.1 MB, free: 8.914 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001363/0.1702, allocations: 4 kB / 325.1 MB, free: 8.91 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.009226/0.1794, allocations: 5.799 MB / 330.9 MB, free: 3.055 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.1794, allocations: 8.625 kB / 330.9 MB, free: 3.047 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00463/0.1841, allocations: 1.651 MB / 332.6 MB, free: 1.395 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.1861, allocations: 1.562 MB / 334.1 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001226/0.1863, allocations: 238.1 kB / 334.4 MB, free: 15.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003933/0.1866, allocations: 315.8 kB / 334.7 MB, free: 15.25 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007588/0.1942, allocations: 6.279 MB / 341 MB, free: 8.086 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.985e-05/0.1943, allocations: 51.56 kB / 341 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003178/0.1946, allocations: 163.7 kB / 341.2 MB, free: 7.875 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002547/0.1972, allocations: 2.749 MB / 343.9 MB, free: 5.125 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007206/0.2044, allocations: 3.386 MB / 347.3 MB, free: 1.734 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03371/0.2381, allocations: 37.55 MB / 384.9 MB, free: 10.92 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005213/0.2433, allocations: 1.751 MB / 386.6 MB, free: 9.137 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006497/0.244, allocations: 456.4 kB / 387.1 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006926/0.2509, allocations: 4.496 MB / 391.6 MB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.243e-05/0.2509, allocations: 43.56 kB / 391.6 MB, free: 4.105 MB / 346.7 MB Notification: Performance of pre-optimization done (n=202): time 5.26e-06/0.2509, allocations: 4 kB / 391.6 MB, free: 4.102 MB / 346.7 MB Notification: Performance of matching and sorting (n=211): time 0.008493/0.2594, allocations: 4.109 MB / 395.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.793e-05/0.2595, allocations: 153.7 kB / 395.9 MB, free: 15.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003026/0.2625, allocations: 3.352 MB / 399.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.786e-05/0.2626, allocations: 53.64 kB / 399.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.2645, allocations: 3.999 MB / 403.3 MB, free: 8.293 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005691/0.2651, allocations: 0.8489 MB / 404.1 MB, free: 7.438 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001297/0.2664, allocations: 1.537 MB / 405.6 MB, free: 5.891 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.814e-05/0.2664, allocations: 305.1 kB / 405.9 MB, free: 5.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001027/0.2675, allocations: 0.804 MB / 406.7 MB, free: 4.781 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003388/0.2709, allocations: 5.712 MB / 412.5 MB, free: 12.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006315/0.2772, allocations: 7.541 MB / 420 MB, free: 2.422 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.787e-05/0.2772, allocations: 48 kB / 420 MB, free: 2.375 MB / 378.7 MB Notification: Performance of matching and sorting (n=1054) (initialization): time 0.006675/0.2839, allocations: 5.334 MB / 425.4 MB, free: 13.01 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.614e-05/0.284, allocations: 92.02 kB / 425.5 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001328/0.2841, allocations: 180 kB / 425.6 MB, free: 12.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000151/0.2843, allocations: 236 kB / 425.9 MB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/0.2882, allocations: 1.919 MB / 427.8 MB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001785/0.2883, allocations: 354.6 kB / 428.1 MB, free: 10.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002852/0.2912, allocations: 339.8 kB / 428.5 MB, free: 9.91 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004233/0.2916, allocations: 444 kB / 428.9 MB, free: 9.477 MB / 394.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.001539/0.2931, allocations: 0.7643 MB / 429.7 MB, free: 8.695 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004447/0.2936, allocations: 243.7 kB / 429.9 MB, free: 8.457 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001159/0.2948, allocations: 0.8627 MB / 430.8 MB, free: 7.582 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.451e-05/0.2948, allocations: 31.98 kB / 430.8 MB, free: 7.551 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.2948, allocations: 0 / 430.8 MB, free: 7.551 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.11e-05/0.2948, allocations: 7.969 kB / 430.8 MB, free: 7.543 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005971/0.3008, allocations: 3.952 MB / 434.8 MB, free: 3.332 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.3008, allocations: 12 kB / 434.8 MB, free: 3.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006643/0.3015, allocations: 299.8 kB / 435.1 MB, free: 3.027 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001092/0.3016, allocations: 40.84 kB / 435.1 MB, free: 2.984 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.237e-05/0.3017, allocations: 43.98 kB / 435.2 MB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007091/0.3024, allocations: 1.186 MB / 436.3 MB, free: 1.664 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.3024, allocations: 27.81 kB / 436.4 MB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1288/0.4311, allocations: 2.128 MB / 438.5 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009281/0.4321, allocations: 450.9 kB / 438.9 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003987/0.4325, allocations: 52.11 kB / 439 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009559/0.4334, allocations: 42.39 kB / 439 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002397/0.4337, allocations: 148.2 kB / 439.2 MB, free: 118.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001175/0.4338, allocations: 68.94 kB / 439.2 MB, free: 118.4 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001938/0.4357, allocations: 1.3 MB / 440.5 MB, free: 118.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4357, allocations: 3.312 kB / 440.5 MB, free: 118.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00502/0.4407, allocations: 1.068 MB / 441.6 MB, free: 118.2 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.0003454/0.4411, allocations: 168.9 kB / 441.8 MB, free: 118.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004725/0.4458, allocations: 2.997 MB / 444.8 MB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002908/0.4461, allocations: 108.3 kB / 444.9 MB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008867/0.447, allocations: 0.5618 MB / 445.4 MB, free: 117.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/0.4492, allocations: 450.9 kB / 445.9 MB, free: 117.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.4627, allocations: 8.903 MB / 454.8 MB, free: 113.9 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/0.4646, allocations: 1.423 MB / 456.2 MB, free: 113.7 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002294/0.4669, allocations: 0.5934 MB / 456.8 MB, free: 113.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009284/0.4678, allocations: 0.6147 MB / 457.4 MB, free: 113.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4678, allocations: 0 / 457.4 MB, free: 113.4 MB / 394.7 MB Notification: Performance of Templates: time 0.06212/0.5299, allocations: 27.85 MB / 485.3 MB, free: 91.31 MB / 394.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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.804360782261938]