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.001246/0.001246, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001367/0.001367, allocations: 219.7 kB / 23.01 MB, free: 4.566 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.342/1.342, allocations: 230.6 MB / 256.8 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 179] 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.0468/0.0468, allocations: 9.239 MB / 322.4 MB, free: 10.14 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: PlanarMechanics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 63.91 kB / 449 MB, free: 14.6 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09322/0.09512, allocations: 55.48 MB / 0.4927 GB, free: 7.035 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01489/0.11, allocations: 12.97 MB / 0.5053 GB, free: 10 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007271/0.1173, allocations: 3.622 MB / 0.5089 GB, free: 6.367 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001707/0.119, allocations: 59.81 kB / 0.5089 GB, free: 6.309 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.1209, allocations: 0.7885 MB / 0.5097 GB, free: 5.516 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004976/0.1259, allocations: 2.089 MB / 0.5117 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006566/0.1266, allocations: 151.7 kB / 0.5119 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1934/0.3199, allocations: 4.049 MB / 0.5158 GB, free: 8.375 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002525/0.3224, allocations: 2.056 MB / 0.5178 GB, free: 8.277 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002146/0.3246, allocations: 1.43 MB / 0.5192 GB, free: 8.051 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003157/0.3277, allocations: 2.21 MB / 0.5214 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009779/0.3287, allocations: 320.2 kB / 0.5217 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002238/0.331, allocations: 0.9306 MB / 0.5226 GB, free: 7.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.3331, allocations: 1.917 MB / 0.5245 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002753/0.3358, allocations: 2.426 MB / 0.5268 GB, free: 6.535 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009043/0.3449, allocations: 7.623 MB / 0.5343 GB, free: 5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3449, allocations: 0.5312 kB / 0.5343 GB, free: 5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3449, allocations: 0 / 0.5343 GB, free: 5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002543/0.3451, allocations: 3.125 kB / 0.5343 GB, free: 5 MB / 382.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.0242/0.3693, allocations: 7.182 MB / 0.5413 GB, free: 1.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3694, allocations: 10.28 kB / 0.5413 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01065/0.38, allocations: 3.29 MB / 0.5445 GB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005462/0.3855, allocations: 2.014 MB / 0.5465 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.3857, allocations: 235.2 kB / 0.5467 GB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001183/0.3869, allocations: 311.6 kB / 0.547 GB, free: 14.21 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02325/0.4101, allocations: 13.45 MB / 0.5601 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001379/0.4103, allocations: 50.67 kB / 0.5602 GB, free: 4.523 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005513/0.4108, allocations: 161.1 kB / 0.5604 GB, free: 4.426 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005041/0.4159, allocations: 3.088 MB / 0.5634 GB, free: 1.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/0.4405, allocations: 11.94 MB / 0.575 GB, free: 5.664 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06694/0.5074, allocations: 47.75 MB / 0.6217 GB, free: 5.312 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.5184, allocations: 2.761 MB / 0.6243 GB, free: 2.535 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00245/0.5209, allocations: 1.293 MB / 0.6256 GB, free: 1.234 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01358/0.5345, allocations: 6.36 MB / 0.6318 GB, free: 10.91 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.363e-05/0.5345, allocations: 62.12 kB / 0.6319 GB, free: 10.85 MB / 478.1 MB Notification: Performance of pre-optimization done (n=202): time 5.49e-06/0.5345, allocations: 0 / 0.6319 GB, free: 10.85 MB / 478.1 MB Notification: Performance of matching and sorting (n=211): time 0.02132/0.5558, allocations: 10.34 MB / 0.642 GB, free: 468 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.556, allocations: 153.3 kB / 0.6421 GB, free: 288 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008575/0.5645, allocations: 5.151 MB / 0.6472 GB, free: 11.13 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002882/0.5648, allocations: 51.42 kB / 0.6472 GB, free: 11.07 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003433/0.5683, allocations: 4.103 MB / 0.6512 GB, free: 6.996 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001068/0.5693, allocations: 0.8671 MB / 0.6521 GB, free: 6.141 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002478/0.5718, allocations: 1.617 MB / 0.6536 GB, free: 4.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.5719, allocations: 305.1 kB / 0.6539 GB, free: 4.219 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003776/0.5757, allocations: 2.241 MB / 0.6561 GB, free: 1.973 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008381/0.5841, allocations: 7.323 MB / 0.6633 GB, free: 8.199 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01327/0.5973, allocations: 10.39 MB / 0.6734 GB, free: 11.32 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/0.5975, allocations: 52 kB / 0.6735 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01838/0.6159, allocations: 9.209 MB / 0.6825 GB, free: 2.07 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.616, allocations: 88.22 kB / 0.6825 GB, free: 1.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002236/0.6162, allocations: 180 kB / 0.6827 GB, free: 1.809 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.6165, allocations: 236 kB / 0.6829 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005809/0.6223, allocations: 1.84 MB / 0.6847 GB, free: 15.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003082/0.6226, allocations: 358.5 kB / 0.6851 GB, free: 15.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005261/0.6279, allocations: 371.7 kB / 0.6854 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001193/0.6291, allocations: 0.4989 MB / 0.6859 GB, free: 14.53 MB / 0.5294 GB 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.004797/0.6339, allocations: 2.656 MB / 0.6885 GB, free: 11.86 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007911/0.6347, allocations: 441 kB / 0.6889 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003566/0.6382, allocations: 1.962 MB / 0.6909 GB, free: 9.453 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001157/0.6383, allocations: 31.98 kB / 0.6909 GB, free: 9.422 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.414e-05/0.6383, allocations: 4 kB / 0.6909 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/0.6384, allocations: 9.375 kB / 0.6909 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01472/0.6531, allocations: 7.708 MB / 0.6984 GB, free: 1.512 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.123e-05/0.6531, allocations: 16.78 kB / 0.6984 GB, free: 1.496 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001143/0.6542, allocations: 303.5 kB / 0.6987 GB, free: 1.199 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/0.6544, allocations: 44.78 kB / 0.6988 GB, free: 1.152 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001175/0.6545, allocations: 47.98 kB / 0.6988 GB, free: 1.105 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.6557, allocations: 1.301 MB / 0.7001 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.747e-05/0.6557, allocations: 15.94 kB / 0.7001 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00618/0.6619, allocations: 4.407 MB / 0.7044 GB, free: 11.07 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00205/0.664, allocations: 0.6257 MB / 0.705 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007596/0.6647, allocations: 46.8 kB / 0.7051 GB, free: 10.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/0.6662, allocations: 72 kB / 0.7051 GB, free: 10.33 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002577/0.6664, allocations: 152.1 kB / 0.7053 GB, free: 10.18 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001558/0.6666, allocations: 82.23 kB / 0.7054 GB, free: 10.11 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.006079/0.6727, allocations: 3.202 MB / 0.7085 GB, free: 6.91 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6727, allocations: 0 / 0.7085 GB, free: 6.91 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006301/0.679, allocations: 1.085 MB / 0.7095 GB, free: 5.828 MB / 0.545 GB 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.0004458/0.6794, allocations: 181.2 kB / 0.7097 GB, free: 5.645 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008356/0.6878, allocations: 5.018 MB / 0.7146 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/0.6878, allocations: 0 / 0.7146 GB, free: 0.6719 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001737/0.6895, allocations: 1.125 MB / 0.7157 GB, free: 15.54 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003133/0.6926, allocations: 0.5738 MB / 0.7163 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01991/0.7125, allocations: 11.15 MB / 0.7272 GB, free: 3.609 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1904/0.903, allocations: 3.772 MB / 0.7309 GB, free: 188.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001209/0.9042, allocations: 384 kB / 0.7312 GB, free: 188.6 MB / 0.5606 GB Notification: Performance of SimCode: time 1.633e-06/0.9042, allocations: 3.219 kB / 0.7312 GB, free: 188.6 MB / 0.5606 GB Notification: Performance of Templates: time 0.08885/0.993, allocations: 81.53 MB / 0.8108 GB, free: 132.8 MB / 0.5606 GB " [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: 12.537680468056351] Failed to read output from testmodel.py, exit status != 0: 1.0010626600123942 1.010383719 0.6632755889999999 Calling exit ...