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.0009055/0.0009055, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.0009653/0.0009653, allocations: 169 kB / 23.27 MB, free: 1.223 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.082/1.082, allocations: 177.1 MB / 203.7 MB, free: 5.523 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.03019/0.03019, allocations: 7.195 MB / 267.4 MB, free: 5.914 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.723e-06/1.723e-06, allocations: 0 / 339.3 MB, free: 10.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.769e-05/2.942e-05, allocations: 2.312 kB / 339.3 MB, free: 10.97 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01236/0.01239, allocations: 12.21 MB / 351.5 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009654/0.02205, allocations: 3.52 MB / 355.1 MB, free: 11.18 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003568/0.02562, allocations: 63.81 kB / 355.1 MB, free: 11.12 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002861/0.02848, allocations: 0.7922 MB / 355.9 MB, free: 10.32 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007811/0.03629, allocations: 2.177 MB / 358.1 MB, free: 8.133 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001172/0.03746, allocations: 143.7 kB / 358.2 MB, free: 7.992 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.007533/0.04499, allocations: 4.186 MB / 362.4 MB, free: 3.797 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004943/0.04994, allocations: 2.129 MB / 364.5 MB, free: 1.633 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007117/0.05705, allocations: 2.162 MB / 366.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00468/0.06173, allocations: 2.061 MB / 368.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001764/0.0635, allocations: 324 kB / 369.1 MB, free: 13.08 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003001/0.0665, allocations: 0.905 MB / 370 MB, free: 12.18 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002613/0.06911, allocations: 1.986 MB / 372 MB, free: 10.18 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003883/0.07299, allocations: 1.249 MB / 373.2 MB, free: 8.93 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.08388, allocations: 4.925 MB / 378.1 MB, free: 3.984 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.195e-05/0.08389, allocations: 0 / 378.1 MB, free: 3.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.0839, allocations: 0 / 378.1 MB, free: 3.984 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005427/0.08444, allocations: 8 kB / 378.2 MB, free: 3.977 MB / 346.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.02043/0.1049, allocations: 7.587 MB / 385.7 MB, free: 12.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.771e-05/0.1049, allocations: 8.625 kB / 385.8 MB, free: 12.31 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006819/0.1118, allocations: 2.104 MB / 387.9 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004669/0.1164, allocations: 1.845 MB / 389.7 MB, free: 8.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/0.1167, allocations: 238.2 kB / 389.9 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001068/0.1177, allocations: 323.8 kB / 390.3 MB, free: 7.77 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01627/0.134, allocations: 6.991 MB / 397.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001455/0.1341, allocations: 63.44 kB / 397.3 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004748/0.1346, allocations: 159.8 kB / 397.5 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003023/0.1376, allocations: 2.745 MB / 400.2 MB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0128/0.1504, allocations: 3.372 MB / 403.6 MB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3046/0.455, allocations: 52.61 MB / 456.2 MB, free: 84.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006051/0.461, allocations: 1.675 MB / 457.9 MB, free: 84.61 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009616/0.462, allocations: 0.519 MB / 458.4 MB, free: 84.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008213/0.4702, allocations: 5.133 MB / 463.5 MB, free: 83.45 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.02e-05/0.4703, allocations: 52.17 kB / 463.6 MB, free: 83.41 MB / 410.7 MB Notification: Performance of pre-optimization done (n=202): time 6.582e-06/0.4703, allocations: 0 / 463.6 MB, free: 83.41 MB / 410.7 MB Notification: Performance of matching and sorting (n=211): time 0.01081/0.4811, allocations: 4.465 MB / 468 MB, free: 82.48 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.377e-05/0.4811, allocations: 149.7 kB / 468.2 MB, free: 82.32 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00505/0.4862, allocations: 4.149 MB / 472.3 MB, free: 81.66 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00038/0.4866, allocations: 56.39 kB / 472.4 MB, free: 81.63 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0023/0.4889, allocations: 4.34 MB / 476.7 MB, free: 78.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001225/0.4901, allocations: 0.9015 MB / 477.6 MB, free: 78.46 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002175/0.4923, allocations: 1.786 MB / 479.4 MB, free: 78.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.162e-05/0.4924, allocations: 480.7 kB / 479.9 MB, free: 77.79 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001019/0.4934, allocations: 0.601 MB / 480.5 MB, free: 77.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004622/0.498, allocations: 8.179 MB / 488.7 MB, free: 67.76 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009177/0.5072, allocations: 9.829 MB / 498.5 MB, free: 57.09 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003536/0.5075, allocations: 51.28 kB / 498.5 MB, free: 57.09 MB / 410.7 MB Notification: Performance of matching and sorting (n=1054) (initialization): time 0.01591/0.5234, allocations: 6.239 MB / 0.4929 GB, free: 54.75 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.5236, allocations: 84.5 kB / 0.493 GB, free: 54.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000339/0.5239, allocations: 186.2 kB / 0.4932 GB, free: 54.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002188/0.5241, allocations: 238.1 kB / 0.4934 GB, free: 54.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004509/0.5286, allocations: 1.831 MB / 0.4952 GB, free: 54.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002434/0.5289, allocations: 349 kB / 0.4955 GB, free: 54.45 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005424/0.5343, allocations: 348.1 kB / 0.4959 GB, free: 54.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001328/0.5356, allocations: 440.1 kB / 0.4963 GB, free: 54.24 MB / 410.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.00267/0.5383, allocations: 0.8167 MB / 0.4971 GB, free: 53.59 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009892/0.5393, allocations: 433.3 kB / 0.4975 GB, free: 53.35 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.5407, allocations: 1.01 MB / 0.4985 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.235e-05/0.5408, allocations: 24.78 kB / 0.4985 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.613e-05/0.5408, allocations: 13.06 kB / 0.4985 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.5408, allocations: 9.938 kB / 0.4985 GB, free: 52.96 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007898/0.5487, allocations: 4.299 MB / 0.5027 GB, free: 50.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/0.5487, allocations: 16.77 kB / 0.5028 GB, free: 50.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006449/0.5494, allocations: 282 kB / 0.503 GB, free: 50.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001427/0.5495, allocations: 39.33 kB / 0.5031 GB, free: 50.61 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.901e-05/0.5496, allocations: 64.36 kB / 0.5031 GB, free: 50.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000763/0.5504, allocations: 1.732 MB / 0.5048 GB, free: 48.85 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/0.5504, allocations: 19.75 kB / 0.5048 GB, free: 48.84 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002989/0.5534, allocations: 2.519 MB / 0.5073 GB, free: 47.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001215/0.5546, allocations: 490.2 kB / 0.5078 GB, free: 46.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003507/0.5549, allocations: 47.52 kB / 0.5078 GB, free: 46.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007262/0.5557, allocations: 47.22 kB / 0.5079 GB, free: 46.61 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001973/0.5559, allocations: 149.4 kB / 0.508 GB, free: 46.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.919e-05/0.5559, allocations: 70.61 kB / 0.5081 GB, free: 46.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001916/0.5579, allocations: 1.575 MB / 0.5096 GB, free: 45.17 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5579, allocations: 0 / 0.5096 GB, free: 45.17 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006022/0.5639, allocations: 1.073 MB / 0.5106 GB, free: 44.1 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.0004815/0.5644, allocations: 205.7 kB / 0.5108 GB, free: 43.89 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006143/0.5705, allocations: 3.205 MB / 0.514 GB, free: 41.12 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.192e-05/0.5705, allocations: 7.938 kB / 0.514 GB, free: 41.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001067/0.5716, allocations: 0.6806 MB / 0.5146 GB, free: 40.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.5743, allocations: 447.9 kB / 0.5151 GB, free: 40.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.5892, allocations: 8.817 MB / 0.5237 GB, free: 31.65 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00209/0.5913, allocations: 1.449 MB / 0.5251 GB, free: 30.59 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001979/0.5933, allocations: 0.5839 MB / 0.5257 GB, free: 30.16 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007761/0.5941, allocations: 0.6563 MB / 0.5263 GB, free: 29.55 MB / 410.7 MB Notification: Performance of SimCode: time 2.846e-06/0.5941, allocations: 0 / 0.5263 GB, free: 29.55 MB / 410.7 MB Notification: Performance of Templates: time 0.05145/0.6455, allocations: 27.8 MB / 0.5535 GB, free: 5.043 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: 4.9747394868172705]