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.001013/0.001013, 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.001185/0.001185, allocations: 173 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 0.9761/0.9761, allocations: 177.1 MB / 203.8 MB, free: 5.469 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.02949/0.02949, allocations: 7.195 MB / 267.4 MB, free: 5.926 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.623e-06/1.623e-06, allocations: 0 / 286.1 MB, free: 3.316 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.306e-05/2.469e-05, allocations: 2.312 kB / 286.1 MB, free: 3.312 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.1184/0.1184, allocations: 12.21 MB / 298.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006173/0.1246, allocations: 3.68 MB / 302 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009818/0.1256, allocations: 66.38 kB / 302 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001302/0.1269, allocations: 0.8004 MB / 302.8 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002863/0.1297, allocations: 2.167 MB / 305 MB, free: 11.05 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003212/0.13, allocations: 148.3 kB / 305.1 MB, free: 10.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003073/0.1331, allocations: 4.187 MB / 309.3 MB, free: 8.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.1346, allocations: 2.217 MB / 311.5 MB, free: 6.559 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001634/0.1362, allocations: 2.147 MB / 313.7 MB, free: 4.406 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001419/0.1377, allocations: 1.975 MB / 315.7 MB, free: 2.426 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003834/0.1381, allocations: 320 kB / 316 MB, free: 2.113 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000962/0.139, allocations: 0.9049 MB / 316.9 MB, free: 1.207 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008949/0.1399, allocations: 1.986 MB / 318.9 MB, free: 15.21 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009895/0.1409, allocations: 1.253 MB / 320.1 MB, free: 13.95 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003404/0.1443, allocations: 4.921 MB / 325 MB, free: 9.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.1443, allocations: 0 / 325 MB, free: 9.012 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1443, allocations: 0 / 325 MB, free: 9.012 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.002e-05/0.1444, allocations: 0 / 325 MB, free: 9.012 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.007384/0.1518, allocations: 5.799 MB / 330.8 MB, free: 3.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.1518, allocations: 8.625 kB / 330.8 MB, free: 3.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004247/0.1561, allocations: 1.651 MB / 332.5 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.1579, allocations: 1.563 MB / 334.1 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000115/0.158, allocations: 234.2 kB / 334.3 MB, free: 15.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004154/0.1584, allocations: 315.8 kB / 334.6 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00923/0.1676, allocations: 6.28 MB / 340.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/0.1678, allocations: 55.52 kB / 340.9 MB, free: 8.137 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000699/0.1685, allocations: 159.8 kB / 341.1 MB, free: 7.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004118/0.1726, allocations: 2.749 MB / 343.8 MB, free: 5.23 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01075/0.1834, allocations: 3.391 MB / 347.2 MB, free: 1.836 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03551/0.2189, allocations: 37.55 MB / 384.8 MB, free: 11.02 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004782/0.2237, allocations: 1.763 MB / 386.5 MB, free: 9.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006024/0.2243, allocations: 447.2 kB / 387 MB, free: 8.785 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005899/0.2302, allocations: 4.484 MB / 391.5 MB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.876e-05/0.2302, allocations: 51.5 kB / 391.5 MB, free: 4.211 MB / 346.7 MB Notification: Performance of pre-optimization done (n=202): time 4.488e-06/0.2302, allocations: 4 kB / 391.5 MB, free: 4.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=211): time 0.007365/0.2376, allocations: 4.11 MB / 395.6 MB, free: 60 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.547e-05/0.2377, allocations: 153.8 kB / 395.8 MB, free: 15.88 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/0.2404, allocations: 3.352 MB / 399.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-05/0.2405, allocations: 49.7 kB / 399.2 MB, free: 12.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001774/0.2423, allocations: 4.003 MB / 403.2 MB, free: 8.398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004946/0.2428, allocations: 0.8489 MB / 404 MB, free: 7.543 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001174/0.244, allocations: 1.537 MB / 405.6 MB, free: 5.996 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.368e-05/0.244, allocations: 305.1 kB / 405.9 MB, free: 5.695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009968/0.245, allocations: 0.804 MB / 406.7 MB, free: 4.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003317/0.2483, allocations: 5.712 MB / 412.4 MB, free: 12.63 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00626/0.2546, allocations: 7.533 MB / 419.9 MB, free: 2.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001225/0.2547, allocations: 52 kB / 420 MB, free: 2.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=1054) (initialization): time 0.006391/0.2611, allocations: 5.343 MB / 425.3 MB, free: 13.11 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.136e-05/0.2612, allocations: 80 kB / 425.4 MB, free: 13.03 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001404/0.2613, allocations: 184 kB / 425.6 MB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001474/0.2615, allocations: 236 kB / 425.8 MB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003061/0.2645, allocations: 1.829 MB / 427.6 MB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002074/0.2647, allocations: 358.6 kB / 428 MB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002717/0.2675, allocations: 339.8 kB / 428.3 MB, free: 10.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000399/0.2679, allocations: 444 kB / 428.7 MB, free: 9.668 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.001445/0.2693, allocations: 0.7682 MB / 429.5 MB, free: 8.883 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003983/0.2697, allocations: 231.8 kB / 429.7 MB, free: 8.656 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001133/0.2708, allocations: 0.8744 MB / 430.6 MB, free: 7.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.621e-05/0.2709, allocations: 28 kB / 430.6 MB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.2709, allocations: 0 / 430.6 MB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.2709, allocations: 7.969 kB / 430.6 MB, free: 7.734 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005903/0.2768, allocations: 3.952 MB / 434.6 MB, free: 3.523 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.304e-05/0.2768, allocations: 12 kB / 434.6 MB, free: 3.512 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006161/0.2775, allocations: 283.5 kB / 434.9 MB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001102/0.2776, allocations: 32.86 kB / 434.9 MB, free: 3.199 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.708e-05/0.2776, allocations: 51.97 kB / 435 MB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009559/0.2786, allocations: 1.186 MB / 436.1 MB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/0.2786, allocations: 19.94 kB / 436.2 MB, free: 1.852 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1216/0.4002, allocations: 2.131 MB / 438.3 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/0.4013, allocations: 445.4 kB / 438.7 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003599/0.4016, allocations: 46.56 kB / 438.8 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006405/0.4023, allocations: 49.12 kB / 438.8 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001747/0.4025, allocations: 149 kB / 439 MB, free: 117.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.265e-05/0.4026, allocations: 70 kB / 439 MB, free: 117.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001747/0.4043, allocations: 1.297 MB / 440.3 MB, free: 117.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4043, allocations: 0 / 440.3 MB, free: 117.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003748/0.408, allocations: 1.076 MB / 441.4 MB, free: 117.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.0003267/0.4084, allocations: 175 kB / 441.6 MB, free: 117.1 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003834/0.4122, allocations: 2.994 MB / 444.6 MB, free: 116.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0002206/0.4124, allocations: 112.4 kB / 444.7 MB, free: 116.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006583/0.4131, allocations: 0.5564 MB / 445.2 MB, free: 116.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001488/0.4146, allocations: 454.4 kB / 445.7 MB, free: 116.6 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009812/0.4244, allocations: 8.893 MB / 454.6 MB, free: 112.8 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001178/0.4256, allocations: 1.43 MB / 456 MB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001422/0.427, allocations: 0.5932 MB / 456.6 MB, free: 112.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000684/0.4277, allocations: 0.6108 MB / 457.2 MB, free: 112.4 MB / 394.7 MB Notification: Performance of SimCode: time 1.392e-06/0.4277, allocations: 0 / 457.2 MB, free: 112.4 MB / 394.7 MB Notification: Performance of Templates: time 0.04182/0.4695, allocations: 27.79 MB / 485 MB, free: 90.29 MB / 394.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.723946592770517]