Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.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: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 108 kB / 16.41 MB, free: 6.027 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.001112/0.001112, allocations: 186.2 kB / 17.34 MB, free: 5.633 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.263/1.263, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04334/0.04334, allocations: 9.118 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 63.91 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08719/0.08851, allocations: 51.43 MB / 466.8 MB, free: 1.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01304/0.1016, allocations: 12.93 MB / 479.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007546/0.1092, allocations: 3.567 MB / 483.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.1115, allocations: 55.94 kB / 483.3 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002493/0.114, allocations: 0.7574 MB / 484.1 MB, free: 292 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00579/0.1199, allocations: 2.027 MB / 486.1 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009848/0.1209, allocations: 151.8 kB / 486.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006134/0.127, allocations: 4.113 MB / 490.4 MB, free: 9.98 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00356/0.1306, allocations: 1.974 MB / 492.3 MB, free: 7.977 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002896/0.1336, allocations: 1.408 MB / 493.7 MB, free: 6.562 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003323/0.1369, allocations: 2.016 MB / 495.8 MB, free: 4.539 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001208/0.1381, allocations: 320 kB / 496.1 MB, free: 4.227 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002527/0.1407, allocations: 0.8894 MB / 497 MB, free: 3.336 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002467/0.1432, allocations: 1.897 MB / 498.9 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003979/0.1472, allocations: 2.457 MB / 0.4896 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009434/0.1566, allocations: 7.655 MB / 0.497 GB, free: 7.277 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.196e-06/0.1567, allocations: 0 / 0.497 GB, free: 7.277 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1567, allocations: 0 / 0.497 GB, free: 7.277 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002603/0.157, allocations: 0 / 0.497 GB, free: 7.277 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02474/0.1817, allocations: 7.051 MB / 0.5039 GB, free: 156 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.1818, allocations: 8.031 kB / 0.5039 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2346/0.4164, allocations: 3.254 MB / 0.5071 GB, free: 41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005096/0.4215, allocations: 2.075 MB / 0.5091 GB, free: 40.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002553/0.4218, allocations: 236.2 kB / 0.5094 GB, free: 40.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001423/0.4233, allocations: 306.2 kB / 0.5097 GB, free: 40.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02393/0.4472, allocations: 13.46 MB / 0.5228 GB, free: 33.52 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001211/0.4474, allocations: 51.22 kB / 0.5228 GB, free: 33.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007187/0.4481, allocations: 159 kB / 0.523 GB, free: 33.44 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004481/0.4526, allocations: 3.087 MB / 0.526 GB, free: 32.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02117/0.4738, allocations: 11.94 MB / 0.5377 GB, free: 20.23 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05758/0.5314, allocations: 47.79 MB / 0.5843 GB, free: 3.258 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01247/0.5439, allocations: 3.786 MB / 0.588 GB, free: 15.21 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002482/0.5465, allocations: 1.381 MB / 0.5894 GB, free: 13.82 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/0.56, allocations: 9.213 MB / 0.5984 GB, free: 3.859 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.748e-05/0.5601, allocations: 43.56 kB / 0.5984 GB, free: 3.809 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 5.42e-06/0.5601, allocations: 0 / 0.5984 GB, free: 3.809 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.01942/0.5795, allocations: 10.25 MB / 0.6084 GB, free: 9.422 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.695e-05/0.5796, allocations: 149.8 kB / 0.6086 GB, free: 9.242 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007053/0.5867, allocations: 5.142 MB / 0.6136 GB, free: 4.098 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003173/0.5871, allocations: 53.61 kB / 0.6137 GB, free: 4.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002673/0.5897, allocations: 3.928 MB / 0.6175 GB, free: 60 kB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009184/0.5907, allocations: 0.8335 MB / 0.6183 GB, free: 15.21 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002032/0.5927, allocations: 1.598 MB / 0.6199 GB, free: 13.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.775e-05/0.5928, allocations: 305.1 kB / 0.6202 GB, free: 13.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003421/0.5963, allocations: 2.248 MB / 0.6224 GB, free: 11.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006653/0.6029, allocations: 7.319 MB / 0.6295 GB, free: 1.195 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/0.6148, allocations: 10.39 MB / 0.6397 GB, free: 4.273 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001764/0.615, allocations: 52 kB / 0.6397 GB, free: 4.223 MB / 478.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01744/0.6324, allocations: 9.182 MB / 0.6487 GB, free: 11.04 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002265/0.6327, allocations: 84 kB / 0.6487 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003354/0.6331, allocations: 180 kB / 0.6489 GB, free: 10.78 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003099/0.6334, allocations: 236 kB / 0.6491 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006172/0.6396, allocations: 1.849 MB / 0.651 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003669/0.64, allocations: 354.6 kB / 0.6513 GB, free: 8.348 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005566/0.6455, allocations: 371.6 kB / 0.6516 GB, free: 7.984 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001395/0.647, allocations: 0.4999 MB / 0.6521 GB, free: 7.484 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (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],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005257/0.6522, allocations: 2.655 MB / 0.6547 GB, free: 4.816 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/0.6533, allocations: 418.5 kB / 0.6551 GB, free: 4.402 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004281/0.6576, allocations: 1.966 MB / 0.657 GB, free: 2.422 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000131/0.6578, allocations: 35.98 kB / 0.6571 GB, free: 2.387 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.856e-05/0.6578, allocations: 4.062 kB / 0.6571 GB, free: 2.383 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.266e-05/0.6578, allocations: 15.91 kB / 0.6571 GB, free: 2.367 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01574/0.6736, allocations: 7.759 MB / 0.6647 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.437e-05/0.6737, allocations: 12 kB / 0.6647 GB, free: 10.36 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001217/0.6749, allocations: 295.5 kB / 0.665 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001687/0.6751, allocations: 41.44 kB / 0.665 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.6752, allocations: 59.97 kB / 0.6651 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.6763, allocations: 1.39 MB / 0.6664 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.551e-05/0.6763, allocations: 23.88 kB / 0.6664 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005858/0.6822, allocations: 4.385 MB / 0.6707 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00171/0.6839, allocations: 0.6673 MB / 0.6714 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006563/0.6846, allocations: 47.92 kB / 0.6714 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/0.6861, allocations: 76.67 kB / 0.6715 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002539/0.6863, allocations: 152.2 kB / 0.6716 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001254/0.6864, allocations: 75.98 kB / 0.6717 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005393/0.6918, allocations: 3.211 MB / 0.6749 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.042e-06/0.6919, allocations: 0 / 0.6749 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.006308/0.6982, allocations: 1.103 MB / 0.6759 GB, free: 14.5 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.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 (163): * Single equations (assignments): 155 * Array equations: 7 * 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 {(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.0005026/0.6987, allocations: 193.3 kB / 0.6761 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008665/0.7074, allocations: 5.202 MB / 0.6812 GB, free: 9.145 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/0.7075, allocations: 4 kB / 0.6812 GB, free: 9.141 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001934/0.7094, allocations: 1.204 MB / 0.6824 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00442/0.7138, allocations: 0.5574 MB / 0.6829 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02039/0.7343, allocations: 11.01 MB / 0.6937 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004782/0.7391, allocations: 3.775 MB / 0.6973 GB, free: 8.355 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001231/0.7404, allocations: 383.3 kB / 0.6977 GB, free: 7.98 MB / 0.5294 GB Notification: Performance of SimCode: time 1.333e-06/0.7404, allocations: 4 kB / 0.6977 GB, free: 7.977 MB / 0.5294 GB Notification: Performance of Templates: time 0.3115/1.052, allocations: 81.41 MB / 0.7772 GB, free: 123.6 MB / 0.5294 GB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)