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.001308/0.001308, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001451/0.001451, allocations: 190.8 kB / 16.25 MB, free: 6.621 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.313/1.313, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1835/0.1835, allocations: 9.102 MB / 299.2 MB, free: 1.824 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001321/0.001321, allocations: 67.89 kB / 361.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09149, allocations: 51.43 MB / 413 MB, free: 9.848 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2196/0.3111, allocations: 66.13 MB / 479.1 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03277/0.344, allocations: 14.58 MB / 493.7 MB, free: 7.242 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0139/0.3579, allocations: 263.5 kB / 493.9 MB, free: 7.207 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004826/0.3628, allocations: 1.611 MB / 495.5 MB, free: 6.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008179/0.371, allocations: 2.8 MB / 498.3 MB, free: 5.195 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002199/0.3732, allocations: 0.6755 MB / 499 MB, free: 4.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01037/0.3836, allocations: 6.749 MB / 0.4939 GB, free: 2.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007868/0.3915, allocations: 4.151 MB / 0.498 GB, free: 228 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005097/0.3967, allocations: 2.205 MB / 0.5001 GB, free: 15.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005618/0.4023, allocations: 3.217 MB / 0.5033 GB, free: 13.82 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002176/0.4045, allocations: 0.543 MB / 0.5038 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00435/0.4089, allocations: 1.353 MB / 0.5051 GB, free: 12.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004501/0.4134, allocations: 2.748 MB / 0.5078 GB, free: 9.641 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00676/0.4202, allocations: 3.608 MB / 0.5113 GB, free: 6.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01404/0.4343, allocations: 11 MB / 0.5221 GB, free: 10.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/0.4343, allocations: 4 kB / 0.5221 GB, free: 10.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4343, allocations: 0 / 0.5221 GB, free: 10.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003847/0.4347, allocations: 0 / 0.5221 GB, free: 10.97 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.03448/0.4692, allocations: 10.91 MB / 0.5327 GB, free: 15.97 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.4693, allocations: 12.03 kB / 0.5327 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002854/0.4722, allocations: 1.114 MB / 0.5338 GB, free: 14.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01336/0.4855, allocations: 3.548 MB / 0.5373 GB, free: 11.28 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007694/0.4933, allocations: 3.702 MB / 0.5409 GB, free: 7.512 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003204/0.4936, allocations: 336.4 kB / 0.5412 GB, free: 7.18 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001739/0.4954, allocations: 443.6 kB / 0.5416 GB, free: 6.746 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03269/0.5281, allocations: 17.61 MB / 0.5588 GB, free: 3.949 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002302/0.5284, allocations: 83.27 kB / 0.5589 GB, free: 3.867 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000989/0.5294, allocations: 219.7 kB / 0.5591 GB, free: 3.652 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005769/0.5351, allocations: 3.715 MB / 0.5628 GB, free: 15.93 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03197/0.5671, allocations: 15.39 MB / 0.5778 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3259/0.893, allocations: 71.95 MB / 0.648 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02241/0.9155, allocations: 7.341 MB / 0.6552 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005618/0.9212, allocations: 3.331 MB / 0.6585 GB, free: 10.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02863/0.9498, allocations: 14.5 MB / 0.6726 GB, free: 15.92 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.071e-05/0.95, allocations: 65.78 kB / 0.6727 GB, free: 15.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=373): time 7.294e-06/0.95, allocations: 5.172 kB / 0.6727 GB, free: 15.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=420): time 0.07909/1.029, allocations: 25.48 MB / 0.6976 GB, free: 8.082 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001129/1.029, allocations: 204 kB / 0.6978 GB, free: 7.848 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01222/1.041, allocations: 6.578 MB / 0.7042 GB, free: 1.266 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007719/1.042, allocations: 88 kB / 0.7043 GB, free: 1.176 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003794/1.046, allocations: 4.782 MB / 0.7089 GB, free: 12.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002006/1.048, allocations: 1.541 MB / 0.7104 GB, free: 10.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004169/1.052, allocations: 2.139 MB / 0.7125 GB, free: 8.738 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.603e-05/1.052, allocations: 301.1 kB / 0.7128 GB, free: 8.441 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006221/1.059, allocations: 3.601 MB / 0.7163 GB, free: 4.836 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01101/1.07, allocations: 9.603 MB / 0.7257 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01758/1.087, allocations: 14.44 MB / 0.7398 GB, free: 7.852 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001955/1.088, allocations: 60 kB / 0.7399 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02716/1.115, allocations: 13.35 MB / 0.7529 GB, free: 11.67 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003387/1.115, allocations: 98.66 kB / 0.753 GB, free: 11.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004359/1.116, allocations: 208.9 kB / 0.7532 GB, free: 11.37 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001477/1.117, allocations: 0.6079 MB / 0.7538 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0089/1.126, allocations: 2.451 MB / 0.7562 GB, free: 8.516 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007293/1.133, allocations: 5.114 MB / 0.7612 GB, free: 3.363 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007573/1.141, allocations: 498.5 kB / 0.7617 GB, free: 2.879 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001863/1.143, allocations: 0.6249 MB / 0.7623 GB, free: 2.254 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 (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.007247/1.15, allocations: 3.521 MB / 0.7657 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00163/1.152, allocations: 0.5784 MB / 0.7663 GB, free: 14.35 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/1.163, allocations: 5.226 MB / 0.7714 GB, free: 9.094 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.666e-05/1.163, allocations: 74.73 kB / 0.7715 GB, free: 9.023 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.591e-05/1.163, allocations: 4 kB / 0.7715 GB, free: 9.02 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.427e-05/1.163, allocations: 19.94 kB / 0.7715 GB, free: 9 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2153/1.378, allocations: 20.08 MB / 0.7911 GB, free: 211.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.555e-05/1.378, allocations: 23.97 kB / 0.7911 GB, free: 211.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002742/1.381, allocations: 0.6787 MB / 0.7918 GB, free: 211.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007957/1.382, allocations: 353.6 kB / 0.7921 GB, free: 211 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003371/1.382, allocations: 101.6 kB / 0.7922 GB, free: 210.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005141/1.387, allocations: 6.699 MB / 0.7987 GB, free: 205.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.842e-05/1.387, allocations: 34.78 kB / 0.7988 GB, free: 205.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01132/1.399, allocations: 9.761 MB / 0.8083 GB, free: 200.8 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/1.401, allocations: 1.123 MB / 0.8094 GB, free: 200.5 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.403, allocations: 94.05 kB / 0.8095 GB, free: 200.4 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002995/1.406, allocations: 160.5 kB / 0.8097 GB, free: 200.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005658/1.406, allocations: 324.8 kB / 0.81 GB, free: 200.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/1.407, allocations: 137.7 kB / 0.8101 GB, free: 200.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007666/1.414, allocations: 4.362 MB / 0.8144 GB, free: 198.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.022e-06/1.414, allocations: 3.812 kB / 0.8144 GB, free: 198.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01214/1.426, allocations: 1.63 MB / 0.8159 GB, free: 198.5 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.01592/1.442, allocations: 10.49 MB / 0.8262 GB, free: 193.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02579/1.468, allocations: 13.63 MB / 0.8395 GB, free: 189.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.419e-05/1.468, allocations: 3.688 kB / 0.8395 GB, free: 189.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004846/1.473, allocations: 3.1 MB / 0.8425 GB, free: 187.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008865/1.482, allocations: 0.8603 MB / 0.8434 GB, free: 186.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1681/1.65, allocations: 102.3 MB / 0.9433 GB, free: 77.85 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007938/1.658, allocations: 4.922 MB / 0.9481 GB, free: 73.63 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009125/1.667, allocations: 3.232 MB / 0.9513 GB, free: 70.39 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005257/1.673, allocations: 3.186 MB / 0.9544 GB, free: 67.21 MB / 0.545 GB Notification: Performance of SimCode: time 1.333e-06/1.673, allocations: 0 / 0.9544 GB, free: 67.21 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3524/2.025, allocations: 125.4 MB / 1.077 GB, free: 196.4 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001531/2.025, allocations: 231.9 kB / 1.077 GB, free: 196.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.218/7.243, allocations: 0 / 1.077 GB, free: 196.2 MB / 0.545 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)