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.001835/0.001835, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.002007/0.002007, allocations: 169.2 kB / 22.76 MB, free: 1.66 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.566/1.566, allocations: 177.1 MB / 203.1 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.05396/0.05396, allocations: 7.176 MB / 266.7 MB, free: 6.113 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.463e-06/1.463e-06, allocations: 0 / 338.1 MB, free: 10.56 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.629e-05/2.775e-05, allocations: 12.34 kB / 338.2 MB, free: 10.55 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01132/0.01135, allocations: 12.45 MB / 350.6 MB, free: 14.05 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.008805/0.02015, allocations: 3.547 MB / 354.1 MB, free: 10.49 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001961/0.02211, allocations: 63.81 kB / 354.2 MB, free: 10.43 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002015/0.02413, allocations: 0.7961 MB / 355 MB, free: 9.625 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005333/0.02946, allocations: 2.158 MB / 357.2 MB, free: 7.457 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005201/0.02998, allocations: 139.7 kB / 357.3 MB, free: 7.32 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006349/0.03633, allocations: 4.171 MB / 361.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003304/0.03963, allocations: 2.149 MB / 363.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004177/0.04381, allocations: 2.151 MB / 365.8 MB, free: 14.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003514/0.04733, allocations: 2.061 MB / 367.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007649/0.04809, allocations: 320 kB / 368.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001961/0.05005, allocations: 0.909 MB / 369.1 MB, free: 11.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002192/0.05224, allocations: 1.994 MB / 371 MB, free: 9.512 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002408/0.05465, allocations: 1.241 MB / 372.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.06614, allocations: 7.544 MB / 379.8 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/0.06615, allocations: 0 / 379.8 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.06615, allocations: 0 / 379.8 MB, free: 0.6914 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002608/0.06641, allocations: 0 / 379.8 MB, free: 0.6914 MB / 298.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.02854/0.09495, allocations: 8.26 MB / 388.1 MB, free: 8.359 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.095, allocations: 8.625 kB / 388.1 MB, free: 8.352 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01376/0.1088, allocations: 3.929 MB / 392 MB, free: 4.414 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006614/0.1154, allocations: 1.945 MB / 394 MB, free: 2.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/0.1157, allocations: 242.2 kB / 394.2 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/0.1167, allocations: 319.8 kB / 394.5 MB, free: 1.879 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02288/0.1396, allocations: 8.382 MB / 402.9 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001832/0.1398, allocations: 55.52 kB / 403 MB, free: 8.246 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007059/0.1405, allocations: 155.8 kB / 403.1 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005765/0.1462, allocations: 3.084 MB / 406.2 MB, free: 5.008 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1761/0.3223, allocations: 5.049 MB / 411.2 MB, free: 65.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06951/0.3918, allocations: 68.14 MB / 479.4 MB, free: 8.16 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01031/0.4021, allocations: 1.999 MB / 481.4 MB, free: 6.117 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001642/0.4038, allocations: 0.7376 MB / 482.1 MB, free: 5.367 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.4165, allocations: 5.703 MB / 487.8 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.092e-05/0.4165, allocations: 58.38 kB / 487.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=202): time 7.013e-06/0.4165, allocations: 3.328 kB / 487.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=211): time 0.02009/0.4366, allocations: 8.196 MB / 496.1 MB, free: 7.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001495/0.4368, allocations: 145.8 kB / 496.2 MB, free: 7.555 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0101/0.4469, allocations: 5.403 MB / 0.4899 GB, free: 2.121 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003861/0.4472, allocations: 53.64 kB / 0.4899 GB, free: 2.062 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004894/0.4521, allocations: 4.58 MB / 0.4944 GB, free: 13.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00171/0.4538, allocations: 0.9538 MB / 0.4953 GB, free: 12.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003468/0.4573, allocations: 2.084 MB / 0.4974 GB, free: 10.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002616/0.4576, allocations: 484.5 kB / 0.4978 GB, free: 9.996 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002533/0.4601, allocations: 0.9213 MB / 0.4987 GB, free: 9.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01103/0.4711, allocations: 8.747 MB / 0.5073 GB, free: 12.84 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01623/0.4874, allocations: 10.55 MB / 0.5176 GB, free: 14.86 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002759/0.4876, allocations: 52 kB / 0.5176 GB, free: 14.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=1052) (initialization): time 0.01855/0.5062, allocations: 6.993 MB / 0.5244 GB, free: 7.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001593/0.5064, allocations: 84 kB / 0.5245 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002645/0.5066, allocations: 180 kB / 0.5247 GB, free: 7.566 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000557/0.5072, allocations: 236 kB / 0.5249 GB, free: 7.336 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006593/0.5138, allocations: 1.853 MB / 0.5267 GB, free: 5.48 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003882/0.5142, allocations: 358.6 kB / 0.5271 GB, free: 5.129 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005475/0.5196, allocations: 372.5 kB / 0.5274 GB, free: 4.766 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001077/0.5207, allocations: 0.4996 MB / 0.5279 GB, free: 4.27 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1002): * Single equations (assignments): 995 * 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.002868/0.5236, allocations: 0.9712 MB / 0.5289 GB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009411/0.5245, allocations: 431.4 kB / 0.5293 GB, free: 2.859 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002977/0.5275, allocations: 1.212 MB / 0.5305 GB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001298/0.5276, allocations: 37.81 kB / 0.5305 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.578e-06/0.5276, allocations: 0 / 0.5305 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/0.5277, allocations: 11.91 kB / 0.5305 GB, free: 1.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0167/0.5444, allocations: 7.171 MB / 0.5375 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-05/0.5444, allocations: 16.06 kB / 0.5375 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.5457, allocations: 299.5 kB / 0.5378 GB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001994/0.5459, allocations: 43.67 kB / 0.5379 GB, free: 9.828 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001338/0.546, allocations: 55.89 kB / 0.5379 GB, free: 9.777 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001887/0.5479, allocations: 1.79 MB / 0.5397 GB, free: 7.859 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.061e-05/0.5479, allocations: 23.88 kB / 0.5397 GB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005204/0.5531, allocations: 2.929 MB / 0.5425 GB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001827/0.5549, allocations: 0.5246 MB / 0.5431 GB, free: 4.125 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/0.5554, allocations: 43.98 kB / 0.5431 GB, free: 4.082 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001209/0.5566, allocations: 71.89 kB / 0.5432 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003001/0.5569, allocations: 148.1 kB / 0.5433 GB, free: 3.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001556/0.5571, allocations: 83.8 kB / 0.5434 GB, free: 3.789 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004189/0.5612, allocations: 2.125 MB / 0.5455 GB, free: 1.652 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5612, allocations: 4 kB / 0.5455 GB, free: 1.648 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007644/0.5689, allocations: 1.074 MB / 0.5465 GB, free: 0.5742 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.0004952/0.5694, allocations: 190 kB / 0.5467 GB, free: 388 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.1517/0.721, allocations: 3.949 MB / 0.5505 GB, free: 129.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.582e-05/0.7211, allocations: 1.875 kB / 0.5505 GB, free: 129.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001784/0.7228, allocations: 0.8353 MB / 0.5514 GB, free: 129.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/0.7258, allocations: 458.5 kB / 0.5518 GB, free: 129.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/0.7408, allocations: 9.023 MB / 0.5606 GB, free: 125.5 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003146/0.7439, allocations: 2.926 MB / 0.5635 GB, free: 125.2 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004272/0.7482, allocations: 2.075 MB / 0.5655 GB, free: 125 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007025/0.7489, allocations: 285.9 kB / 0.5658 GB, free: 125 MB / 410.7 MB Notification: Performance of SimCode: time 1.473e-06/0.7489, allocations: 0 / 0.5658 GB, free: 125 MB / 410.7 MB Notification: Performance of Templates: time 0.05158/0.8005, allocations: 24.34 MB / 0.5895 GB, free: 104.2 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: 6.812357070040889]