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.001611/0.001611, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.395/1.395, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1779/0.1779, allocations: 9.108 MB / 299.5 MB, free: 1.816 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.91 kB / 362 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1073, allocations: 51.44 MB / 413.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.221/0.3283, allocations: 18.52 MB / 432 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01036/0.3387, allocations: 5.641 MB / 437.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003403/0.3421, allocations: 90.88 kB / 437.7 MB, free: 31.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003507/0.3457, allocations: 1.752 MB / 439.5 MB, free: 30.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008974/0.3547, allocations: 3.005 MB / 442.5 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0022/0.3569, allocations: 0.7186 MB / 443.2 MB, free: 28.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.007974/0.3649, allocations: 6.692 MB / 449.9 MB, free: 25.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005049/0.37, allocations: 4.001 MB / 453.9 MB, free: 24.12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003421/0.3734, allocations: 2.183 MB / 456.1 MB, free: 23.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003894/0.3774, allocations: 2.921 MB / 459 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001498/0.3789, allocations: 0.545 MB / 459.6 MB, free: 21.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003376/0.3823, allocations: 1.335 MB / 460.9 MB, free: 21.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002869/0.3852, allocations: 2.714 MB / 463.6 MB, free: 20.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005939/0.3911, allocations: 3.573 MB / 467.2 MB, free: 17.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02403/0.4152, allocations: 10.93 MB / 478.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.281e-05/0.4152, allocations: 0 / 478.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.4153, allocations: 0 / 478.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0008182/0.4161, allocations: 4 kB / 478.1 MB, free: 13.67 MB / 350.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.04353/0.4596, allocations: 10.91 MB / 489 MB, free: 6.914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.996e-05/0.4597, allocations: 9.406 kB / 489 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003519/0.4632, allocations: 1.119 MB / 490.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01416/0.4774, allocations: 3.543 MB / 493.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008819/0.4863, allocations: 3.695 MB / 497.4 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000281/0.4866, allocations: 344.4 kB / 497.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002074/0.4887, allocations: 447.5 kB / 498.2 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03643/0.5251, allocations: 17.61 MB / 0.5037 GB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003098/0.5255, allocations: 75.33 kB / 0.5038 GB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001392/0.5269, allocations: 219.7 kB / 0.504 GB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006042/0.5329, allocations: 3.707 MB / 0.5076 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03758/0.5705, allocations: 15.41 MB / 0.5226 GB, free: 9.246 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.34/0.9106, allocations: 71.94 MB / 0.5929 GB, free: 76.79 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02164/0.9323, allocations: 7.328 MB / 0.6 GB, free: 75.49 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005272/0.9376, allocations: 3.333 MB / 0.6033 GB, free: 75.43 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02515/0.9628, allocations: 14.5 MB / 0.6175 GB, free: 69.04 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.819e-05/0.9628, allocations: 71.33 kB / 0.6175 GB, free: 68.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 6.271e-06/0.9629, allocations: 0 / 0.6175 GB, free: 68.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.07066/1.034, allocations: 25.49 MB / 0.6424 GB, free: 57.99 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.17e-05/1.034, allocations: 191.2 kB / 0.6426 GB, free: 57.8 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009313/1.043, allocations: 6.582 MB / 0.649 GB, free: 55.36 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007618/1.044, allocations: 92.33 kB / 0.6491 GB, free: 55.28 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003199/1.047, allocations: 4.771 MB / 0.6538 GB, free: 51.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002201/1.049, allocations: 1.545 MB / 0.6553 GB, free: 50.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003406/1.053, allocations: 2.137 MB / 0.6574 GB, free: 49.42 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.729e-05/1.053, allocations: 304.4 kB / 0.6577 GB, free: 49.12 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005668/1.058, allocations: 3.598 MB / 0.6612 GB, free: 47.85 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00942/1.068, allocations: 9.607 MB / 0.6706 GB, free: 36.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01487/1.083, allocations: 14.43 MB / 0.6846 GB, free: 19.95 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000253/1.083, allocations: 60 kB / 0.6847 GB, free: 19.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.03025/1.113, allocations: 13.36 MB / 0.6978 GB, free: 6.496 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002506/1.114, allocations: 97.88 kB / 0.6978 GB, free: 6.402 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003128/1.114, allocations: 211.9 kB / 0.698 GB, free: 6.195 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001319/1.115, allocations: 0.6065 MB / 0.6986 GB, free: 5.586 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00871/1.124, allocations: 2.461 MB / 0.701 GB, free: 3.121 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006782/1.131, allocations: 5.102 MB / 0.706 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009933/1.141, allocations: 498.6 kB / 0.7065 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002616/1.143, allocations: 0.6249 MB / 0.7071 GB, free: 12.78 MB / 462.1 MB 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.01061/1.154, allocations: 3.517 MB / 0.7105 GB, free: 9.258 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002657/1.157, allocations: 0.5784 MB / 0.7111 GB, free: 8.672 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01347/1.17, allocations: 5.233 MB / 0.7162 GB, free: 3.398 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001065/1.17, allocations: 71.58 kB / 0.7163 GB, free: 3.332 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.259e-05/1.17, allocations: 8 kB / 0.7163 GB, free: 3.324 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-05/1.171, allocations: 15.94 kB / 0.7163 GB, free: 3.309 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04038/1.211, allocations: 20.09 MB / 0.7359 GB, free: 14.87 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.767e-05/1.211, allocations: 27.88 kB / 0.736 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003477/1.214, allocations: 0.6757 MB / 0.7366 GB, free: 14.17 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009108/1.215, allocations: 360.2 kB / 0.737 GB, free: 13.81 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005719/1.216, allocations: 99.34 kB / 0.7371 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006585/1.223, allocations: 6.691 MB / 0.7436 GB, free: 6.609 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.301e-05/1.223, allocations: 35.86 kB / 0.7436 GB, free: 6.574 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01509/1.238, allocations: 9.757 MB / 0.7531 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00353/1.241, allocations: 1.122 MB / 0.7542 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001427/1.243, allocations: 103.9 kB / 0.7543 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003384/1.246, allocations: 161.8 kB / 0.7545 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006386/1.247, allocations: 325 kB / 0.7548 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002789/1.247, allocations: 140 kB / 0.7549 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.007854/1.255, allocations: 4.359 MB / 0.7592 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.5e-07/1.255, allocations: 0 / 0.7592 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01015/1.265, allocations: 1.623 MB / 0.7608 GB, free: 4.5 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.2536/1.519, allocations: 10.49 MB / 0.771 GB, free: 164.8 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.02229/1.541, allocations: 13.64 MB / 0.7843 GB, free: 162.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.429e-05/1.541, allocations: 3.531 kB / 0.7843 GB, free: 162.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.004125/1.545, allocations: 3.088 MB / 0.7874 GB, free: 161.1 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005679/1.551, allocations: 0.858 MB / 0.7882 GB, free: 160.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1303/1.681, allocations: 99.33 MB / 0.8852 GB, free: 71.79 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007086/1.688, allocations: 4.934 MB / 0.89 GB, free: 67.95 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008753/1.697, allocations: 3.223 MB / 0.8932 GB, free: 65.88 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004462/1.702, allocations: 3.186 MB / 0.8963 GB, free: 62.93 MB / 0.4981 GB Notification: Performance of SimCode: time 8.62e-07/1.702, allocations: 0 / 0.8963 GB, free: 62.93 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3999/2.102, allocations: 125.4 MB / 1.019 GB, free: 147.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/14.95, allocations: 14.34 kB / 1.019 GB, free: 147.4 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/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)