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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.004949/0.004949, allocations: 170.3 kB / 15.11 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.242/1.242, allocations: 223.2 MB / 239 MB, free: 1.812 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009197/0.0009195, allocations: 104.7 kB / 290.2 MB, free: 13.96 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04029/0.04029, allocations: 8.938 MB / 350.2 MB, free: 2.105 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002772, allocations: 7.781 kB / 413.2 MB, free: 88.52 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06816/0.06846, allocations: 52.39 MB / 465.6 MB, free: 41.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2598/0.3283, allocations: 109.4 MB / 0.5615 GB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002417/0.3286, allocations: 101.2 kB / 0.5616 GB, free: 15.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5393/0.8679, allocations: 153.2 MB / 0.7112 GB, free: 74.46 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.8679, allocations: 0 / 0.7112 GB, free: 74.46 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004042/0.8684, allocations: 118.8 kB / 0.7114 GB, free: 74.46 MB / 458.7 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.03967/0.908, allocations: 7.765 MB / 0.7189 GB, free: 71.89 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.9081, allocations: 10.44 kB / 0.719 GB, free: 71.89 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004896/0.913, allocations: 1.197 MB / 0.7201 GB, free: 71.8 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01801/0.931, allocations: 3.967 MB / 0.724 GB, free: 71.35 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01653/0.9476, allocations: 5.696 MB / 0.7296 GB, free: 70.64 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006687/0.9483, allocations: 475.5 kB / 0.73 GB, free: 70.62 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004056/0.9524, allocations: 0.617 MB / 0.7306 GB, free: 70.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03667/0.9891, allocations: 17.71 MB / 0.7479 GB, free: 66.57 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005207/0.9897, allocations: 92.22 kB / 0.748 GB, free: 66.56 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002782/0.9925, allocations: 308.4 kB / 0.7483 GB, free: 66.56 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002842/0.9953, allocations: 1.972 MB / 0.7502 GB, free: 66.54 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02921/1.025, allocations: 15.54 MB / 0.7654 GB, free: 66.2 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08563/1.11, allocations: 80.55 MB / 0.8441 GB, free: 20.14 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02142/1.132, allocations: 7.405 MB / 0.8513 GB, free: 13.69 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0261/1.158, allocations: 14.69 MB / 0.8656 GB, free: 1.152 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.738e-05/1.158, allocations: 80.8 kB / 0.8657 GB, free: 1.062 MB / 474.7 MB Notification: Performance of pre-optimization done (n=379): time 8.876e-06/1.158, allocations: 0 / 0.8657 GB, free: 1.062 MB / 474.7 MB Notification: Performance of matching and sorting (n=435): time 0.2851/1.443, allocations: 28.15 MB / 0.8932 GB, free: 80.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.054e-05/1.443, allocations: 197.4 kB / 0.8934 GB, free: 80.71 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00841/1.452, allocations: 5.855 MB / 0.8991 GB, free: 80.22 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006289/1.452, allocations: 91.42 kB / 0.8992 GB, free: 80.19 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002687/1.455, allocations: 4.808 MB / 0.9039 GB, free: 77.93 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002431/1.457, allocations: 1.594 MB / 0.9054 GB, free: 77 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005969/1.458, allocations: 211.2 kB / 0.9056 GB, free: 77 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006712/1.459, allocations: 0.7584 MB / 0.9064 GB, free: 76.67 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005055/1.464, allocations: 3.574 MB / 0.9099 GB, free: 76.65 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007024/1.471, allocations: 9.558 MB / 0.9192 GB, free: 69.01 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007861/1.479, allocations: 5.894 MB / 0.925 GB, free: 68.95 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/1.479, allocations: 60.16 kB / 0.925 GB, free: 68.95 MB / 474.7 MB Notification: Performance of matching and sorting (n=1401) (initialization): time 0.02394/1.503, allocations: 13.33 MB / 0.938 GB, free: 66.7 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002728/1.503, allocations: 93.31 kB / 0.9381 GB, free: 66.7 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003454/1.503, allocations: 209.7 kB / 0.9383 GB, free: 66.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001487/1.505, allocations: 0.6432 MB / 0.939 GB, free: 66.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008429/1.513, allocations: 2.476 MB / 0.9414 GB, free: 66.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005542/1.519, allocations: 4.967 MB / 0.9462 GB, free: 63.34 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008071/1.527, allocations: 0.4918 MB / 0.9467 GB, free: 63.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001717/1.529, allocations: 0.6225 MB / 0.9473 GB, free: 63.07 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 (1318): * Single equations (assignments): 1311 * 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: 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.007575/1.536, allocations: 3.529 MB / 0.9508 GB, free: 61.29 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001703/1.538, allocations: 0.5857 MB / 0.9513 GB, free: 60.96 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01015/1.548, allocations: 5.312 MB / 0.9565 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.366e-05/1.548, allocations: 75.34 kB / 0.9566 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.067e-05/1.548, allocations: 7.312 kB / 0.9566 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.447e-05/1.548, allocations: 19.73 kB / 0.9566 GB, free: 58.7 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03678/1.585, allocations: 21.66 MB / 0.9778 GB, free: 45.92 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.053e-05/1.585, allocations: 26.88 kB / 0.9778 GB, free: 45.89 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003038/1.588, allocations: 0.7002 MB / 0.9785 GB, free: 45.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008445/1.589, allocations: 363.2 kB / 0.9788 GB, free: 45 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005037/1.59, allocations: 103.6 kB / 0.9789 GB, free: 44.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004945/1.595, allocations: 6.277 MB / 0.9851 GB, free: 38.59 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.675e-05/1.595, allocations: 35.88 kB / 0.9851 GB, free: 38.55 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/1.609, allocations: 14.75 MB / 0.9995 GB, free: 23.39 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002237/1.611, allocations: 0.7286 MB / 1 GB, free: 22.68 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001689/1.613, allocations: 110.2 kB / 1 GB, free: 22.58 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003617/1.616, allocations: 166.1 kB / 1 GB, free: 22.45 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005677/1.617, allocations: 332.5 kB / 1.001 GB, free: 22.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000334/1.617, allocations: 150.5 kB / 1.001 GB, free: 22.08 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007924/1.625, allocations: 4.313 MB / 1.005 GB, free: 18.51 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.81e-07/1.625, allocations: 0 / 1.005 GB, free: 18.51 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009712/1.635, allocations: 1.66 MB / 1.007 GB, free: 16.86 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 115 * Number of states: 6 (heatCapacitor.T,planetary.planetRing.frame_a.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.01497/1.65, allocations: 19.94 MB / 1.026 GB, free: 12.93 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01415/1.664, allocations: 8.727 MB / 1.035 GB, free: 5.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.482e-05/1.664, allocations: 4.812 kB / 1.035 GB, free: 5.176 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004554/1.669, allocations: 3.166 MB / 1.038 GB, free: 2.309 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004508/1.673, allocations: 0.7827 MB / 1.039 GB, free: 1.652 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3594/2.033, allocations: 208.8 MB / 1.243 GB, free: 24 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006164/2.039, allocations: 5.081 MB / 1.248 GB, free: 23.11 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.008077/2.047, allocations: 3.251 MB / 1.251 GB, free: 22.88 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006527/2.054, allocations: 3.211 MB / 1.254 GB, free: 22.87 MB / 0.5886 GB Notification: Performance of SimCode: time 2.525e-06/2.054, allocations: 0 / 1.254 GB, free: 22.87 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4211/2.475, allocations: 134.6 MB / 1.385 GB, free: 188.7 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/2.475, allocations: 204.4 kB / 1.385 GB, free: 188.5 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.557/8.032, allocations: 3.969 kB / 1.386 GB, free: 188.5 MB / 0.5886 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)