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.0007835/0.0007835, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0008053/0.0008053, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.8477/0.8477, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 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.02675/0.02675, allocations: 7.111 MB / 267.1 MB, free: 6.32 MB / 250.7 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.593e-06/1.593e-06, allocations: 0 / 393.7 MB, free: 3.488 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.208e-05/2.367e-05, allocations: 2.281 kB / 393.7 MB, free: 3.484 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.008192/0.008216, allocations: 11.24 MB / 404.9 MB, free: 8.199 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004424/0.01264, allocations: 3.446 MB / 408.3 MB, free: 4.738 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006136/0.01325, allocations: 67.81 kB / 408.4 MB, free: 4.672 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001043/0.0143, allocations: 0.7806 MB / 409.2 MB, free: 3.887 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002146/0.01644, allocations: 2.142 MB / 411.3 MB, free: 1.734 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000227/0.01667, allocations: 143.7 kB / 411.5 MB, free: 1.594 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.1344/0.1511, allocations: 4.143 MB / 415.6 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.153, allocations: 2.075 MB / 417.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002145/0.1551, allocations: 2.129 MB / 419.8 MB, free: 15.46 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001981/0.1571, allocations: 2.052 MB / 421.9 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004583/0.1575, allocations: 320.2 kB / 422.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001236/0.1588, allocations: 0.9115 MB / 423.1 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.1599, allocations: 1.97 MB / 425.1 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0011/0.161, allocations: 1.244 MB / 426.3 MB, free: 14.13 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004655/0.1656, allocations: 7.513 MB / 433.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1656, allocations: 2.156 kB / 433.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1656, allocations: 1.938 kB / 433.8 MB, free: 10.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.32e-05/0.1657, allocations: 0 / 433.8 MB, free: 10.82 MB / 330.7 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.01155/0.1773, allocations: 7.162 MB / 441 MB, free: 6.328 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.1773, allocations: 7.531 kB / 441 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005353/0.1826, allocations: 3.325 MB / 444.3 MB, free: 4.371 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.185, allocations: 2.034 MB / 446.4 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001012/0.1851, allocations: 234.1 kB / 446.6 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003871/0.1854, allocations: 313.4 kB / 446.9 MB, free: 2.086 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01294/0.1984, allocations: 13.47 MB / 460.4 MB, free: 4.02 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.605e-05/0.1985, allocations: 57.25 kB / 460.4 MB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003484/0.1988, allocations: 154.8 kB / 460.6 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002767/0.2016, allocations: 3.088 MB / 463.7 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.2166, allocations: 11.95 MB / 475.6 MB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03794/0.2546, allocations: 44.43 MB / 0.5078 GB, free: 8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006104/0.2607, allocations: 2.896 MB / 0.5107 GB, free: 5.07 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/0.2623, allocations: 1.28 MB / 0.5119 GB, free: 3.785 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007111/0.2694, allocations: 6.014 MB / 0.5178 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.894e-05/0.2694, allocations: 51.56 kB / 0.5178 GB, free: 13.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=202): time 3.937e-06/0.2694, allocations: 0 / 0.5178 GB, free: 13.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=211): time 0.01257/0.282, allocations: 10.5 MB / 0.5281 GB, free: 3.176 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.034e-05/0.282, allocations: 145.8 kB / 0.5282 GB, free: 3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004264/0.2863, allocations: 4.586 MB / 0.5327 GB, free: 14.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.856e-05/0.2864, allocations: 49.7 kB / 0.5328 GB, free: 14.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001904/0.2883, allocations: 4.093 MB / 0.5368 GB, free: 10.26 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004706/0.2887, allocations: 0.8556 MB / 0.5376 GB, free: 9.414 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00132/0.2901, allocations: 1.599 MB / 0.5392 GB, free: 7.809 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.893e-05/0.2901, allocations: 309.1 kB / 0.5394 GB, free: 7.504 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.2924, allocations: 2.241 MB / 0.5416 GB, free: 5.258 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004346/0.2968, allocations: 7.322 MB / 0.5488 GB, free: 11.41 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007481/0.3043, allocations: 10.4 MB / 0.5589 GB, free: 14.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.966e-05/0.3043, allocations: 56 kB / 0.559 GB, free: 14.45 MB / 474.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.008565/0.3129, allocations: 9.14 MB / 0.5679 GB, free: 5.316 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.27e-05/0.3129, allocations: 84 kB / 0.568 GB, free: 5.234 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.47e-05/0.313, allocations: 180.8 kB / 0.5682 GB, free: 5.059 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.3132, allocations: 236 kB / 0.5684 GB, free: 4.828 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002668/0.3158, allocations: 1.848 MB / 0.5702 GB, free: 2.977 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001561/0.316, allocations: 354.6 kB / 0.5705 GB, free: 2.629 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/0.3187, allocations: 378.8 kB / 0.5709 GB, free: 2.262 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003701/0.3191, allocations: 500 kB / 0.5714 GB, free: 1.773 MB / 474.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 (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.002882/0.322, allocations: 2.659 MB / 0.574 GB, free: 15.11 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003028/0.3223, allocations: 377.5 kB / 0.5743 GB, free: 14.73 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/0.3242, allocations: 1.897 MB / 0.5762 GB, free: 12.82 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.725e-05/0.3243, allocations: 35.98 kB / 0.5762 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/0.3243, allocations: 0 / 0.5762 GB, free: 12.79 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3243, allocations: 15.97 kB / 0.5762 GB, free: 12.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007024/0.3313, allocations: 6.397 MB / 0.5825 GB, free: 6.195 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/0.3313, allocations: 16 kB / 0.5825 GB, free: 6.18 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005628/0.3319, allocations: 304.3 kB / 0.5828 GB, free: 5.883 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001065/0.332, allocations: 48.78 kB / 0.5828 GB, free: 5.832 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.655e-05/0.3321, allocations: 47.98 kB / 0.5829 GB, free: 5.785 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000654/0.3327, allocations: 1.268 MB / 0.5841 GB, free: 4.414 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.785e-06/0.3327, allocations: 19.94 kB / 0.5841 GB, free: 4.395 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.165/0.4977, allocations: 4.315 MB / 0.5884 GB, free: 161.4 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001457/0.4992, allocations: 0.5321 MB / 0.5889 GB, free: 161.4 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000278/0.4995, allocations: 47.77 kB / 0.5889 GB, free: 161.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007578/0.5002, allocations: 70.25 kB / 0.589 GB, free: 161.4 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.5004, allocations: 154.9 kB / 0.5891 GB, free: 161.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001054/0.5005, allocations: 78 kB / 0.5892 GB, free: 161.4 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003263/0.5038, allocations: 2.579 MB / 0.5917 GB, free: 161.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5038, allocations: 0 / 0.5917 GB, free: 161.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003953/0.5077, allocations: 1.063 MB / 0.5928 GB, free: 161 MB / 490.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.000331/0.5081, allocations: 199.8 kB / 0.593 GB, free: 160.9 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.005976/0.514, allocations: 5 MB / 0.5978 GB, free: 159.3 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/0.5141, allocations: 2.031 kB / 0.5978 GB, free: 159.3 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/0.5153, allocations: 1.133 MB / 0.5989 GB, free: 158.9 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001511/0.5169, allocations: 416.4 kB / 0.5993 GB, free: 158.7 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/0.529, allocations: 10.95 MB / 0.61 GB, free: 153.5 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002493/0.5315, allocations: 3.261 MB / 0.6132 GB, free: 152.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006299/0.5321, allocations: 353.3 kB / 0.6136 GB, free: 152.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.132e-06/0.5321, allocations: 0 / 0.6136 GB, free: 152.5 MB / 490.7 MB Notification: Performance of Templates: time 0.06338/0.5955, allocations: 79.25 MB / 0.691 GB, free: 80.22 MB / 490.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=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.7909940760582685] Failed to read output from testmodel.py, exit status != 0: 0.6010160250589252 0.606310656 0.43931607199999995 Calling exit ...