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-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 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.001424/0.001424, allocations: 180 kB / 15.45 MB, free: 0.6523 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.34/1.34, allocations: 223.3 MB / 239.5 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007595/0.0007594, allocations: 87.52 kB / 290.6 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.03817/0.03817, allocations: 9.131 MB / 350.9 MB, free: 4.293 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 10 kB / 414.1 MB, free: 42.31 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.09432, allocations: 52.44 MB / 466.6 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.05953/0.1539, allocations: 64.53 MB / 0.5187 GB, free: 12.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.257/0.4109, allocations: 14.61 MB / 0.5329 GB, free: 2.059 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01767/0.4287, allocations: 261.6 kB / 0.5332 GB, free: 2.059 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.4313, allocations: 0.6805 MB / 0.5338 GB, free: 2.059 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00849/0.4398, allocations: 2.815 MB / 0.5366 GB, free: 1.961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002126/0.4419, allocations: 0.6661 MB / 0.5372 GB, free: 1.938 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01311/0.4551, allocations: 8.753 MB / 0.5458 GB, free: 1.918 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008611/0.4637, allocations: 4.046 MB / 0.5497 GB, free: 17.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004856/0.4686, allocations: 1.75 MB / 0.5515 GB, free: 17.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005023/0.4737, allocations: 2.856 MB / 0.5542 GB, free: 16.39 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001324/0.475, allocations: 269.2 kB / 0.5545 GB, free: 16.39 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003281/0.4783, allocations: 1.124 MB / 0.5556 GB, free: 16.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002652/0.481, allocations: 2.486 MB / 0.558 GB, free: 15.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003971/0.485, allocations: 3.3 MB / 0.5612 GB, free: 13.85 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01139/0.4964, allocations: 10.4 MB / 0.5714 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.4964, allocations: 0 / 0.5714 GB, free: 8.059 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4964, allocations: 0 / 0.5714 GB, free: 8.059 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003862/0.4968, allocations: 0 / 0.5714 GB, free: 8.059 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.0306/0.5274, allocations: 9.389 MB / 0.5806 GB, free: 2.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.5275, allocations: 9.938 kB / 0.5806 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003513/0.531, allocations: 1.124 MB / 0.5817 GB, free: 2.402 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01482/0.5459, allocations: 3.642 MB / 0.5852 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008666/0.5546, allocations: 3.69 MB / 0.5888 GB, free: 12.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003757/0.555, allocations: 339.6 kB / 0.5892 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002218/0.5572, allocations: 448.4 kB / 0.5896 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03401/0.5912, allocations: 17.62 MB / 0.6068 GB, free: 9.918 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002265/0.5915, allocations: 88.39 kB / 0.6069 GB, free: 9.867 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009547/0.5925, allocations: 224.1 kB / 0.6071 GB, free: 9.719 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006153/0.5986, allocations: 3.704 MB / 0.6107 GB, free: 6.059 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03377/0.6324, allocations: 15.41 MB / 0.6258 GB, free: 6.945 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09335/0.7258, allocations: 72 MB / 0.6961 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.023/0.7488, allocations: 7.306 MB / 0.7032 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005905/0.7548, allocations: 3.323 MB / 0.7065 GB, free: 3.117 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2465/1.001, allocations: 14.49 MB / 0.7206 GB, free: 189.2 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.5e-05/1.001, allocations: 72.67 kB / 0.7207 GB, free: 189.1 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=373): time 8.336e-06/1.001, allocations: 1.375 kB / 0.7207 GB, free: 189.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=420): time 0.06823/1.07, allocations: 25.44 MB / 0.7455 GB, free: 180.2 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.927e-05/1.07, allocations: 199.5 kB / 0.7457 GB, free: 180 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007643/1.077, allocations: 6.578 MB / 0.7521 GB, free: 177.6 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0005205/1.078, allocations: 87.75 kB / 0.7522 GB, free: 177.5 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002505/1.08, allocations: 4.775 MB / 0.7569 GB, free: 173.8 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.001674/1.082, allocations: 1.544 MB / 0.7584 GB, free: 172.7 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001037/1.083, allocations: 0.8665 MB / 0.7592 GB, free: 172.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.627e-05/1.083, allocations: 312.9 kB / 0.7595 GB, free: 172 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005189/1.088, allocations: 3.6 MB / 0.7631 GB, free: 168.6 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007558/1.096, allocations: 9.612 MB / 0.7724 GB, free: 156.3 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01383/1.11, allocations: 14.43 MB / 0.7865 GB, free: 138.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001734/1.11, allocations: 60 kB / 0.7866 GB, free: 138.8 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.0242/1.134, allocations: 13.37 MB / 0.7996 GB, free: 125.4 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/1.135, allocations: 97.88 kB / 0.7997 GB, free: 125.3 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002356/1.135, allocations: 208 kB / 0.7999 GB, free: 125.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/1.136, allocations: 0.6075 MB / 0.8005 GB, free: 124.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008748/1.145, allocations: 2.456 MB / 0.8029 GB, free: 122 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00594/1.151, allocations: 4.743 MB / 0.8076 GB, free: 117.2 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008973/1.16, allocations: 497 kB / 0.808 GB, free: 116.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001941/1.162, allocations: 0.6305 MB / 0.8086 GB, free: 116 MB / 0.4981 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.007276/1.169, allocations: 3.513 MB / 0.8121 GB, free: 112.5 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001251/1.17, allocations: 0.5784 MB / 0.8126 GB, free: 111.9 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008106/1.178, allocations: 5.233 MB / 0.8178 GB, free: 106.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.892e-05/1.178, allocations: 73.19 kB / 0.8178 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.704e-05/1.178, allocations: 8.5 kB / 0.8178 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.11e-05/1.178, allocations: 19.92 kB / 0.8179 GB, free: 106.6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03084/1.209, allocations: 20.06 MB / 0.8374 GB, free: 86.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.342e-05/1.209, allocations: 24 kB / 0.8375 GB, free: 86.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002705/1.212, allocations: 0.6753 MB / 0.8381 GB, free: 85.45 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007945/1.213, allocations: 351.5 kB / 0.8385 GB, free: 85.1 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002831/1.213, allocations: 95.98 kB / 0.8386 GB, free: 85.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005019/1.218, allocations: 6.17 MB / 0.8446 GB, free: 78.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.899e-05/1.218, allocations: 43.75 kB / 0.8446 GB, free: 78.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0127/1.231, allocations: 9.76 MB / 0.8542 GB, free: 68.15 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003482/1.234, allocations: 1.149 MB / 0.8553 GB, free: 66.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/1.236, allocations: 103.9 kB / 0.8554 GB, free: 66.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003382/1.239, allocations: 159.8 kB / 0.8555 GB, free: 66.72 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005933/1.24, allocations: 313.1 kB / 0.8558 GB, free: 66.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002486/1.24, allocations: 143.6 kB / 0.856 GB, free: 66.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.007806/1.248, allocations: 4.358 MB / 0.8602 GB, free: 61.93 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.32e-07/1.248, allocations: 0 / 0.8602 GB, free: 61.93 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01084/1.259, allocations: 1.622 MB / 0.8618 GB, free: 60.31 MB / 0.4981 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.01318/1.272, allocations: 10.5 MB / 0.8721 GB, free: 49.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01362/1.286, allocations: 8.689 MB / 0.8805 GB, free: 40.64 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.397e-05/1.286, allocations: 1.938 kB / 0.8805 GB, free: 40.64 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00468/1.291, allocations: 3.096 MB / 0.8836 GB, free: 37.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02677/1.317, allocations: 0.8246 MB / 0.8844 GB, free: 36.69 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3814/1.699, allocations: 102.5 MB / 0.9844 GB, free: 109.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005446/1.704, allocations: 4.919 MB / 0.9892 GB, free: 105.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00822/1.713, allocations: 3.229 MB / 0.9924 GB, free: 102.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005314/1.718, allocations: 3.186 MB / 0.9955 GB, free: 99.47 MB / 0.4981 GB Notification: Performance of SimCode: time 1.392e-06/1.718, allocations: 0 / 0.9955 GB, free: 99.47 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3652/2.083, allocations: 121.9 MB / 1.115 GB, free: 160.8 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002268/2.083, allocations: 226.4 kB / 1.115 GB, free: 160.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.498/7.581, allocations: 0 / 1.115 GB, free: 160.5 MB / 0.4981 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)