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.001251/0.001251, allocations: 80.2 kB / 19.18 MB, free: 2.527 MB / 14.72 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.00146/0.00146, allocations: 173.1 kB / 22.46 MB, free: 5.355 MB / 14.72 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.459/1.459, allocations: 177.2 MB / 202.8 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04735/0.04735, allocations: 7.111 MB / 266.3 MB, free: 9.781 MB / 254.1 MB " [Timeout remaining time 180] Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.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.583e-06/1.583e-06, allocations: 0 / 392.9 MB, free: 9.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.64e-05/2.798e-05, allocations: 9.312 kB / 392.9 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01396/0.01399, allocations: 11.23 MB / 404.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007952/0.02194, allocations: 3.457 MB / 407.6 MB, free: 10.46 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001936/0.02387, allocations: 59.81 kB / 407.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001831/0.0257, allocations: 0.7884 MB / 408.4 MB, free: 9.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005166/0.03087, allocations: 2.138 MB / 410.6 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005039/0.03137, allocations: 155.7 kB / 410.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005821/0.0372, allocations: 4.143 MB / 414.9 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003105/0.0403, allocations: 2.074 MB / 416.9 MB, free: 1.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00395/0.04425, allocations: 2.124 MB / 419.1 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00361/0.04786, allocations: 2.053 MB / 421.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000922/0.04878, allocations: 316 kB / 421.4 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.05101, allocations: 0.9166 MB / 422.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002094/0.05311, allocations: 1.974 MB / 424.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002471/0.05558, allocations: 1.245 MB / 425.6 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009958/0.06554, allocations: 7.509 MB / 433.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.06554, allocations: 0 / 433.1 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.06554, allocations: 3.938 kB / 433.1 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000286/0.06583, allocations: 3.938 kB / 433.1 MB, free: 0.8594 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02641/0.09224, allocations: 7.158 MB / 440.2 MB, free: 9.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.09228, allocations: 8.625 kB / 440.2 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01282/0.1051, allocations: 3.359 MB / 443.6 MB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005081/0.1102, allocations: 2.028 MB / 445.6 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002569/0.1104, allocations: 234.1 kB / 445.9 MB, free: 3.969 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00106/0.1115, allocations: 319.8 kB / 446.2 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2089/0.3204, allocations: 13.43 MB / 459.6 MB, free: 54.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000126/0.3205, allocations: 58.58 kB / 459.7 MB, free: 54.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005253/0.321, allocations: 152.6 kB / 459.8 MB, free: 54.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004821/0.3258, allocations: 3.089 MB / 462.9 MB, free: 53.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02149/0.3473, allocations: 11.88 MB / 474.8 MB, free: 45.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05145/0.3988, allocations: 44.39 MB / 0.507 GB, free: 236 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01275/0.4115, allocations: 2.882 MB / 0.5098 GB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002788/0.4143, allocations: 1.276 MB / 0.5111 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01503/0.4293, allocations: 6.005 MB / 0.5169 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.11e-05/0.4294, allocations: 55.5 kB / 0.517 GB, free: 6.141 MB / 382.1 MB Notification: Performance of pre-optimization done (n=202): time 7.274e-06/0.4294, allocations: 0 / 0.517 GB, free: 6.141 MB / 382.1 MB Notification: Performance of matching and sorting (n=211): time 0.02566/0.4551, allocations: 10.46 MB / 0.5272 GB, free: 11.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.4552, allocations: 145.8 kB / 0.5273 GB, free: 11.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007719/0.4629, allocations: 4.582 MB / 0.5318 GB, free: 7.051 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004886/0.4634, allocations: 49.7 kB / 0.5318 GB, free: 6.996 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004861/0.4683, allocations: 4.088 MB / 0.5358 GB, free: 2.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001395/0.4697, allocations: 0.8607 MB / 0.5367 GB, free: 2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002825/0.4725, allocations: 1.596 MB / 0.5382 GB, free: 408 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002175/0.4727, allocations: 308.9 kB / 0.5385 GB, free: 100 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004274/0.477, allocations: 2.229 MB / 0.5407 GB, free: 13.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008802/0.4858, allocations: 7.311 MB / 0.5478 GB, free: 4.012 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01422/0.5, allocations: 10.39 MB / 0.558 GB, free: 7.113 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002141/0.5002, allocations: 56 kB / 0.558 GB, free: 7.059 MB / 430.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.0202/0.5204, allocations: 9.131 MB / 0.567 GB, free: 13.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001518/0.5206, allocations: 82.97 kB / 0.567 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002888/0.5209, allocations: 180.8 kB / 0.5672 GB, free: 13.67 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002702/0.5211, allocations: 240 kB / 0.5674 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006244/0.5274, allocations: 1.848 MB / 0.5692 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003523/0.5277, allocations: 354.8 kB / 0.5696 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005486/0.5332, allocations: 383.6 kB / 0.5699 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001215/0.5344, allocations: 0.4999 MB / 0.5704 GB, free: 10.36 MB / 446.1 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 (994): * Single equations (assignments): 987 * 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.004919/0.5393, allocations: 2.639 MB / 0.573 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007978/0.5401, allocations: 377.5 kB / 0.5734 GB, free: 7.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/0.5437, allocations: 1.889 MB / 0.5752 GB, free: 5.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001356/0.5439, allocations: 39.92 kB / 0.5753 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/0.5439, allocations: 0 / 0.5753 GB, free: 5.391 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/0.5439, allocations: 19.95 kB / 0.5753 GB, free: 5.371 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01376/0.5576, allocations: 6.386 MB / 0.5815 GB, free: 14.76 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.16e-05/0.5577, allocations: 12 kB / 0.5815 GB, free: 14.75 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001268/0.5589, allocations: 308.4 kB / 0.5818 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000156/0.5591, allocations: 36.84 kB / 0.5819 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000129/0.5592, allocations: 55.89 kB / 0.5819 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.5604, allocations: 1.26 MB / 0.5831 GB, free: 13 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.832e-05/0.5604, allocations: 27.81 kB / 0.5832 GB, free: 12.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006331/0.5668, allocations: 4.28 MB / 0.5873 GB, free: 8.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001566/0.5683, allocations: 0.5325 MB / 0.5879 GB, free: 7.965 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004858/0.5688, allocations: 55.91 kB / 0.5879 GB, free: 7.91 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.5701, allocations: 71.94 kB / 0.588 GB, free: 7.84 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.5704, allocations: 152.1 kB / 0.5881 GB, free: 7.691 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001465/0.5705, allocations: 75.98 kB / 0.5882 GB, free: 7.617 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004234/0.5748, allocations: 2.573 MB / 0.5907 GB, free: 5.031 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.5748, allocations: 0 / 0.5907 GB, free: 5.031 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005886/0.5807, allocations: 1.062 MB / 0.5918 GB, free: 3.969 MB / 462.1 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.0005668/0.5812, allocations: 198.6 kB / 0.5919 GB, free: 3.762 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009828/0.5911, allocations: 4.988 MB / 0.5968 GB, free: 14.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.535e-05/0.5911, allocations: 0 / 0.5968 GB, free: 14.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002106/0.5932, allocations: 1.153 MB / 0.5979 GB, free: 13.65 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002702/0.5959, allocations: 431.1 kB / 0.5984 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01957/0.6154, allocations: 10.35 MB / 0.6085 GB, free: 2.664 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1879/0.8034, allocations: 3.244 MB / 0.6116 GB, free: 148 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00623/0.8096, allocations: 2.358 MB / 0.6139 GB, free: 147.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001012/0.8106, allocations: 285.7 kB / 0.6142 GB, free: 147.9 MB / 478.1 MB Notification: Performance of SimCode: time 1.863e-06/0.8106, allocations: 0 / 0.6142 GB, free: 147.9 MB / 478.1 MB Notification: Performance of Templates: time 0.05919/0.8698, allocations: 24.16 MB / 0.6378 GB, free: 140.8 MB / 478.1 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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.460848778486252] Failed to read output from testmodel.py, exit status != 0: 0.8788212724030018 0.88792456 0.8200083029999999 Calling exit ...