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.004918/0.004924, allocations: 101.4 kB / 15.73 MB, free: 6.004 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.001313/0.001314, allocations: 193.6 kB / 16.67 MB, free: 5.922 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04794/0.04794, allocations: 9.116 MB / 299.7 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 59.91 kB / 414.2 MB, free: 21.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09097/0.09278, allocations: 51.45 MB / 465.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.02121/0.114, allocations: 18.5 MB / 484.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01219/0.1263, allocations: 5.656 MB / 489.8 MB, free: 9.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00288/0.1292, allocations: 91.81 kB / 489.8 MB, free: 9.785 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004171/0.1334, allocations: 1.762 MB / 491.6 MB, free: 8.016 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008869/0.1423, allocations: 3.003 MB / 494.6 MB, free: 5 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002452/0.1448, allocations: 0.7293 MB / 495.3 MB, free: 4.27 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01236/0.1572, allocations: 6.72 MB / 0.4903 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007855/0.1651, allocations: 3.988 MB / 0.4942 GB, free: 9.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004751/0.1699, allocations: 2.187 MB / 0.4963 GB, free: 7.285 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005102/0.175, allocations: 2.919 MB / 0.4992 GB, free: 4.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001954/0.177, allocations: 0.5391 MB / 0.4997 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00378/0.1808, allocations: 1.338 MB / 0.501 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2134/0.3942, allocations: 2.714 MB / 0.5037 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007861/0.4021, allocations: 3.575 MB / 0.5072 GB, free: 10.55 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01781/0.42, allocations: 11.44 MB / 0.5183 GB, free: 8.738 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.42, allocations: 0 / 0.5183 GB, free: 8.738 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.42, allocations: 3.062 kB / 0.5183 GB, free: 8.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004805/0.4205, allocations: 3.312 kB / 0.5183 GB, free: 8.738 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.04117/0.4617, allocations: 11.12 MB / 0.5292 GB, free: 5.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.4617, allocations: 9.094 kB / 0.5292 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003456/0.4652, allocations: 1.115 MB / 0.5303 GB, free: 4.855 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01285/0.4781, allocations: 3.592 MB / 0.5338 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007689/0.4858, allocations: 3.751 MB / 0.5375 GB, free: 0.707 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002479/0.4861, allocations: 339.5 kB / 0.5378 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001819/0.4879, allocations: 453.9 kB / 0.5382 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03254/0.5204, allocations: 17.61 MB / 0.5554 GB, free: 2.996 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000204/0.5207, allocations: 81.31 kB / 0.5555 GB, free: 2.953 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000851/0.5215, allocations: 221 kB / 0.5557 GB, free: 2.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006104/0.5276, allocations: 3.706 MB / 0.5593 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03638/0.564, allocations: 15.4 MB / 0.5743 GB, free: 60 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1155/0.6795, allocations: 71.76 MB / 0.6444 GB, free: 7.484 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02482/0.7044, allocations: 7.333 MB / 0.6516 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007049/0.7115, allocations: 3.349 MB / 0.6549 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03312/0.7446, allocations: 14.51 MB / 0.669 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.02e-05/0.7448, allocations: 71.78 kB / 0.6691 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=373): time 7.835e-06/0.7448, allocations: 4 kB / 0.6691 GB, free: 13.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=420): time 0.07956/0.8244, allocations: 25.92 MB / 0.6944 GB, free: 3.559 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001371/0.8245, allocations: 194.8 kB / 0.6946 GB, free: 3.332 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01194/0.8365, allocations: 6.595 MB / 0.701 GB, free: 12.73 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009752/0.8375, allocations: 83.97 kB / 0.7011 GB, free: 12.64 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.005189/0.8427, allocations: 4.982 MB / 0.706 GB, free: 7.691 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002366/0.8451, allocations: 1.616 MB / 0.7076 GB, free: 6.098 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004203/0.8493, allocations: 2.146 MB / 0.7097 GB, free: 3.945 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001346/0.8495, allocations: 301.1 kB / 0.71 GB, free: 3.648 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006724/0.8562, allocations: 3.601 MB / 0.7135 GB, free: 44 kB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2249/1.081, allocations: 9.611 MB / 0.7229 GB, free: 191.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0146/1.096, allocations: 14.43 MB / 0.7369 GB, free: 179.7 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002939/1.096, allocations: 62.69 kB / 0.737 GB, free: 179.7 MB / 0.545 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02535/1.121, allocations: 13.39 MB / 0.7501 GB, free: 174.7 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001282/1.122, allocations: 95.5 kB / 0.7502 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002154/1.122, allocations: 209.4 kB / 0.7504 GB, free: 174.7 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/1.123, allocations: 0.6079 MB / 0.751 GB, free: 174.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007526/1.13, allocations: 2.447 MB / 0.7534 GB, free: 172.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005188/1.136, allocations: 5.099 MB / 0.7583 GB, free: 168.1 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008211/1.144, allocations: 499 kB / 0.7588 GB, free: 167.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002021/1.146, allocations: 0.6275 MB / 0.7594 GB, free: 167.1 MB / 0.545 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.00848/1.154, allocations: 3.517 MB / 0.7629 GB, free: 164 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001568/1.156, allocations: 0.6043 MB / 0.7635 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009408/1.165, allocations: 5.226 MB / 0.7686 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.312e-05/1.165, allocations: 71.8 kB / 0.7686 GB, free: 159.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/1.165, allocations: 5.75 kB / 0.7686 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.049e-05/1.166, allocations: 22.75 kB / 0.7687 GB, free: 159.1 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02826/1.194, allocations: 20 MB / 0.7882 GB, free: 140.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.291e-05/1.194, allocations: 24.19 kB / 0.7882 GB, free: 140.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002748/1.197, allocations: 0.6786 MB / 0.7889 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008121/1.197, allocations: 353.5 kB / 0.7892 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003713/1.198, allocations: 97.31 kB / 0.7893 GB, free: 139.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004998/1.203, allocations: 6.712 MB / 0.7959 GB, free: 132.5 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.445e-05/1.203, allocations: 36.36 kB / 0.7959 GB, free: 132.4 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0113/1.214, allocations: 9.788 MB / 0.8055 GB, free: 122.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002764/1.217, allocations: 1.16 MB / 0.8066 GB, free: 121 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001339/1.218, allocations: 97.31 kB / 0.8067 GB, free: 120.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00322/1.222, allocations: 165.2 kB / 0.8068 GB, free: 120.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005763/1.222, allocations: 313.1 kB / 0.8071 GB, free: 120.4 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002447/1.222, allocations: 145.3 kB / 0.8073 GB, free: 120.3 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.007333/1.23, allocations: 4.358 MB / 0.8115 GB, free: 115.9 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.21e-07/1.23, allocations: 0 / 0.8115 GB, free: 115.9 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01011/1.24, allocations: 1.622 MB / 0.8131 GB, free: 114.3 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.01103/1.251, allocations: 10.53 MB / 0.8234 GB, free: 103.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01243/1.263, allocations: 8.77 MB / 0.832 GB, free: 94.53 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.878e-05/1.263, allocations: 4 kB / 0.832 GB, free: 94.53 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.003801/1.267, allocations: 3.093 MB / 0.835 GB, free: 91.39 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005428/1.273, allocations: 0.8729 MB / 0.8358 GB, free: 90.57 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3156/1.588, allocations: 80.72 MB / 0.9147 GB, free: 182.2 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007271/1.596, allocations: 4.92 MB / 0.9195 GB, free: 181.4 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.007391/1.603, allocations: 3.23 MB / 0.9226 GB, free: 181.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004971/1.608, allocations: 3.187 MB / 0.9257 GB, free: 181.2 MB / 0.545 GB Notification: Performance of SimCode: time 9.12e-07/1.608, allocations: 0 / 0.9257 GB, free: 181.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1647/1.773, allocations: 119 MB / 1.042 GB, free: 76.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.64/27.42, allocations: 0 / 1.042 GB, free: 76.66 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)