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: "" <> 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.005145/0.005145, allocations: 100.7 kB / 15.73 MB, free: 6.453 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.001229/0.001229, allocations: 184.8 kB / 16.67 MB, free: 6.367 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.355/1.355, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1813/0.1813, allocations: 9.102 MB / 299.6 MB, free: 1.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002025/0.002026, allocations: 64.12 kB / 414.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2608/0.2628, allocations: 51.44 MB / 465.6 MB, free: 17.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.01513/0.278, allocations: 18.52 MB / 484.1 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.2895, allocations: 5.644 MB / 489.7 MB, free: 136 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004759/0.2943, allocations: 94.41 kB / 489.8 MB, free: 120 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004638/0.299, allocations: 1.766 MB / 491.6 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008689/0.3077, allocations: 3 MB / 494.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002182/0.3099, allocations: 0.7277 MB / 495.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01056/0.3205, allocations: 6.722 MB / 0.4903 GB, free: 7.688 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006175/0.3267, allocations: 3.992 MB / 0.4942 GB, free: 3.629 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003886/0.3306, allocations: 2.191 MB / 0.4963 GB, free: 1.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004322/0.3349, allocations: 2.923 MB / 0.4992 GB, free: 14.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001595/0.3366, allocations: 0.5429 MB / 0.4997 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003502/0.3401, allocations: 1.342 MB / 0.501 GB, free: 12.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003242/0.3433, allocations: 2.715 MB / 0.5037 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00548/0.3488, allocations: 3.569 MB / 0.5072 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01351/0.3624, allocations: 11.4 MB / 0.5183 GB, free: 10.86 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3624, allocations: 0 / 0.5183 GB, free: 10.86 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3624, allocations: 4 kB / 0.5183 GB, free: 10.85 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003406/0.3628, allocations: 0 / 0.5183 GB, free: 10.85 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.03466/0.3974, allocations: 10.91 MB / 0.5289 GB, free: 15.85 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3975, allocations: 8.031 kB / 0.529 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002815/0.4003, allocations: 1.114 MB / 0.53 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01296/0.4133, allocations: 3.556 MB / 0.5335 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008762/0.4221, allocations: 3.734 MB / 0.5372 GB, free: 7.352 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000412/0.4226, allocations: 340.4 kB / 0.5375 GB, free: 7.016 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002088/0.4247, allocations: 451.5 kB / 0.5379 GB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03349/0.4582, allocations: 17.6 MB / 0.5551 GB, free: 3.781 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004392/0.4587, allocations: 71.25 kB / 0.5552 GB, free: 3.711 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002318/0.461, allocations: 223.7 kB / 0.5554 GB, free: 3.492 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00599/0.467, allocations: 3.711 MB / 0.559 GB, free: 15.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03161/0.4986, allocations: 15.4 MB / 0.574 GB, free: 368 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3092/0.8079, allocations: 71.66 MB / 0.644 GB, free: 55.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02178/0.8297, allocations: 7.33 MB / 0.6512 GB, free: 50.88 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004957/0.8347, allocations: 3.349 MB / 0.6545 GB, free: 49.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02474/0.8595, allocations: 14.49 MB / 0.6686 GB, free: 38.95 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.349e-05/0.8596, allocations: 67.62 kB / 0.6687 GB, free: 38.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=373): time 6.732e-06/0.8596, allocations: 0 / 0.6687 GB, free: 38.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=420): time 0.06688/0.9265, allocations: 25.48 MB / 0.6936 GB, free: 13.37 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/0.9266, allocations: 196.8 kB / 0.6937 GB, free: 13.14 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007789/0.9344, allocations: 6.585 MB / 0.7002 GB, free: 6.543 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005969/0.935, allocations: 81.7 kB / 0.7002 GB, free: 6.457 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002024/0.9371, allocations: 4.778 MB / 0.7049 GB, free: 1.641 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001104/0.9382, allocations: 1.546 MB / 0.7064 GB, free: 76 kB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002858/0.9411, allocations: 2.134 MB / 0.7085 GB, free: 13.93 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.9412, allocations: 305.1 kB / 0.7088 GB, free: 13.63 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005506/0.9467, allocations: 3.605 MB / 0.7123 GB, free: 10.02 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009546/0.9563, allocations: 9.602 MB / 0.7217 GB, free: 13.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01827/0.9746, allocations: 14.44 MB / 0.7358 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000183/0.9748, allocations: 60 kB / 0.7359 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02615/1.001, allocations: 13.36 MB / 0.7489 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002457/1.001, allocations: 96.19 kB / 0.749 GB, free: 14.53 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003445/1.002, allocations: 212 kB / 0.7492 GB, free: 14.32 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001301/1.003, allocations: 0.6025 MB / 0.7498 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008734/1.012, allocations: 2.452 MB / 0.7522 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007393/1.019, allocations: 5.12 MB / 0.7572 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008156/1.027, allocations: 491.5 kB / 0.7576 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002233/1.029, allocations: 0.6249 MB / 0.7583 GB, free: 4.883 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 (1303): * Single equations (assignments): 1294 * 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.00731/1.037, allocations: 3.516 MB / 0.7617 GB, free: 1.352 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00166/1.038, allocations: 0.5745 MB / 0.7623 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/1.049, allocations: 5.231 MB / 0.7674 GB, free: 11.49 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.495e-05/1.049, allocations: 64 kB / 0.7674 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/1.049, allocations: 8 kB / 0.7674 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.883e-05/1.049, allocations: 19.92 kB / 0.7674 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03854/1.088, allocations: 19.99 MB / 0.787 GB, free: 6.973 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-05/1.088, allocations: 24 kB / 0.787 GB, free: 6.949 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003237/1.091, allocations: 0.6755 MB / 0.7877 GB, free: 6.273 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009887/1.092, allocations: 358.7 kB / 0.788 GB, free: 5.914 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006311/1.093, allocations: 99.98 kB / 0.7881 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2341/1.327, allocations: 6.678 MB / 0.7946 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-05/1.327, allocations: 37.03 kB / 0.7946 GB, free: 181.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01411/1.341, allocations: 9.756 MB / 0.8042 GB, free: 177.9 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002402/1.344, allocations: 1.128 MB / 0.8053 GB, free: 177.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009048/1.345, allocations: 105.5 kB / 0.8054 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002474/1.347, allocations: 159.4 kB / 0.8055 GB, free: 177.5 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005399/1.348, allocations: 319.7 kB / 0.8058 GB, free: 177.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002472/1.348, allocations: 142.7 kB / 0.806 GB, free: 177.4 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00729/1.355, allocations: 4.354 MB / 0.8102 GB, free: 175.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.91e-07/1.355, allocations: 0 / 0.8102 GB, free: 175.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.008613/1.364, allocations: 1.625 MB / 0.8118 GB, free: 175.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.01284/1.377, allocations: 10.49 MB / 0.8221 GB, free: 170.2 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01131/1.388, allocations: 8.769 MB / 0.8306 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-05/1.388, allocations: 3.312 kB / 0.8306 GB, free: 167 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003701/1.392, allocations: 3.096 MB / 0.8336 GB, free: 165.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00513/1.397, allocations: 0.858 MB / 0.8345 GB, free: 165.3 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09345/1.49, allocations: 80.45 MB / 0.913 GB, free: 80.09 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006361/1.497, allocations: 4.925 MB / 0.9179 GB, free: 75.14 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00763/1.504, allocations: 3.226 MB / 0.921 GB, free: 71.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00494/1.509, allocations: 3.192 MB / 0.9241 GB, free: 68.71 MB / 0.545 GB Notification: Performance of SimCode: time 1.252e-06/1.509, allocations: 0 / 0.9241 GB, free: 68.71 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3802/1.89, allocations: 120.7 MB / 1.042 GB, free: 173.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 27.45/29.34, allocations: 7.984 kB / 1.042 GB, free: 173.6 MB / 0.5606 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/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)