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.001336/0.001336, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00139/0.00139, allocations: 190.9 kB / 16.13 MB, free: 6.664 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.293/1.293, allocations: 222.9 MB / 239.8 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1373/0.1373, allocations: 9.1 MB / 299.1 MB, free: 1.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001173/0.001173, allocations: 63.89 kB / 361.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08867/0.08985, allocations: 51.44 MB / 412.8 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.2076/0.2975, allocations: 66.13 MB / 478.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03339/0.3309, allocations: 14.69 MB / 493.6 MB, free: 7.25 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01267/0.3436, allocations: 264.2 kB / 493.9 MB, free: 7.215 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004285/0.3479, allocations: 1.634 MB / 495.5 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007642/0.3556, allocations: 2.812 MB / 498.3 MB, free: 5.191 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002208/0.3578, allocations: 0.6557 MB / 499 MB, free: 4.863 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0118/0.3697, allocations: 8.759 MB / 0.4958 GB, free: 1.992 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006961/0.3767, allocations: 3.585 MB / 0.4993 GB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00434/0.381, allocations: 1.862 MB / 0.5011 GB, free: 15.81 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004957/0.386, allocations: 2.985 MB / 0.5041 GB, free: 13.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001188/0.3872, allocations: 328 kB / 0.5044 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002904/0.3901, allocations: 1.178 MB / 0.5055 GB, free: 11.89 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002479/0.3926, allocations: 2.524 MB / 0.508 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00358/0.3962, allocations: 3.374 MB / 0.5113 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01043/0.4067, allocations: 10.67 MB / 0.5217 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.4067, allocations: 0 / 0.5217 GB, free: 11.26 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4067, allocations: 4 kB / 0.5217 GB, free: 11.25 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003214/0.407, allocations: 0 / 0.5217 GB, free: 11.25 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.03195/0.439, allocations: 10.91 MB / 0.5324 GB, free: 260 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.4391, allocations: 8.594 kB / 0.5324 GB, free: 252 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001804/0.4409, allocations: 1.114 MB / 0.5335 GB, free: 15.12 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01249/0.4534, allocations: 3.548 MB / 0.5369 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00688/0.4603, allocations: 3.691 MB / 0.5405 GB, free: 7.805 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002528/0.4606, allocations: 336.4 kB / 0.5409 GB, free: 7.473 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001279/0.4619, allocations: 459.5 kB / 0.5413 GB, free: 7.023 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03041/0.4923, allocations: 17.61 MB / 0.5585 GB, free: 4.219 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002399/0.4926, allocations: 79.25 kB / 0.5586 GB, free: 4.141 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001397/0.494, allocations: 219.7 kB / 0.5588 GB, free: 3.926 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005604/0.4996, allocations: 3.707 MB / 0.5624 GB, free: 220 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03068/0.5303, allocations: 15.39 MB / 0.5774 GB, free: 0.8008 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2829/0.8132, allocations: 71.95 MB / 0.6477 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02157/0.8348, allocations: 7.339 MB / 0.6549 GB, free: 11.51 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004714/0.8396, allocations: 3.334 MB / 0.6581 GB, free: 10.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02285/0.8625, allocations: 14.48 MB / 0.6723 GB, free: 216 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.8625, allocations: 68.31 kB / 0.6723 GB, free: 148 kB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 6.372e-06/0.8626, allocations: 6.438 kB / 0.6723 GB, free: 144 kB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.07541/0.938, allocations: 25.48 MB / 0.6972 GB, free: 8.297 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.81e-05/0.9381, allocations: 199.3 kB / 0.6974 GB, free: 8.066 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01068/0.9488, allocations: 6.581 MB / 0.7038 GB, free: 1.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006495/0.9495, allocations: 88.2 kB / 0.7039 GB, free: 1.391 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00313/0.9526, allocations: 4.783 MB / 0.7086 GB, free: 12.63 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001784/0.9544, allocations: 1.544 MB / 0.7101 GB, free: 11.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002941/0.9574, allocations: 2.128 MB / 0.7122 GB, free: 8.961 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.015e-05/0.9575, allocations: 305.1 kB / 0.7125 GB, free: 8.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005684/0.9632, allocations: 3.597 MB / 0.716 GB, free: 5.059 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00945/0.9726, allocations: 9.611 MB / 0.7254 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01637/0.989, allocations: 14.43 MB / 0.7395 GB, free: 8.07 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002014/0.9893, allocations: 60 kB / 0.7395 GB, free: 8.012 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02613/1.015, allocations: 13.36 MB / 0.7526 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002856/1.016, allocations: 96 kB / 0.7526 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003565/1.016, allocations: 208 kB / 0.7528 GB, free: 11.59 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001383/1.017, allocations: 0.6066 MB / 0.7534 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008941/1.026, allocations: 2.454 MB / 0.7558 GB, free: 8.734 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007151/1.034, allocations: 4.748 MB / 0.7605 GB, free: 3.957 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007738/1.041, allocations: 491.5 kB / 0.7609 GB, free: 3.473 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001728/1.043, allocations: 0.6288 MB / 0.7616 GB, free: 2.844 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.006936/1.05, allocations: 3.532 MB / 0.765 GB, free: 15.53 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001905/1.052, allocations: 0.5762 MB / 0.7656 GB, free: 14.95 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01013/1.062, allocations: 5.226 MB / 0.7707 GB, free: 9.695 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.839e-05/1.062, allocations: 74.72 kB / 0.7707 GB, free: 9.625 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.479e-05/1.062, allocations: 8 kB / 0.7707 GB, free: 9.617 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.922e-05/1.062, allocations: 27.86 kB / 0.7708 GB, free: 9.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2067/1.269, allocations: 20.07 MB / 0.7904 GB, free: 211.1 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.315e-05/1.269, allocations: 19.78 kB / 0.7904 GB, free: 211.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002681/1.272, allocations: 0.679 MB / 0.7911 GB, free: 211.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007961/1.273, allocations: 350.1 kB / 0.7914 GB, free: 211 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002364/1.273, allocations: 100.7 kB / 0.7915 GB, free: 210.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004779/1.278, allocations: 6.158 MB / 0.7975 GB, free: 206 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.689e-05/1.278, allocations: 39 kB / 0.7975 GB, free: 206 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/1.288, allocations: 9.754 MB / 0.8071 GB, free: 201.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002098/1.29, allocations: 1.123 MB / 0.8082 GB, free: 200.9 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007137/1.291, allocations: 98.83 kB / 0.8083 GB, free: 200.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002304/1.293, allocations: 162.4 kB / 0.8084 GB, free: 200.8 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005102/1.294, allocations: 324.3 kB / 0.8087 GB, free: 200.8 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002306/1.294, allocations: 136.2 kB / 0.8088 GB, free: 200.7 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005941/1.3, allocations: 4.364 MB / 0.8131 GB, free: 199.2 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.61e-07/1.3, allocations: 1.969 kB / 0.8131 GB, free: 199.2 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00971/1.31, allocations: 1.623 MB / 0.8147 GB, free: 199 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.0144/1.324, allocations: 10.5 MB / 0.8249 GB, free: 193.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01323/1.338, allocations: 8.673 MB / 0.8334 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-05/1.338, allocations: 3.969 kB / 0.8334 GB, free: 190.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004304/1.342, allocations: 3.107 MB / 0.8365 GB, free: 189.1 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006753/1.349, allocations: 0.817 MB / 0.8373 GB, free: 188.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1466/1.495, allocations: 102.3 MB / 0.9372 GB, free: 83.47 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005501/1.501, allocations: 4.925 MB / 0.942 GB, free: 79.55 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007769/1.509, allocations: 3.23 MB / 0.9452 GB, free: 76.31 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004165/1.513, allocations: 3.19 MB / 0.9483 GB, free: 73.12 MB / 0.545 GB Notification: Performance of SimCode: time 8.42e-07/1.513, allocations: 2.078 kB / 0.9483 GB, free: 73.12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.355/1.868, allocations: 123 MB / 1.068 GB, free: 195.1 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/1.868, allocations: 231.6 kB / 1.069 GB, free: 194.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.59/6.458, allocations: 0 / 1.069 GB, free: 194.8 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)