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.006617/0.006617, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001259/0.001259, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1764/0.1764, allocations: 9.11 MB / 299.6 MB, free: 1.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 55.91 kB / 414.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3111/0.3123, allocations: 51.43 MB / 466.1 MB, free: 18.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01979/0.3322, allocations: 18.52 MB / 484.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01657/0.3488, allocations: 5.649 MB / 490.3 MB, free: 256 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006077/0.3549, allocations: 94.78 kB / 490.4 MB, free: 240 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005153/0.3601, allocations: 1.753 MB / 492.1 MB, free: 14.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.3707, allocations: 3.007 MB / 495.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002636/0.3733, allocations: 0.7313 MB / 495.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0119/0.3852, allocations: 6.715 MB / 0.4908 GB, free: 7.617 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005196/0.3905, allocations: 3.996 MB / 0.4947 GB, free: 3.555 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004827/0.3953, allocations: 2.191 MB / 0.4968 GB, free: 1.355 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005698/0.401, allocations: 2.927 MB / 0.4997 GB, free: 14.42 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002505/0.4036, allocations: 0.5429 MB / 0.5002 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004058/0.4077, allocations: 1.338 MB / 0.5015 GB, free: 12.54 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003082/0.4107, allocations: 2.711 MB / 0.5042 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004946/0.4157, allocations: 3.565 MB / 0.5076 GB, free: 6.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01296/0.4287, allocations: 11.39 MB / 0.5188 GB, free: 10.8 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.4287, allocations: 0 / 0.5188 GB, free: 10.8 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4287, allocations: 0 / 0.5188 GB, free: 10.8 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002811/0.429, allocations: 0 / 0.5188 GB, free: 10.8 MB / 398.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.03376/0.4628, allocations: 10.89 MB / 0.5294 GB, free: 15.81 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.4629, allocations: 16.02 kB / 0.5294 GB, free: 15.8 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01204/0.4749, allocations: 3.532 MB / 0.5329 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006817/0.4818, allocations: 3.422 MB / 0.5362 GB, free: 8.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002943/0.4821, allocations: 340.4 kB / 0.5365 GB, free: 8.434 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001554/0.4836, allocations: 447.5 kB / 0.537 GB, free: 7.996 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03109/0.5147, allocations: 17.6 MB / 0.5542 GB, free: 5.203 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003043/0.5151, allocations: 79.25 kB / 0.5542 GB, free: 5.125 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001617/0.5167, allocations: 223.7 kB / 0.5544 GB, free: 4.906 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005835/0.5226, allocations: 3.711 MB / 0.5581 GB, free: 1.191 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03532/0.5579, allocations: 15.4 MB / 0.5731 GB, free: 1.762 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3922/0.9501, allocations: 71.65 MB / 0.6431 GB, free: 56.71 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02139/0.9716, allocations: 7.343 MB / 0.6503 GB, free: 52.48 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004311/0.9759, allocations: 3.339 MB / 0.6535 GB, free: 50.72 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02104/0.997, allocations: 14.49 MB / 0.6677 GB, free: 40.55 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.156e-05/0.9971, allocations: 74.19 kB / 0.6677 GB, free: 40.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=373): time 7.264e-06/0.9971, allocations: 0 / 0.6677 GB, free: 40.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=420): time 0.05827/1.055, allocations: 25.47 MB / 0.6926 GB, free: 16.17 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/1.055, allocations: 196.8 kB / 0.6928 GB, free: 15.94 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00777/1.063, allocations: 6.577 MB / 0.6992 GB, free: 9.355 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006374/1.064, allocations: 89.64 kB / 0.6993 GB, free: 9.262 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002305/1.066, allocations: 4.78 MB / 0.704 GB, free: 4.488 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001565/1.068, allocations: 1.547 MB / 0.7055 GB, free: 2.934 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002522/1.07, allocations: 2.138 MB / 0.7076 GB, free: 0.7852 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.741e-05/1.07, allocations: 301.1 kB / 0.7079 GB, free: 500 kB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006881/1.077, allocations: 3.613 MB / 0.7114 GB, free: 12.87 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01393/1.091, allocations: 9.614 MB / 0.7208 GB, free: 332 kB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02347/1.115, allocations: 14.45 MB / 0.7349 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002288/1.115, allocations: 60 kB / 0.7349 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02904/1.144, allocations: 13.38 MB / 0.748 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001526/1.144, allocations: 96 kB / 0.7481 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003199/1.145, allocations: 208 kB / 0.7483 GB, free: 1.133 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001272/1.146, allocations: 0.6072 MB / 0.7489 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008897/1.155, allocations: 2.456 MB / 0.7513 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007533/1.162, allocations: 5.117 MB / 0.7563 GB, free: 8.797 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008767/1.171, allocations: 495.5 kB / 0.7568 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002083/1.173, allocations: 0.6288 MB / 0.7574 GB, free: 7.684 MB / 0.5137 GB 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.007111/1.18, allocations: 3.516 MB / 0.7608 GB, free: 4.152 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001209/1.182, allocations: 0.5745 MB / 0.7614 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009056/1.191, allocations: 5.227 MB / 0.7665 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.549e-05/1.191, allocations: 71.98 kB / 0.7665 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.673e-05/1.191, allocations: 4 kB / 0.7665 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.665e-05/1.191, allocations: 23.92 kB / 0.7666 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03721/1.228, allocations: 19.99 MB / 0.7861 GB, free: 9.77 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.246e-05/1.228, allocations: 24 kB / 0.7861 GB, free: 9.746 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002959/1.231, allocations: 0.6788 MB / 0.7868 GB, free: 9.066 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008966/1.232, allocations: 359.1 kB / 0.7871 GB, free: 8.707 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003241/1.232, allocations: 99.92 kB / 0.7872 GB, free: 8.609 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006787/1.239, allocations: 6.697 MB / 0.7938 GB, free: 1.496 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.083e-05/1.239, allocations: 35.81 kB / 0.7938 GB, free: 1.461 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3498/1.589, allocations: 9.752 MB / 0.8033 GB, free: 181 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003266/1.592, allocations: 1.126 MB / 0.8044 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001509/1.594, allocations: 99.34 kB / 0.8045 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003246/1.597, allocations: 165.5 kB / 0.8047 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006896/1.598, allocations: 320.8 kB / 0.805 GB, free: 180.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002916/1.598, allocations: 135 kB / 0.8051 GB, free: 180.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009052/1.607, allocations: 4.352 MB / 0.8093 GB, free: 178.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.41e-07/1.607, allocations: 0 / 0.8093 GB, free: 178.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01093/1.618, allocations: 1.627 MB / 0.8109 GB, free: 178.7 MB / 0.545 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.00113/1.619, allocations: 271.7 kB / 0.8112 GB, free: 178.5 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01587/1.635, allocations: 8.77 MB / 0.8198 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.349e-05/1.635, allocations: 4.312 kB / 0.8198 GB, free: 175.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005304/1.641, allocations: 3.092 MB / 0.8228 GB, free: 174 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007286/1.648, allocations: 0.8615 MB / 0.8236 GB, free: 173.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03352/1.681, allocations: 15.82 MB / 0.8391 GB, free: 165.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007759/1.689, allocations: 4.926 MB / 0.8439 GB, free: 162.1 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007869/1.697, allocations: 3.228 MB / 0.847 GB, free: 160 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/1.699, allocations: 467 kB / 0.8475 GB, free: 159.6 MB / 0.545 GB Notification: Performance of SimCode: time 1.372e-06/1.699, allocations: 0 / 0.8475 GB, free: 159.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1038/1.803, allocations: 61.54 MB / 0.9076 GB, free: 98.66 MB / 0.545 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)