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.001257/0.001257, allocations: 100.3 kB / 19.7 MB, free: 2.012 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: 222.1 kB / 22.99 MB, free: 4.914 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.368/1.368, allocations: 230.6 MB / 256.8 MB, free: 7.812 MB / 206.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.04697/0.04697, allocations: 9.244 MB / 322.4 MB, free: 9.875 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.001987/0.001987, allocations: 63.91 kB / 448.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1126, allocations: 55.47 MB / 0.4926 GB, free: 6.559 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01412/0.1267, allocations: 11.22 MB / 0.5035 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.007548/0.1343, allocations: 3.442 MB / 0.5069 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.136, allocations: 63.81 kB / 0.507 GB, free: 7.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001867/0.1379, allocations: 0.7768 MB / 0.5077 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005092/0.143, allocations: 2.081 MB / 0.5097 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004936/0.1435, allocations: 143.8 kB / 0.5099 GB, free: 4.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005112/0.1486, allocations: 4.052 MB / 0.5138 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2031/0.3517, allocations: 2.049 MB / 0.5158 GB, free: 8.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.3536, allocations: 1.431 MB / 0.5172 GB, free: 8.59 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002698/0.3563, allocations: 2.131 MB / 0.5193 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000797/0.3571, allocations: 317.9 kB / 0.5196 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.3588, allocations: 0.8149 MB / 0.5204 GB, free: 8.289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.3605, allocations: 1.904 MB / 0.5223 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001979/0.3625, allocations: 1.696 MB / 0.5239 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008535/0.371, allocations: 7.657 MB / 0.5314 GB, free: 5.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.371, allocations: 0.625 kB / 0.5314 GB, free: 5.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.371, allocations: 0 / 0.5314 GB, free: 5.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002398/0.3713, allocations: 2.344 kB / 0.5314 GB, free: 5.965 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.02573/0.397, allocations: 7.17 MB / 0.5384 GB, free: 3.492 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.397, allocations: 13.59 kB / 0.5384 GB, free: 3.488 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01124/0.4083, allocations: 3.297 MB / 0.5417 GB, free: 1.762 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005999/0.4143, allocations: 2.03 MB / 0.5436 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002435/0.4145, allocations: 236.9 kB / 0.5439 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001207/0.4157, allocations: 317.4 kB / 0.5442 GB, free: 496 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02464/0.4404, allocations: 13.45 MB / 0.5573 GB, free: 8 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001302/0.4405, allocations: 53.44 kB / 0.5573 GB, free: 7.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006372/0.4411, allocations: 156.4 kB / 0.5575 GB, free: 7.879 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005303/0.4464, allocations: 3.087 MB / 0.5605 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02679/0.4732, allocations: 11.92 MB / 0.5721 GB, free: 9.145 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06664/0.5399, allocations: 44.35 MB / 0.6155 GB, free: 12.2 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01149/0.5514, allocations: 2.75 MB / 0.6181 GB, free: 9.434 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002523/0.5539, allocations: 1.289 MB / 0.6194 GB, free: 8.137 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01297/0.5669, allocations: 5.895 MB / 0.6252 GB, free: 2.273 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/0.5669, allocations: 51.55 kB / 0.6252 GB, free: 2.215 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 6.482e-06/0.5669, allocations: 0 / 0.6252 GB, free: 2.215 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.0206/0.5875, allocations: 10.31 MB / 0.6353 GB, free: 7.871 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.5876, allocations: 145.8 kB / 0.6354 GB, free: 7.695 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007241/0.5949, allocations: 4.582 MB / 0.6399 GB, free: 3.082 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002552/0.5951, allocations: 55.27 kB / 0.6399 GB, free: 3.023 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003257/0.5984, allocations: 4.128 MB / 0.644 GB, free: 14.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.5994, allocations: 0.871 MB / 0.6448 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002369/0.6018, allocations: 1.621 MB / 0.6464 GB, free: 12.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.6019, allocations: 310.3 kB / 0.6467 GB, free: 12.12 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003672/0.6056, allocations: 2.245 MB / 0.6489 GB, free: 9.875 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008068/0.6136, allocations: 7.323 MB / 0.656 GB, free: 108 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01402/0.6277, allocations: 10.39 MB / 0.6662 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001891/0.6279, allocations: 52 kB / 0.6662 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01787/0.6457, allocations: 9.147 MB / 0.6752 GB, free: 10.12 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.6459, allocations: 80 kB / 0.6753 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002352/0.6461, allocations: 180 kB / 0.6754 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002509/0.6463, allocations: 240 kB / 0.6757 GB, free: 9.629 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005654/0.652, allocations: 1.84 MB / 0.6775 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000308/0.6523, allocations: 351.8 kB / 0.6778 GB, free: 7.441 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004942/0.6572, allocations: 386.1 kB / 0.6782 GB, free: 7.066 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001003/0.6582, allocations: 0.496 MB / 0.6786 GB, free: 6.57 MB / 0.5137 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.004901/0.6631, allocations: 2.649 MB / 0.6812 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007278/0.6639, allocations: 373.5 kB / 0.6816 GB, free: 3.547 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003456/0.6673, allocations: 1.903 MB / 0.6834 GB, free: 1.633 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001166/0.6674, allocations: 35.92 kB / 0.6835 GB, free: 1.598 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.6675, allocations: 4 kB / 0.6835 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.6675, allocations: 11.91 kB / 0.6835 GB, free: 1.582 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.6805, allocations: 6.38 MB / 0.6897 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-05/0.6805, allocations: 16 kB / 0.6897 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001165/0.6817, allocations: 299.5 kB / 0.69 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.6818, allocations: 40.84 kB / 0.6901 GB, free: 10.69 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001273/0.6819, allocations: 47.98 kB / 0.6901 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001128/0.6831, allocations: 1.268 MB / 0.6913 GB, free: 9.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.685e-05/0.6831, allocations: 27.81 kB / 0.6914 GB, free: 9.242 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005996/0.6891, allocations: 4.321 MB / 0.6956 GB, free: 4.73 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/0.6907, allocations: 0.5402 MB / 0.6961 GB, free: 4.188 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004531/0.6912, allocations: 47.92 kB / 0.6962 GB, free: 4.141 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.6924, allocations: 74.28 kB / 0.6962 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002543/0.6927, allocations: 157.2 kB / 0.6964 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001347/0.6928, allocations: 78.33 kB / 0.6965 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004305/0.6971, allocations: 2.577 MB / 0.699 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6971, allocations: 0 / 0.699 GB, free: 1.254 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005828/0.703, allocations: 1.062 MB / 0.7 GB, free: 200 kB / 0.5294 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.0004961/0.7035, allocations: 193.7 kB / 0.7002 GB, free: 16 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.008639/0.7121, allocations: 4.995 MB / 0.7051 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.481e-05/0.7121, allocations: 4 kB / 0.7051 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001817/0.7139, allocations: 1.135 MB / 0.7062 GB, free: 9.895 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002577/0.7165, allocations: 430.2 kB / 0.7066 GB, free: 9.477 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02126/0.7378, allocations: 11.04 MB / 0.7174 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004884/0.7426, allocations: 3.25 MB / 0.7206 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.7438, allocations: 351.3 kB / 0.7209 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of SimCode: time 1.363e-06/0.7438, allocations: 0 / 0.7209 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of Templates: time 0.3219/1.066, allocations: 79.31 MB / 0.7983 GB, free: 142.3 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.139822334051132] Failed to read output from testmodel.py, exit status != 0: 1.0740930922329426 1.082875471 0.7095166030000001 Calling exit ...