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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-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: "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.PlanetaryGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007785/0.0007784, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008628/0.0008628, allocations: 168.7 kB / 15.95 MB, free: 204 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.309/1.309, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1845/0.1845, allocations: 9.111 MB / 300.2 MB, free: 2.797 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003299/0.0003303, allocations: 12 kB / 363.2 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0987/0.09905, allocations: 52.42 MB / 415.6 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2315/0.3306, allocations: 60 MB / 475.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02524/0.3559, allocations: 14.04 MB / 489.7 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01264/0.3685, allocations: 262.7 kB / 489.9 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00964/0.3782, allocations: 2.976 MB / 492.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02678/0.405, allocations: 10.01 MB / 0.4911 GB, free: 5.965 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003565/0.4086, allocations: 0.6034 MB / 0.4917 GB, free: 5.691 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.4205, allocations: 7.073 MB / 0.4986 GB, free: 2.797 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007633/0.4282, allocations: 3.739 MB / 0.5023 GB, free: 436 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005284/0.4335, allocations: 1.882 MB / 0.5041 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004984/0.4385, allocations: 2.818 MB / 0.5069 GB, free: 12.35 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00148/0.44, allocations: 272 kB / 0.5071 GB, free: 12.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003144/0.4432, allocations: 0.9479 MB / 0.5081 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003192/0.4464, allocations: 2.403 MB / 0.5104 GB, free: 8.727 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002405/0.4488, allocations: 1.412 MB / 0.5118 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009553/0.4584, allocations: 8.674 MB / 0.5203 GB, free: 14.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4584, allocations: 8 kB / 0.5203 GB, free: 14.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.606e-06/0.4584, allocations: 3.984 kB / 0.5203 GB, free: 14.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000378/0.4588, allocations: 0 / 0.5203 GB, free: 14.6 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.02772/0.4866, allocations: 9.455 MB / 0.5295 GB, free: 5.059 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4866, allocations: 12.03 kB / 0.5295 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003323/0.49, allocations: 1.118 MB / 0.5306 GB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01239/0.5024, allocations: 3.645 MB / 0.5342 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00791/0.5103, allocations: 3.624 MB / 0.5377 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003367/0.5107, allocations: 340.4 kB / 0.538 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001654/0.5123, allocations: 457.8 kB / 0.5385 GB, free: 11.79 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0345/0.5468, allocations: 17.58 MB / 0.5556 GB, free: 9.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003626/0.5473, allocations: 79.3 kB / 0.5557 GB, free: 8.949 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001811/0.5491, allocations: 219.7 kB / 0.5559 GB, free: 8.734 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005771/0.5549, allocations: 3.711 MB / 0.5595 GB, free: 5.02 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03203/0.5869, allocations: 15.34 MB / 0.5745 GB, free: 5.656 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3051/0.8921, allocations: 71.96 MB / 0.6448 GB, free: 21.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01948/0.9116, allocations: 7.289 MB / 0.6519 GB, free: 20.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004834/0.9165, allocations: 3.323 MB / 0.6552 GB, free: 20.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02741/0.9439, allocations: 14.49 MB / 0.6693 GB, free: 15.28 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.264e-05/0.944, allocations: 68.41 kB / 0.6694 GB, free: 15.24 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 9.127e-06/0.944, allocations: 0 / 0.6694 GB, free: 15.24 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.0668/1.011, allocations: 25.4 MB / 0.6942 GB, free: 11.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/1.011, allocations: 196.2 kB / 0.6944 GB, free: 11.18 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009913/1.021, allocations: 6.55 MB / 0.7008 GB, free: 4.621 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000708/1.022, allocations: 87.45 kB / 0.7008 GB, free: 4.531 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003959/1.026, allocations: 4.773 MB / 0.7055 GB, free: 15.78 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001883/1.028, allocations: 1.546 MB / 0.707 GB, free: 14.24 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005813/1.028, allocations: 211.5 kB / 0.7072 GB, free: 14.04 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0005863/1.029, allocations: 0.7527 MB / 0.7079 GB, free: 13.28 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006031/1.035, allocations: 3.568 MB / 0.7114 GB, free: 9.711 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009858/1.045, allocations: 9.561 MB / 0.7208 GB, free: 13.32 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00985/1.055, allocations: 5.872 MB / 0.7265 GB, free: 7.629 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000198/1.055, allocations: 60 kB / 0.7266 GB, free: 7.57 MB / 494.1 MB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02472/1.08, allocations: 13.28 MB / 0.7395 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002478/1.08, allocations: 96 kB / 0.7396 GB, free: 11.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003812/1.08, allocations: 208.8 kB / 0.7398 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00126/1.081, allocations: 0.6378 MB / 0.7404 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008101/1.09, allocations: 2.452 MB / 0.7428 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00638/1.096, allocations: 4.745 MB / 0.7475 GB, free: 3.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007769/1.104, allocations: 493.6 kB / 0.7479 GB, free: 3.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002751/1.107, allocations: 0.6288 MB / 0.7486 GB, free: 2.461 MB / 0.4981 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 (1303): * Single equations (assignments): 1294 * 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%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009021/1.116, allocations: 3.518 MB / 0.752 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/1.117, allocations: 0.5823 MB / 0.7526 GB, free: 14.56 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01048/1.128, allocations: 5.208 MB / 0.7576 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001045/1.128, allocations: 79.77 kB / 0.7577 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.376e-05/1.128, allocations: 10.44 kB / 0.7577 GB, free: 9.242 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.244e-05/1.128, allocations: 19.92 kB / 0.7577 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2441/1.372, allocations: 20.03 MB / 0.7773 GB, free: 177.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.8e-05/1.372, allocations: 22.69 kB / 0.7773 GB, free: 177.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002593/1.375, allocations: 0.6773 MB / 0.778 GB, free: 177.7 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007463/1.376, allocations: 351.1 kB / 0.7783 GB, free: 177.7 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002269/1.376, allocations: 96.19 kB / 0.7784 GB, free: 177.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004688/1.38, allocations: 6.163 MB / 0.7844 GB, free: 173.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.771e-05/1.381, allocations: 43.86 kB / 0.7845 GB, free: 173.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01087/1.391, allocations: 9.704 MB / 0.794 GB, free: 168.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002205/1.394, allocations: 1.147 MB / 0.7951 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007516/1.394, allocations: 97.95 kB / 0.7952 GB, free: 167.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00218/1.397, allocations: 165.4 kB / 0.7953 GB, free: 167.8 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004281/1.397, allocations: 315 kB / 0.7956 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002212/1.397, allocations: 139.6 kB / 0.7958 GB, free: 167.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.006086/1.403, allocations: 4.319 MB / 0.8 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.232e-06/1.403, allocations: 0 / 0.8 GB, free: 166.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.008693/1.412, allocations: 1.625 MB / 0.8016 GB, free: 166 MB / 0.5137 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 (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.01427/1.426, allocations: 10.47 MB / 0.8118 GB, free: 160.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.01629/1.443, allocations: 8.629 MB / 0.8202 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.732e-05/1.443, allocations: 3.938 kB / 0.8202 GB, free: 157.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005723/1.449, allocations: 3.082 MB / 0.8232 GB, free: 156 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006629/1.455, allocations: 0.8357 MB / 0.824 GB, free: 155.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1203/1.575, allocations: 63.48 MB / 0.886 GB, free: 95.64 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006239/1.582, allocations: 4.933 MB / 0.8909 GB, free: 91.8 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00849/1.59, allocations: 3.233 MB / 0.894 GB, free: 89.35 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004697/1.595, allocations: 3.178 MB / 0.8971 GB, free: 86.17 MB / 0.5137 GB Notification: Performance of SimCode: time 6.71e-07/1.595, allocations: 4 kB / 0.8971 GB, free: 86.17 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3517/1.947, allocations: 133.6 MB / 1.028 GB, free: 153.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001724/1.947, allocations: 209.6 kB / 1.028 GB, free: 153.3 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.21/7.157, allocations: 0 / 1.028 GB, free: 153.3 MB / 0.5137 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_PlanetaryGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.PlanetaryGear.pipe 2>&1) Environment - environmentSimulation: