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.001325/0.001325, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001374/0.001374, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.507/1.507, allocations: 230.6 MB / 256 MB, free: 7.805 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.05264/0.05264, allocations: 9.24 MB / 321.7 MB, free: 9.867 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.002408/0.002408, allocations: 71.91 kB / 448.2 MB, free: 14.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.1207, allocations: 55.47 MB / 0.4918 GB, free: 6.562 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01535/0.136, allocations: 11.23 MB / 0.5028 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008469/0.1445, allocations: 3.435 MB / 0.5062 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002528/0.147, allocations: 59.81 kB / 0.5062 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.1493, allocations: 0.7807 MB / 0.507 GB, free: 6.992 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005329/0.1546, allocations: 2.096 MB / 0.509 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006893/0.1553, allocations: 139.8 kB / 0.5092 GB, free: 4.754 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005837/0.1612, allocations: 4.045 MB / 0.5131 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2309/0.3921, allocations: 2.043 MB / 0.5151 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003316/0.3954, allocations: 1.427 MB / 0.5165 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004071/0.3995, allocations: 2.134 MB / 0.5186 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.4005, allocations: 317.5 kB / 0.5189 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.4027, allocations: 0.8087 MB / 0.5197 GB, free: 8.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001894/0.4046, allocations: 1.914 MB / 0.5215 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00216/0.4067, allocations: 1.695 MB / 0.5232 GB, free: 7.273 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01006/0.4168, allocations: 7.655 MB / 0.5307 GB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.4168, allocations: 0 / 0.5307 GB, free: 5.926 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4168, allocations: 0 / 0.5307 GB, free: 5.926 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002905/0.4171, allocations: 1.875 kB / 0.5307 GB, free: 5.926 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.02965/0.4467, allocations: 7.177 MB / 0.5377 GB, free: 3.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.4468, allocations: 8.906 kB / 0.5377 GB, free: 3.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/0.4598, allocations: 3.292 MB / 0.5409 GB, free: 1.723 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006618/0.4665, allocations: 2.034 MB / 0.5429 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002793/0.4667, allocations: 236.2 kB / 0.5431 GB, free: 0.5 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001391/0.4681, allocations: 316.4 kB / 0.5434 GB, free: 452 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02494/0.4931, allocations: 13.44 MB / 0.5565 GB, free: 8.012 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001265/0.4932, allocations: 54.66 kB / 0.5566 GB, free: 7.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005418/0.4937, allocations: 161.5 kB / 0.5568 GB, free: 7.887 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005637/0.4994, allocations: 3.089 MB / 0.5598 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0277/0.5271, allocations: 11.92 MB / 0.5714 GB, free: 9.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07236/0.5994, allocations: 44.35 MB / 0.6147 GB, free: 12.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01278/0.6122, allocations: 2.753 MB / 0.6174 GB, free: 9.445 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.6151, allocations: 1.291 MB / 0.6187 GB, free: 8.148 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01555/0.6306, allocations: 5.892 MB / 0.6244 GB, free: 2.285 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.6307, allocations: 47.56 kB / 0.6245 GB, free: 2.23 MB / 462.1 MB Notification: Performance of pre-optimization done (n=202): time 6.061e-06/0.6307, allocations: 0 / 0.6245 GB, free: 2.23 MB / 462.1 MB Notification: Performance of matching and sorting (n=211): time 0.0236/0.6543, allocations: 10.31 MB / 0.6345 GB, free: 7.887 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.6544, allocations: 153.1 kB / 0.6347 GB, free: 7.707 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007167/0.6616, allocations: 4.582 MB / 0.6392 GB, free: 3.094 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003046/0.6619, allocations: 52.75 kB / 0.6392 GB, free: 3.039 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003421/0.6653, allocations: 4.134 MB / 0.6432 GB, free: 14.92 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001096/0.6664, allocations: 0.8671 MB / 0.6441 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00245/0.6688, allocations: 1.626 MB / 0.6457 GB, free: 12.43 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.669, allocations: 304.9 kB / 0.646 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004004/0.673, allocations: 2.241 MB / 0.6482 GB, free: 9.891 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00872/0.6817, allocations: 7.319 MB / 0.6553 GB, free: 128 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01448/0.6962, allocations: 10.39 MB / 0.6654 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000185/0.6964, allocations: 52 kB / 0.6655 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.02102/0.7174, allocations: 9.157 MB / 0.6744 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/0.7175, allocations: 80 kB / 0.6745 GB, free: 10.05 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002434/0.7178, allocations: 184 kB / 0.6747 GB, free: 9.875 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002602/0.718, allocations: 240 kB / 0.6749 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006237/0.7242, allocations: 1.84 MB / 0.6767 GB, free: 7.797 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003271/0.7246, allocations: 359.5 kB / 0.6771 GB, free: 7.449 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004935/0.7295, allocations: 373.7 kB / 0.6774 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007943/0.7303, allocations: 0.5035 MB / 0.6779 GB, free: 6.586 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.005257/0.7356, allocations: 2.646 MB / 0.6805 GB, free: 3.93 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007638/0.7363, allocations: 373.5 kB / 0.6808 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003586/0.7399, allocations: 1.901 MB / 0.6827 GB, free: 1.648 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000122/0.74, allocations: 43.98 kB / 0.6827 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/0.74, allocations: 3.938 kB / 0.6827 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.052e-05/0.7401, allocations: 10.22 kB / 0.6828 GB, free: 1.594 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01436/0.7544, allocations: 6.374 MB / 0.689 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.519e-05/0.7545, allocations: 12 kB / 0.689 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.7558, allocations: 307.6 kB / 0.6893 GB, free: 10.73 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.7559, allocations: 36.86 kB / 0.6893 GB, free: 10.7 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001535/0.7561, allocations: 55.97 kB / 0.6894 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.7574, allocations: 1.26 MB / 0.6906 GB, free: 9.281 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.034e-05/0.7574, allocations: 23.88 kB / 0.6906 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006802/0.7642, allocations: 4.333 MB / 0.6949 GB, free: 4.734 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001929/0.7661, allocations: 0.5363 MB / 0.6954 GB, free: 4.195 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004758/0.7666, allocations: 54.73 kB / 0.6954 GB, free: 4.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.7679, allocations: 67.94 kB / 0.6955 GB, free: 4.078 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002895/0.7682, allocations: 156.1 kB / 0.6956 GB, free: 3.926 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001434/0.7683, allocations: 79.11 kB / 0.6957 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004685/0.773, allocations: 2.573 MB / 0.6982 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.773, allocations: 0 / 0.6982 GB, free: 1.266 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006244/0.7792, allocations: 1.062 MB / 0.6993 GB, free: 208 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.0004806/0.7797, allocations: 189.7 kB / 0.6995 GB, free: 8 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009291/0.789, allocations: 5.006 MB / 0.7043 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.475e-05/0.789, allocations: 0 / 0.7043 GB, free: 11.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00204/0.7911, allocations: 1.167 MB / 0.7055 GB, free: 9.867 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002857/0.7939, allocations: 413.8 kB / 0.7059 GB, free: 9.465 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02132/0.8152, allocations: 10.45 MB / 0.7161 GB, free: 14.81 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00525/0.8205, allocations: 3.25 MB / 0.7193 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.005829/0.8263, allocations: 2.346 MB / 0.7215 GB, free: 9.184 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007926/0.8271, allocations: 287.4 kB / 0.7218 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of SimCode: time 1.092e-06/0.8271, allocations: 0 / 0.7218 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of Templates: time 0.2879/1.115, allocations: 29.26 MB / 0.7504 GB, free: 186.4 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: 7.026587385684252] Failed to read output from testmodel.py, exit status != 0: 1.124299442395568 1.133884572 0.7145310250000001 Calling exit ...