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.001171/0.001171, allocations: 105.7 kB / 16.41 MB, free: 6.492 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.001203/0.001203, allocations: 187 kB / 17.34 MB, free: 5.75 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.328/1.328, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0457/0.0457, allocations: 9.121 MB / 300.3 MB, free: 5.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001192, allocations: 68.09 kB / 415.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08544/0.08665, allocations: 51.43 MB / 466.8 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01843/0.1051, allocations: 18.51 MB / 485.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01124/0.1164, allocations: 5.656 MB / 490.9 MB, free: 9.426 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002907/0.1193, allocations: 91.75 kB / 491 MB, free: 9.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004237/0.1236, allocations: 1.754 MB / 492.8 MB, free: 7.574 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007664/0.1313, allocations: 3.007 MB / 495.8 MB, free: 4.555 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00219/0.1336, allocations: 0.7293 MB / 496.5 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009322/0.1429, allocations: 6.713 MB / 0.4914 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00587/0.1488, allocations: 4.011 MB / 0.4953 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003823/0.1527, allocations: 2.18 MB / 0.4975 GB, free: 6.828 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004447/0.1571, allocations: 2.927 MB / 0.5003 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001743/0.1589, allocations: 0.543 MB / 0.5009 GB, free: 3.348 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.1624, allocations: 1.334 MB / 0.5022 GB, free: 2.012 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2105/0.3729, allocations: 2.721 MB / 0.5048 GB, free: 11.87 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008193/0.3811, allocations: 3.566 MB / 0.5083 GB, free: 11.08 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01859/0.3997, allocations: 11.39 MB / 0.5194 GB, free: 9.395 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.3998, allocations: 0.5312 kB / 0.5194 GB, free: 9.395 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3998, allocations: 0.625 kB / 0.5194 GB, free: 9.395 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005108/0.4003, allocations: 0 / 0.5194 GB, free: 9.395 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.04202/0.4424, allocations: 10.9 MB / 0.5301 GB, free: 6.043 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.4424, allocations: 9.406 kB / 0.5301 GB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01405/0.4565, allocations: 3.537 MB / 0.5335 GB, free: 4.168 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009417/0.4659, allocations: 3.42 MB / 0.5369 GB, free: 2.105 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003308/0.4663, allocations: 342.2 kB / 0.5372 GB, free: 2.004 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002577/0.4689, allocations: 454.4 kB / 0.5376 GB, free: 1.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0352/0.5041, allocations: 17.61 MB / 0.5548 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002443/0.5044, allocations: 79.06 kB / 0.5549 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001274/0.5057, allocations: 221.8 kB / 0.5551 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006/0.5117, allocations: 3.706 MB / 0.5587 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04215/0.5539, allocations: 15.4 MB / 0.5738 GB, free: 1.906 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1157/0.6696, allocations: 71.64 MB / 0.6437 GB, free: 9.395 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02466/0.6943, allocations: 7.342 MB / 0.6509 GB, free: 1.797 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006799/0.7012, allocations: 3.349 MB / 0.6542 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03168/0.7329, allocations: 14.48 MB / 0.6683 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.938e-05/0.733, allocations: 79.09 kB / 0.6684 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=373): time 7.264e-06/0.733, allocations: 0 / 0.6684 GB, free: 15.49 MB / 0.5137 GB Notification: Performance of matching and sorting (n=420): time 0.08021/0.8132, allocations: 25.48 MB / 0.6933 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001164/0.8134, allocations: 196.1 kB / 0.6935 GB, free: 5.645 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.261/1.074, allocations: 6.577 MB / 0.6999 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008844/1.075, allocations: 87.7 kB / 0.7 GB, free: 183.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.004509/1.08, allocations: 4.78 MB / 0.7046 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002324/1.082, allocations: 1.539 MB / 0.7061 GB, free: 180.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005899/1.088, allocations: 2.139 MB / 0.7082 GB, free: 180.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.84e-05/1.088, allocations: 302.5 kB / 0.7085 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006731/1.095, allocations: 3.612 MB / 0.712 GB, free: 178.6 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01039/1.105, allocations: 9.623 MB / 0.7214 GB, free: 169.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01546/1.121, allocations: 14.45 MB / 0.7355 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001823/1.121, allocations: 57.31 kB / 0.7356 GB, free: 157.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1398) (initialization): time 0.02571/1.147, allocations: 13.38 MB / 0.7487 GB, free: 149.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.000129/1.147, allocations: 96 kB / 0.7488 GB, free: 149.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002815/1.147, allocations: 208 kB / 0.749 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/1.148, allocations: 0.6026 MB / 0.7495 GB, free: 148.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009149/1.157, allocations: 2.462 MB / 0.752 GB, free: 146.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006084/1.164, allocations: 5.098 MB / 0.7569 GB, free: 141.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009617/1.173, allocations: 494.8 kB / 0.7574 GB, free: 141.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002384/1.176, allocations: 0.6269 MB / 0.758 GB, free: 140.8 MB / 0.5294 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.009273/1.185, allocations: 3.523 MB / 0.7615 GB, free: 137.7 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001879/1.187, allocations: 0.5706 MB / 0.762 GB, free: 137.1 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01153/1.198, allocations: 5.225 MB / 0.7671 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.9e-05/1.199, allocations: 71.98 kB / 0.7672 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.12e-05/1.199, allocations: 8 kB / 0.7672 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-05/1.199, allocations: 17.95 kB / 0.7672 GB, free: 132.5 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03825/1.237, allocations: 19.99 MB / 0.7867 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/1.237, allocations: 23.98 kB / 0.7868 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002852/1.24, allocations: 0.6747 MB / 0.7874 GB, free: 111.6 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007821/1.241, allocations: 353.1 kB / 0.7878 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003722/1.241, allocations: 95.98 kB / 0.7878 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005019/1.246, allocations: 6.702 MB / 0.7944 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.374e-05/1.246, allocations: 35.81 kB / 0.7944 GB, free: 104 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01165/1.258, allocations: 9.753 MB / 0.8039 GB, free: 93.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003643/1.261, allocations: 1.129 MB / 0.805 GB, free: 92.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001808/1.263, allocations: 95.97 kB / 0.8051 GB, free: 92.51 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003761/1.267, allocations: 159 kB / 0.8053 GB, free: 92.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005978/1.268, allocations: 321.1 kB / 0.8056 GB, free: 92.04 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002502/1.268, allocations: 139.9 kB / 0.8057 GB, free: 91.91 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008148/1.276, allocations: 4.354 MB / 0.81 GB, free: 87.56 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.2e-07/1.276, allocations: 0 / 0.81 GB, free: 87.56 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01212/1.288, allocations: 1.629 MB / 0.8116 GB, free: 85.94 MB / 0.5294 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.001636/1.29, allocations: 272.3 kB / 0.8118 GB, free: 85.67 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01625/1.306, allocations: 8.778 MB / 0.8204 GB, free: 76.92 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-05/1.306, allocations: 0 / 0.8204 GB, free: 76.92 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005102/1.311, allocations: 3.021 MB / 0.8234 GB, free: 73.86 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009801/1.321, allocations: 0.8642 MB / 0.8242 GB, free: 73.04 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03566/1.357, allocations: 16.6 MB / 0.8404 GB, free: 56.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007957/1.365, allocations: 4.923 MB / 0.8452 GB, free: 51.13 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002294/1.367, allocations: 0.5344 MB / 0.8457 GB, free: 50.6 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/1.367, allocations: 0 / 0.8457 GB, free: 50.6 MB / 0.5294 GB Notification: Performance of Templates: time 0.4458/1.813, allocations: 172 MB / 1.014 GB, free: 61.41 MB / 0.5294 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)