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/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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.001298/0.001298, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.4 MB / 234.6 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 89.09 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.05774/0.05774, allocations: 8.825 MB / 345.3 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.775e-05/3.787e-05, allocations: 11.98 kB / 405.7 MB, free: 61.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 52.39 MB / 458.1 MB, free: 8.938 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4308/0.5411, allocations: 109.4 MB / 0.5541 GB, free: 8.664 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/0.5414, allocations: 105.2 kB / 0.5542 GB, free: 8.609 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6636/1.205, allocations: 153.3 MB / 0.7039 GB, free: 100.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.155e-06/1.205, allocations: 0 / 0.7039 GB, free: 100.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004408/1.205, allocations: 117.6 kB / 0.704 GB, free: 100.8 MB / 458.7 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.04071/1.246, allocations: 7.464 MB / 0.7113 GB, free: 98.16 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.683e-05/1.246, allocations: 10.69 kB / 0.7113 GB, free: 98.16 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006928/1.253, allocations: 1.193 MB / 0.7125 GB, free: 98.07 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02818/1.281, allocations: 3.973 MB / 0.7164 GB, free: 97.6 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02492/1.306, allocations: 5.664 MB / 0.7219 GB, free: 95.19 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008675/1.307, allocations: 471.4 kB / 0.7224 GB, free: 95.02 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004799/1.312, allocations: 0.6223 MB / 0.723 GB, free: 94.85 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06009/1.372, allocations: 17.59 MB / 0.7401 GB, free: 77.98 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004052/1.373, allocations: 95.11 kB / 0.7402 GB, free: 77.89 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003826/1.377, allocations: 308.5 kB / 0.7405 GB, free: 77.64 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002963/1.38, allocations: 1.964 MB / 0.7425 GB, free: 75.68 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03239/1.412, allocations: 15.31 MB / 0.7574 GB, free: 60.35 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3958/1.808, allocations: 80.55 MB / 0.8361 GB, free: 40.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02574/1.834, allocations: 7.326 MB / 0.8432 GB, free: 38.92 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006679/1.84, allocations: 3.271 MB / 0.8464 GB, free: 38.86 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03232/1.873, allocations: 14.67 MB / 0.8607 GB, free: 35.47 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/1.873, allocations: 76.06 kB / 0.8608 GB, free: 35.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=373): time 5.961e-06/1.873, allocations: 0 / 0.8608 GB, free: 35.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=420): time 0.06537/1.938, allocations: 23.14 MB / 0.8834 GB, free: 30.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.253e-05/1.938, allocations: 192.5 kB / 0.8836 GB, free: 30.02 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009386/1.948, allocations: 5.799 MB / 0.8893 GB, free: 28.16 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008064/1.948, allocations: 86.83 kB / 0.8893 GB, free: 28.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003058/1.952, allocations: 4.809 MB / 0.894 GB, free: 24.37 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001808/1.953, allocations: 1.551 MB / 0.8956 GB, free: 23.23 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009369/1.954, allocations: 211.9 kB / 0.8958 GB, free: 23.06 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007218/1.955, allocations: 0.7476 MB / 0.8965 GB, free: 22.57 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00659/1.962, allocations: 3.456 MB / 0.8999 GB, free: 21.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009539/1.971, allocations: 9.426 MB / 0.9091 GB, free: 12.07 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009035/1.98, allocations: 5.84 MB / 0.9148 GB, free: 10.18 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002153/1.981, allocations: 61.75 kB / 0.9148 GB, free: 10.18 MB / 458.7 MB Notification: Performance of matching and sorting (n=1386) (initialization): time 0.02539/2.006, allocations: 13.05 MB / 0.9276 GB, free: 5.734 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002003/2.006, allocations: 94.31 kB / 0.9277 GB, free: 5.734 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004845/2.007, allocations: 210.7 kB / 0.9279 GB, free: 5.574 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/2.008, allocations: 0.6407 MB / 0.9285 GB, free: 4.988 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009644/2.018, allocations: 2.452 MB / 0.9309 GB, free: 2.867 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006116/2.024, allocations: 4.726 MB / 0.9355 GB, free: 14.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009671/2.034, allocations: 498.4 kB / 0.936 GB, free: 13.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00271/2.036, allocations: 0.622 MB / 0.9366 GB, free: 13.38 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1305): * Single equations (assignments): 1298 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,44.4%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004121/2.041, allocations: 0.8928 MB / 0.9375 GB, free: 12.49 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001704/2.042, allocations: 0.5784 MB / 0.938 GB, free: 11.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0107/2.053, allocations: 5.133 MB / 0.943 GB, free: 7.438 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001032/2.053, allocations: 75.34 kB / 0.9431 GB, free: 7.371 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.971e-05/2.053, allocations: 8 kB / 0.9431 GB, free: 7.363 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-05/2.053, allocations: 19.08 kB / 0.9431 GB, free: 7.363 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03986/2.093, allocations: 19.89 MB / 0.9626 GB, free: 6.57 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-05/2.093, allocations: 24 kB / 0.9626 GB, free: 6.547 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003759/2.097, allocations: 0.6765 MB / 0.9632 GB, free: 5.973 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009925/2.098, allocations: 351.5 kB / 0.9636 GB, free: 5.668 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006334/2.099, allocations: 103.4 kB / 0.9637 GB, free: 5.574 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006309/2.105, allocations: 6.173 MB / 0.9697 GB, free: 15.4 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.62e-05/2.105, allocations: 43.77 kB / 0.9697 GB, free: 15.36 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01692/2.122, allocations: 13.82 MB / 0.9832 GB, free: 1.086 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002625/2.125, allocations: 0.7189 MB / 0.984 GB, free: 384 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001131/2.126, allocations: 102.6 kB / 0.984 GB, free: 288 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003323/2.129, allocations: 164 kB / 0.9842 GB, free: 168 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008904/2.13, allocations: 331.6 kB / 0.9845 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009654/2.131, allocations: 194 kB / 0.9847 GB, free: 0 / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008272/2.139, allocations: 4.263 MB / 0.9889 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.21e-07/2.139, allocations: 4 kB / 0.9889 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01107/2.15, allocations: 1.644 MB / 0.9905 GB, free: 10.58 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 104 * Number of states: 6 (heatCapacitor.T,planetary.planetRing.frame_a.phi,planetary.bearing_Carrier.phi,planetary.bearing_Carrier.w,sunSpeed.phi,ringTorque.phi) * Number of discrete variables: 0 () * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,52.0%) 22,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01958/2.17, allocations: 18.58 MB / 1.009 GB, free: 7.934 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01647/2.186, allocations: 8.448 MB / 1.017 GB, free: 136 kB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.267e-05/2.187, allocations: 4 kB / 1.017 GB, free: 132 kB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.3337/2.52, allocations: 3.033 MB / 1.02 GB, free: 163.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005833/2.526, allocations: 0.7704 MB / 1.021 GB, free: 163.9 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04721/2.573, allocations: 15.54 MB / 1.036 GB, free: 160.7 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01026/2.584, allocations: 5.067 MB / 1.041 GB, free: 159.8 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.009879/2.594, allocations: 3.239 MB / 1.044 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006129/2.6, allocations: 3.177 MB / 1.047 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of SimCode: time 1.913e-06/2.6, allocations: 0 / 1.047 GB, free: 159.7 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1706/2.77, allocations: 134.2 MB / 1.178 GB, free: 63.31 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001389/2.771, allocations: 182.6 kB / 1.178 GB, free: 63.08 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.293/10.06, allocations: 0 / 1.178 GB, free: 63.08 MB / 0.5261 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)