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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001196/0.001196, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 194.1 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.205/0.205, allocations: 9.113 MB / 299.5 MB, free: 1.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 67.88 kB / 362 MB, free: 13.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.1202, allocations: 51.43 MB / 413.4 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2718/0.392, allocations: 18.52 MB / 431.9 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01228/0.4044, allocations: 5.636 MB / 437.5 MB, free: 31.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003785/0.4082, allocations: 90.94 kB / 437.6 MB, free: 31.41 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003337/0.4115, allocations: 1.754 MB / 439.4 MB, free: 30.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00842/0.42, allocations: 3.008 MB / 442.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002009/0.4221, allocations: 0.7206 MB / 443.1 MB, free: 28.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008705/0.4308, allocations: 6.688 MB / 449.8 MB, free: 26.04 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005109/0.4359, allocations: 4.003 MB / 453.8 MB, free: 24.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003923/0.4399, allocations: 2.183 MB / 456 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.4434, allocations: 2.932 MB / 458.9 MB, free: 21.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001136/0.4445, allocations: 0.5418 MB / 459.5 MB, free: 21.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002625/0.4471, allocations: 1.332 MB / 460.8 MB, free: 21.67 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00231/0.4495, allocations: 2.708 MB / 463.5 MB, free: 20.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004669/0.4541, allocations: 3.571 MB / 467.1 MB, free: 17.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.4705, allocations: 10.92 MB / 478 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.018e-05/0.4706, allocations: 3.938 kB / 478 MB, free: 13.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.4706, allocations: 1.188 kB / 478 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0005793/0.4712, allocations: 0 / 478 MB, free: 13.71 MB / 350.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.04702/0.5182, allocations: 10.9 MB / 488.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.741e-05/0.5183, allocations: 9.656 kB / 488.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01501/0.5333, allocations: 3.535 MB / 492.4 MB, free: 5.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009398/0.5427, allocations: 3.385 MB / 495.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003166/0.5431, allocations: 336.4 kB / 496.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002904/0.546, allocations: 447.5 kB / 496.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0418/0.5878, allocations: 17.61 MB / 0.5021 GB, free: 14.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000375/0.5883, allocations: 79.25 kB / 0.5022 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001682/0.59, allocations: 223.7 kB / 0.5024 GB, free: 13.98 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00702/0.597, allocations: 3.707 MB / 0.5061 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03754/0.6346, allocations: 15.4 MB / 0.5211 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4418/1.076, allocations: 71.95 MB / 0.5914 GB, free: 76.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02204/1.099, allocations: 7.327 MB / 0.5985 GB, free: 75.57 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005645/1.104, allocations: 3.335 MB / 0.6018 GB, free: 75.52 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02739/1.132, allocations: 14.5 MB / 0.6159 GB, free: 69.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.665e-05/1.132, allocations: 77.61 kB / 0.616 GB, free: 69.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 7.234e-06/1.132, allocations: 0 / 0.616 GB, free: 69.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.08437/1.216, allocations: 25.47 MB / 0.6409 GB, free: 58.33 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/1.216, allocations: 198.2 kB / 0.6411 GB, free: 58.14 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01482/1.231, allocations: 6.577 MB / 0.6475 GB, free: 55.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001211/1.232, allocations: 84.27 kB / 0.6476 GB, free: 55.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004804/1.237, allocations: 4.775 MB / 0.6522 GB, free: 51.93 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002866/1.24, allocations: 1.544 MB / 0.6537 GB, free: 50.79 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006156/1.246, allocations: 2.139 MB / 0.6558 GB, free: 49.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.87e-05/1.246, allocations: 301.1 kB / 0.6561 GB, free: 49.46 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008797/1.255, allocations: 3.616 MB / 0.6596 GB, free: 48.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01299/1.268, allocations: 9.622 MB / 0.669 GB, free: 37.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01717/1.285, allocations: 14.44 MB / 0.6831 GB, free: 20.44 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000219/1.286, allocations: 60 kB / 0.6832 GB, free: 20.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.0287/1.314, allocations: 13.39 MB / 0.6963 GB, free: 6.965 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001467/1.315, allocations: 98.09 kB / 0.6964 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002881/1.315, allocations: 212 kB / 0.6966 GB, free: 6.664 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001176/1.316, allocations: 0.6099 MB / 0.6972 GB, free: 6.055 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008873/1.325, allocations: 2.457 MB / 0.6996 GB, free: 3.594 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006702/1.332, allocations: 5.101 MB / 0.7045 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01043/1.342, allocations: 0.4896 MB / 0.705 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002628/1.345, allocations: 0.6288 MB / 0.7056 GB, free: 13.25 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 (1307): * Single equations (assignments): 1298 * Array equations: 8 * 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 {(6,28,44.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009392/1.354, allocations: 3.511 MB / 0.7091 GB, free: 9.727 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001748/1.356, allocations: 0.5784 MB / 0.7096 GB, free: 9.141 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/1.367, allocations: 5.224 MB / 0.7147 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.367, allocations: 75.42 kB / 0.7148 GB, free: 3.805 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/1.367, allocations: 15.88 kB / 0.7148 GB, free: 3.789 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.617e-05/1.367, allocations: 19.92 kB / 0.7148 GB, free: 3.77 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04247/1.409, allocations: 20.09 MB / 0.7345 GB, free: 15.33 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.177e-05/1.409, allocations: 27.98 kB / 0.7345 GB, free: 15.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003502/1.413, allocations: 0.6772 MB / 0.7351 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001019/1.414, allocations: 368.1 kB / 0.7355 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005453/1.415, allocations: 95.98 kB / 0.7356 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007361/1.422, allocations: 6.689 MB / 0.7421 GB, free: 7.07 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.869e-05/1.422, allocations: 35.81 kB / 0.7422 GB, free: 7.035 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01688/1.439, allocations: 9.754 MB / 0.7517 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004061/1.443, allocations: 1.13 MB / 0.7528 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001965/1.445, allocations: 99.97 kB / 0.7529 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003852/1.449, allocations: 155.9 kB / 0.753 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007153/1.45, allocations: 317.1 kB / 0.7533 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002894/1.45, allocations: 143.8 kB / 0.7535 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.009839/1.46, allocations: 4.354 MB / 0.7577 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.91e-07/1.46, allocations: 0 / 0.7577 GB, free: 6.586 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01223/1.472, allocations: 1.628 MB / 0.7593 GB, free: 4.965 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * 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 (365): * Single equations (assignments): 356 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,22,52.0%), (1,1,100.0%), (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.001337/1.473, allocations: 269.6 kB / 0.7596 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.2333/1.707, allocations: 13.64 MB / 0.7729 GB, free: 171.9 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.091e-05/1.707, allocations: 3.281 kB / 0.7729 GB, free: 171.9 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0044/1.711, allocations: 3.097 MB / 0.7759 GB, free: 170.6 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006235/1.717, allocations: 0.853 MB / 0.7767 GB, free: 170.2 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02975/1.747, allocations: 16 MB / 0.7924 GB, free: 162.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00898/1.756, allocations: 4.93 MB / 0.7972 GB, free: 161 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.009876/1.766, allocations: 3.223 MB / 0.8003 GB, free: 160.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002036/1.768, allocations: 469.5 kB / 0.8008 GB, free: 160.6 MB / 0.4981 GB Notification: Performance of SimCode: time 9.41e-07/1.768, allocations: 1.062 kB / 0.8008 GB, free: 160.6 MB / 0.4981 GB Notification: Performance of Templates: time 0.1093/1.878, allocations: 66.84 MB / 0.866 GB, free: 109.2 MB / 0.4981 GB 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)