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.0009784/0.0009783, allocations: 99.55 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.001073/0.001073, 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.417/1.417, allocations: 223.2 MB / 239.9 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1899/0.1899, allocations: 9.112 MB / 300.1 MB, free: 2.723 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003547/0.0003547, allocations: 8 kB / 363.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1302, allocations: 52.43 MB / 415.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2731/0.4034, allocations: 56.43 MB / 471.9 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03202/0.4355, allocations: 14.64 MB / 486.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01506/0.4506, allocations: 261.8 kB / 486.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01213/0.4627, allocations: 2.795 MB / 489.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03531/0.4981, allocations: 8.455 MB / 498.1 MB, free: 8.559 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004607/0.5027, allocations: 0.5892 MB / 498.7 MB, free: 8.297 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01149/0.5142, allocations: 3.782 MB / 0.4907 GB, free: 6.586 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008763/0.5231, allocations: 3.725 MB / 0.4943 GB, free: 5.059 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004774/0.5279, allocations: 1.605 MB / 0.4959 GB, free: 4.488 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005223/0.5331, allocations: 2.117 MB / 0.498 GB, free: 3.746 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001804/0.535, allocations: 273 kB / 0.4982 GB, free: 3.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003783/0.5388, allocations: 0.9332 MB / 0.4991 GB, free: 3.566 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003685/0.5425, allocations: 2.24 MB / 0.5013 GB, free: 1.844 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002708/0.5452, allocations: 1.415 MB / 0.5027 GB, free: 428 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.5561, allocations: 8.674 MB / 0.5112 GB, free: 7.723 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.5562, allocations: 0 / 0.5112 GB, free: 7.723 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.5562, allocations: 0 / 0.5112 GB, free: 7.723 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004593/0.5567, allocations: 0 / 0.5112 GB, free: 7.723 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.03157/0.5882, allocations: 9.743 MB / 0.5207 GB, free: 13.89 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.5883, allocations: 8.031 kB / 0.5207 GB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003991/0.5923, allocations: 1.126 MB / 0.5218 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01587/0.6082, allocations: 4.314 MB / 0.526 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01003/0.6183, allocations: 3.4 MB / 0.5293 GB, free: 4.957 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004254/0.6187, allocations: 336.4 kB / 0.5297 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002536/0.6213, allocations: 457.9 kB / 0.5301 GB, free: 4.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03881/0.6601, allocations: 17.72 MB / 0.5474 GB, free: 1.273 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003826/0.6606, allocations: 83.23 kB / 0.5475 GB, free: 1.191 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/0.6624, allocations: 219.7 kB / 0.5477 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006908/0.6693, allocations: 3.711 MB / 0.5513 GB, free: 13.26 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03537/0.7048, allocations: 15.51 MB / 0.5665 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3519/1.057, allocations: 71.85 MB / 0.6366 GB, free: 64.8 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02376/1.081, allocations: 7.485 MB / 0.6439 GB, free: 61.62 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03929/1.12, allocations: 12.24 MB / 0.6559 GB, free: 56.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.741e-05/1.12, allocations: 68.95 kB / 0.6559 GB, free: 55.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=379): time 9.578e-06/1.12, allocations: 0.9062 kB / 0.6559 GB, free: 55.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=435): time 0.07672/1.197, allocations: 27.19 MB / 0.6825 GB, free: 44.02 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001046/1.197, allocations: 201 kB / 0.6827 GB, free: 43.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01002/1.207, allocations: 6.664 MB / 0.6892 GB, free: 37.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009609/1.208, allocations: 85.7 kB / 0.6893 GB, free: 37.89 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003609/1.212, allocations: 4.766 MB / 0.6939 GB, free: 33.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002126/1.214, allocations: 1.603 MB / 0.6955 GB, free: 31.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008438/1.215, allocations: 212 kB / 0.6957 GB, free: 31.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0006329/1.215, allocations: 0.7607 MB / 0.6964 GB, free: 30.57 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005515/1.221, allocations: 3.601 MB / 0.7 GB, free: 26.97 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009865/1.231, allocations: 9.565 MB / 0.7093 GB, free: 14.47 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009612/1.24, allocations: 5.915 MB / 0.7151 GB, free: 8.543 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001699/1.24, allocations: 60 kB / 0.7151 GB, free: 8.484 MB / 446.1 MB Notification: Performance of matching and sorting (n=1409) (initialization): time 0.03038/1.271, allocations: 13.38 MB / 0.7282 GB, free: 11.07 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007103/1.272, allocations: 96.19 kB / 0.7283 GB, free: 10.98 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009541/1.273, allocations: 208 kB / 0.7285 GB, free: 10.77 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001971/1.275, allocations: 0.6456 MB / 0.7291 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01119/1.286, allocations: 2.472 MB / 0.7315 GB, free: 7.648 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007317/1.293, allocations: 4.962 MB / 0.7364 GB, free: 2.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009112/1.302, allocations: 0.4949 MB / 0.7369 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002521/1.305, allocations: 0.6288 MB / 0.7375 GB, free: 1.43 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.009993/1.315, allocations: 3.531 MB / 0.7409 GB, free: 13.89 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00263/1.318, allocations: 0.5784 MB / 0.7415 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/1.33, allocations: 5.325 MB / 0.7467 GB, free: 7.934 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001077/1.33, allocations: 71.98 kB / 0.7468 GB, free: 7.863 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.689e-05/1.33, allocations: 8 kB / 0.7468 GB, free: 7.855 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.964e-05/1.33, allocations: 27.91 kB / 0.7468 GB, free: 7.828 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3233/1.653, allocations: 21.65 MB / 0.7679 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.07e-05/1.653, allocations: 27.42 kB / 0.768 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003078/1.656, allocations: 0.707 MB / 0.7687 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008148/1.657, allocations: 353.9 kB / 0.769 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004377/1.658, allocations: 108.9 kB / 0.7691 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005091/1.663, allocations: 6.281 MB / 0.7752 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.972e-05/1.663, allocations: 44.11 kB / 0.7753 GB, free: 123.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/1.679, allocations: 14.76 MB / 0.7897 GB, free: 112.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004687/1.683, allocations: 1.172 MB / 0.7908 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00205/1.686, allocations: 101.2 kB / 0.7909 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00373/1.689, allocations: 168.6 kB / 0.7911 GB, free: 112.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006567/1.69, allocations: 340.7 kB / 0.7914 GB, free: 112.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000338/1.69, allocations: 138 kB / 0.7915 GB, free: 112.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.01149/1.702, allocations: 4.423 MB / 0.7959 GB, free: 110.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.673e-06/1.702, allocations: 0 / 0.7959 GB, free: 110.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.01379/1.716, allocations: 1.663 MB / 0.7975 GB, free: 110.3 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.02093/1.737, allocations: 19.94 MB / 0.817 GB, free: 95.02 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01818/1.755, allocations: 8.751 MB / 0.8255 GB, free: 91.83 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.423e-05/1.755, allocations: 3.844 kB / 0.8255 GB, free: 91.83 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005771/1.761, allocations: 3.17 MB / 0.8286 GB, free: 90.44 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005849/1.767, allocations: 0.7746 MB / 0.8294 GB, free: 90.12 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3113/2.078, allocations: 181.8 MB / 1.007 GB, free: 66.21 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007029/2.085, allocations: 5.085 MB / 1.012 GB, free: 65.34 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008753/2.094, allocations: 3.248 MB / 1.015 GB, free: 65.21 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005369/2.099, allocations: 3.183 MB / 1.018 GB, free: 65.2 MB / 494.1 MB Notification: Performance of SimCode: time 1.012e-06/2.099, allocations: 2.75 kB / 1.018 GB, free: 65.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4423/2.542, allocations: 133.5 MB / 1.148 GB, free: 136.5 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001409/2.542, allocations: 204 kB / 1.149 GB, free: 136.2 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.117/8.659, allocations: 4 kB / 1.149 GB, free: 136.2 MB / 494.1 MB (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: