Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PlanarMechanics.GearComponents.Examples.PlanetaryGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear") translateModel(PlanarMechanics.GearComponents.Examples.PlanetaryGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001018/0.001018, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 223.2 MB / 239.9 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.2133/0.2133, allocations: 9.095 MB / 300.1 MB, free: 2.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003532/0.0003532, allocations: 8 kB / 363 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 52.44 MB / 415.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2631/0.3755, allocations: 56.42 MB / 471.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0386/0.4142, allocations: 14.64 MB / 486.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02019/0.4344, allocations: 261.3 kB / 486.7 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.013/0.4475, allocations: 2.791 MB / 489.5 MB, free: 12.74 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03521/0.4827, allocations: 8.457 MB / 498 MB, free: 8.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00527/0.488, allocations: 0.6003 MB / 498.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01456/0.5026, allocations: 3.771 MB / 0.4906 GB, free: 6.637 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009546/0.5122, allocations: 3.73 MB / 0.4942 GB, free: 5.113 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005164/0.5174, allocations: 1.608 MB / 0.4958 GB, free: 4.539 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005358/0.5228, allocations: 2.114 MB / 0.4979 GB, free: 3.801 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002159/0.525, allocations: 272.2 kB / 0.4981 GB, free: 3.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003638/0.5286, allocations: 0.9319 MB / 0.499 GB, free: 3.621 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003557/0.5322, allocations: 2.244 MB / 0.5012 GB, free: 1.871 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002793/0.535, allocations: 1.419 MB / 0.5026 GB, free: 452 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.5469, allocations: 8.671 MB / 0.5111 GB, free: 7.746 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.5469, allocations: 0 / 0.5111 GB, free: 7.746 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5469, allocations: 0 / 0.5111 GB, free: 7.746 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004105/0.5474, allocations: 4 kB / 0.5111 GB, free: 7.742 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: 2454 * Number of variables: 2454 Notification: Performance of Generate backend data structure: time 0.03272/0.5801, allocations: 9.735 MB / 0.5206 GB, free: 13.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.867e-05/0.5801, allocations: 8.031 kB / 0.5206 GB, free: 13.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01637/0.5965, allocations: 4.316 MB / 0.5248 GB, free: 9.582 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009212/0.6058, allocations: 3.405 MB / 0.5281 GB, free: 6.117 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004166/0.6063, allocations: 340.4 kB / 0.5285 GB, free: 5.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002666/0.6089, allocations: 450 kB / 0.5289 GB, free: 5.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04126/0.6502, allocations: 17.72 MB / 0.5462 GB, free: 2.43 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003222/0.6506, allocations: 75.25 kB / 0.5463 GB, free: 2.355 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001694/0.6523, allocations: 223.7 kB / 0.5465 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006716/0.659, allocations: 3.711 MB / 0.5501 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03553/0.6946, allocations: 15.51 MB / 0.5653 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.351/1.046, allocations: 71.86 MB / 0.6354 GB, free: 65.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02283/1.068, allocations: 7.477 MB / 0.6427 GB, free: 61.89 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03322/1.102, allocations: 12.24 MB / 0.6547 GB, free: 56.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.085e-05/1.102, allocations: 69.94 kB / 0.6548 GB, free: 56.21 MB / 446.1 MB Notification: Performance of pre-optimization done (n=379): time 6.903e-06/1.102, allocations: 0 / 0.6548 GB, free: 56.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=435): time 0.07588/1.178, allocations: 27.18 MB / 0.6813 GB, free: 44.29 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.093e-05/1.178, allocations: 200.8 kB / 0.6815 GB, free: 44.09 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01022/1.188, allocations: 6.664 MB / 0.688 GB, free: 38.25 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008833/1.189, allocations: 85.7 kB / 0.6881 GB, free: 38.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003133/1.192, allocations: 4.769 MB / 0.6927 GB, free: 33.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002084/1.194, allocations: 1.598 MB / 0.6943 GB, free: 31.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008954/1.195, allocations: 212 kB / 0.6945 GB, free: 31.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005735/1.196, allocations: 0.7569 MB / 0.6952 GB, free: 30.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006024/1.202, allocations: 3.605 MB / 0.6988 GB, free: 27.24 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009143/1.211, allocations: 9.565 MB / 0.7081 GB, free: 14.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008605/1.22, allocations: 5.914 MB / 0.7139 GB, free: 8.816 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001741/1.22, allocations: 60 kB / 0.7139 GB, free: 8.758 MB / 446.1 MB Notification: Performance of matching and sorting (n=1409) (initialization): time 0.02886/1.249, allocations: 13.38 MB / 0.727 GB, free: 11.35 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003291/1.249, allocations: 100.2 kB / 0.7271 GB, free: 11.25 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004523/1.249, allocations: 208 kB / 0.7273 GB, free: 11.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/1.251, allocations: 0.6418 MB / 0.7279 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009729/1.261, allocations: 2.475 MB / 0.7303 GB, free: 7.926 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007484/1.268, allocations: 4.97 MB / 0.7352 GB, free: 2.824 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009136/1.278, allocations: 0.4917 MB / 0.7357 GB, free: 2.332 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002873/1.28, allocations: 0.6288 MB / 0.7363 GB, free: 1.703 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 958 * Number of states: 0 () * Number of discrete variables: 42 (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],fixed.color[3],fixed.color[2],fixed.color[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],planetary.body3D.sphereColor[3],planetary.body3D.sphereColor[2],planetary.body3D.sphereColor[1],planetary.carrierPart.color[3],planetary.carrierPart.color[2],planetary.carrierPart.color[1],planetary.carrierAngle.color[3],planetary.carrierAngle.color[2],planetary.carrierAngle.color[1],planetary.bearing_Carrier.cylinderColor[3],planetary.bearing_Carrier.cylinderColor[2],planetary.bearing_Carrier.cylinderColor[1],planetary.bearing_Planet.cylinderColor[3],planetary.bearing_Planet.cylinderColor[2],planetary.bearing_Planet.cylinderColor[1],planetary.bearing_Ring.cylinderColor[3],planetary.bearing_Ring.cylinderColor[2],planetary.bearing_Ring.cylinderColor[1],planetary.bearing_Sun.cylinderColor[3],planetary.bearing_Sun.cylinderColor[2],planetary.bearing_Sun.cylinderColor[1],planetary.planet.sphereColor[3],planetary.planet.sphereColor[2],planetary.planet.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1316): * Single equations (assignments): 1307 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,44.4%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00993/1.29, allocations: 3.536 MB / 0.7397 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002076/1.293, allocations: 0.5783 MB / 0.7403 GB, free: 13.57 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01289/1.305, allocations: 5.325 MB / 0.7455 GB, free: 8.203 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001092/1.306, allocations: 78.48 kB / 0.7456 GB, free: 8.129 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.174e-05/1.306, allocations: 4 kB / 0.7456 GB, free: 8.125 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.56e-05/1.306, allocations: 31.91 kB / 0.7456 GB, free: 8.094 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.302/1.608, allocations: 21.65 MB / 0.7668 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-05/1.608, allocations: 24.72 kB / 0.7668 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004408/1.612, allocations: 0.7057 MB / 0.7675 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001212/1.613, allocations: 352 kB / 0.7678 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009529/1.614, allocations: 109 kB / 0.7679 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005858/1.62, allocations: 6.278 MB / 0.774 GB, free: 123 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.082e-05/1.62, allocations: 47.52 kB / 0.7741 GB, free: 123 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01586/1.636, allocations: 14.76 MB / 0.7885 GB, free: 112.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004995/1.641, allocations: 1.165 MB / 0.7896 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/1.643, allocations: 105 kB / 0.7897 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003335/1.647, allocations: 169.1 kB / 0.7899 GB, free: 112 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000668/1.647, allocations: 336.9 kB / 0.7902 GB, free: 111.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002897/1.648, allocations: 142.5 kB / 0.7904 GB, free: 111.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01099/1.659, allocations: 4.418 MB / 0.7947 GB, free: 110.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.12e-07/1.659, allocations: 1.031 kB / 0.7947 GB, free: 110.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01194/1.67, allocations: 1.659 MB / 0.7963 GB, free: 110.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 115 * Number of states: 6 (heatCapacitor.T,planetary.planet.phi,planetary.bearing_Carrier.phi,planetary.bearing_Carrier.w,sunSpeed.phi,ringTorque.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 (380): * Single equations (assignments): 371 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,52.0%) 22,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001377/1.672, allocations: 300.5 kB / 0.7966 GB, free: 109.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02026/1.692, allocations: 8.751 MB / 0.8051 GB, free: 106.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.949e-05/1.692, allocations: 3.719 kB / 0.8051 GB, free: 106.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006102/1.698, allocations: 3.169 MB / 0.8082 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00689/1.705, allocations: 0.7721 MB / 0.809 GB, free: 105.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03786/1.743, allocations: 18.58 MB / 0.8271 GB, free: 94.93 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01165/1.755, allocations: 5.08 MB / 0.8321 GB, free: 91.98 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.01084/1.766, allocations: 3.249 MB / 0.8352 GB, free: 89.89 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002854/1.769, allocations: 478.1 kB / 0.8357 GB, free: 89.47 MB / 478.1 MB Notification: Performance of SimCode: time 2.304e-06/1.769, allocations: 0 / 0.8357 GB, free: 89.47 MB / 478.1 MB Notification: Performance of Templates: time 0.116/1.885, allocations: 63.34 MB / 0.8976 GB, free: 29.65 MB / 478.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.makefile (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1)