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.000914/0.0009142, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005412/0.005412, allocations: 169.4 kB / 16.26 MB, free: 6.332 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.244/1.244, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1493/0.1493, allocations: 9.096 MB / 300.5 MB, free: 2.672 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002747/0.0002748, allocations: 8 kB / 363.8 MB, free: 12.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07834/0.07863, allocations: 52.43 MB / 416.2 MB, free: 8.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.PlanetaryGear): time 0.1911/0.2698, allocations: 64.52 MB / 480.7 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02556/0.2954, allocations: 14.61 MB / 495.4 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009525/0.305, allocations: 262.7 kB / 495.6 MB, free: 6.895 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001869/0.3069, allocations: 0.6822 MB / 496.3 MB, free: 6.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006109/0.313, allocations: 2.818 MB / 499.1 MB, free: 5.312 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001384/0.3144, allocations: 0.6611 MB / 499.8 MB, free: 4.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009586/0.324, allocations: 8.757 MB / 0.4966 GB, free: 2.121 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005429/0.3295, allocations: 4.062 MB / 0.5006 GB, free: 372 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002564/0.332, allocations: 1.748 MB / 0.5023 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003813/0.3359, allocations: 2.857 MB / 0.5051 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007996/0.3367, allocations: 268 kB / 0.5053 GB, free: 13.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.3391, allocations: 1.136 MB / 0.5064 GB, free: 13.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002139/0.3412, allocations: 2.469 MB / 0.5088 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00282/0.3441, allocations: 3.305 MB / 0.5121 GB, free: 7.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009018/0.3531, allocations: 10.4 MB / 0.5222 GB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3531, allocations: 0 / 0.5222 GB, free: 12.79 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3531, allocations: 4 kB / 0.5222 GB, free: 12.79 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002012/0.3534, allocations: 0 / 0.5222 GB, free: 12.79 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.02645/0.3798, allocations: 9.381 MB / 0.5314 GB, free: 3.32 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3799, allocations: 12.59 kB / 0.5314 GB, free: 3.309 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001984/0.3819, allocations: 1.118 MB / 0.5325 GB, free: 2.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/0.3942, allocations: 3.646 MB / 0.5361 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006157/0.4004, allocations: 3.687 MB / 0.5397 GB, free: 10.77 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002225/0.4006, allocations: 344.4 kB / 0.54 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009172/0.4015, allocations: 447.5 kB / 0.5404 GB, free: 9.992 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02625/0.4278, allocations: 17.61 MB / 0.5576 GB, free: 7.188 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001702/0.428, allocations: 79.25 kB / 0.5577 GB, free: 7.109 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006542/0.4287, allocations: 223.7 kB / 0.5579 GB, free: 6.891 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005232/0.4339, allocations: 3.707 MB / 0.5615 GB, free: 3.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02813/0.4621, allocations: 15.41 MB / 0.5766 GB, free: 3.75 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2711/0.7332, allocations: 72 MB / 0.6469 GB, free: 16.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02028/0.7535, allocations: 7.311 MB / 0.654 GB, free: 13.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004331/0.7578, allocations: 3.324 MB / 0.6573 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01861/0.7765, allocations: 14.49 MB / 0.6714 GB, free: 2.84 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.7765, allocations: 70.44 kB / 0.6715 GB, free: 2.777 MB / 446.1 MB Notification: Performance of pre-optimization done (n=373): time 5.039e-06/0.7765, allocations: 0 / 0.6715 GB, free: 2.777 MB / 446.1 MB Notification: Performance of matching and sorting (n=420): time 0.06593/0.8425, allocations: 25.44 MB / 0.6963 GB, free: 11.91 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.37e-05/0.8426, allocations: 202.5 kB / 0.6965 GB, free: 11.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008561/0.8512, allocations: 6.577 MB / 0.703 GB, free: 5.094 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000602/0.8518, allocations: 94.95 kB / 0.703 GB, free: 5 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00306/0.8549, allocations: 4.771 MB / 0.7077 GB, free: 256 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001551/0.8564, allocations: 1.553 MB / 0.7092 GB, free: 14.71 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001046/0.8575, allocations: 0.8657 MB / 0.7101 GB, free: 13.84 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.074e-05/0.8576, allocations: 305.1 kB / 0.7104 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005499/0.8631, allocations: 3.604 MB / 0.7139 GB, free: 9.934 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008915/0.872, allocations: 9.603 MB / 0.7233 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01627/0.8883, allocations: 14.44 MB / 0.7374 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00016/0.8885, allocations: 60 kB / 0.7374 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1394) (initialization): time 0.02231/0.9109, allocations: 13.37 MB / 0.7505 GB, free: 0.7656 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001796/0.9111, allocations: 98.08 kB / 0.7506 GB, free: 0.6719 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002793/0.9114, allocations: 208.9 kB / 0.7508 GB, free: 480 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.9126, allocations: 0.6021 MB / 0.7513 GB, free: 15.86 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007675/0.9202, allocations: 2.45 MB / 0.7537 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006074/0.9263, allocations: 4.752 MB / 0.7584 GB, free: 8.836 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00664/0.933, allocations: 497.9 kB / 0.7589 GB, free: 8.352 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00134/0.9343, allocations: 0.6249 MB / 0.7595 GB, free: 7.727 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.00581/0.9402, allocations: 3.524 MB / 0.7629 GB, free: 4.402 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001195/0.9414, allocations: 0.5745 MB / 0.7635 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.185/1.126, allocations: 5.224 MB / 0.7686 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-05/1.126, allocations: 68.62 kB / 0.7686 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.126, allocations: 5.906 kB / 0.7686 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-05/1.127, allocations: 22.55 kB / 0.7687 GB, free: 197.2 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02443/1.151, allocations: 20.07 MB / 0.7883 GB, free: 191.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-05/1.151, allocations: 22.03 kB / 0.7883 GB, free: 191.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002508/1.154, allocations: 0.678 MB / 0.7889 GB, free: 191.7 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007248/1.154, allocations: 353 kB / 0.7893 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001936/1.154, allocations: 101.2 kB / 0.7894 GB, free: 191.6 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004565/1.159, allocations: 6.167 MB / 0.7954 GB, free: 186.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-05/1.159, allocations: 35.19 kB / 0.7954 GB, free: 186.6 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0105/1.17, allocations: 9.755 MB / 0.805 GB, free: 181.9 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002502/1.172, allocations: 1.146 MB / 0.8061 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000948/1.173, allocations: 103.7 kB / 0.8062 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002395/1.175, allocations: 165 kB / 0.8063 GB, free: 181.4 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005163/1.176, allocations: 313.8 kB / 0.8066 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002495/1.176, allocations: 148.2 kB / 0.8068 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006088/1.182, allocations: 4.359 MB / 0.811 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.21e-07/1.182, allocations: 0.9375 kB / 0.811 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00874/1.191, allocations: 1.62 MB / 0.8126 GB, free: 179.6 MB / 0.5294 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.01175/1.203, allocations: 10.5 MB / 0.8229 GB, free: 173.9 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01136/1.214, allocations: 8.688 MB / 0.8313 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.495e-05/1.214, allocations: 0 / 0.8313 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003652/1.218, allocations: 3.095 MB / 0.8344 GB, free: 169.4 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02267/1.241, allocations: 0.8359 MB / 0.8352 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1184/1.359, allocations: 102.5 MB / 0.9353 GB, free: 57.15 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005156/1.364, allocations: 4.938 MB / 0.9401 GB, free: 52.19 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007161/1.371, allocations: 3.226 MB / 0.9432 GB, free: 48.95 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003335/1.375, allocations: 3.182 MB / 0.9463 GB, free: 45.77 MB / 0.5294 GB Notification: Performance of SimCode: time 1.242e-06/1.375, allocations: 0 / 0.9463 GB, free: 45.77 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5436/1.918, allocations: 121.9 MB / 1.065 GB, free: 152.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/1.919, allocations: 221.3 kB / 1.066 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.503/6.421, allocations: 3.938 kB / 1.066 GB, free: 152.3 MB / 0.5294 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)