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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.001293/0.001293, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001628/0.001628, allocations: 193 kB / 16.14 MB, free: 6.664 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.449/1.449, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1602/0.1602, allocations: 9.112 MB / 299.1 MB, free: 1.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.89 kB / 361.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1099, allocations: 51.43 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2116/0.3215, allocations: 31.56 MB / 444.3 MB, free: 25.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01782/0.3394, allocations: 7.069 MB / 451.3 MB, free: 21.37 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008858/0.3483, allocations: 123.2 kB / 451.5 MB, free: 21.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002675/0.3511, allocations: 0.6652 MB / 452.1 MB, free: 21.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006252/0.3574, allocations: 1.917 MB / 454 MB, free: 20.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009536/0.3584, allocations: 135.3 kB / 454.2 MB, free: 20.13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006768/0.3652, allocations: 5.687 MB / 459.9 MB, free: 18.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003266/0.3685, allocations: 1.809 MB / 461.7 MB, free: 17.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002787/0.3713, allocations: 1.204 MB / 462.9 MB, free: 17.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003319/0.3746, allocations: 2.096 MB / 465 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001141/0.3758, allocations: 193.9 kB / 465.1 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00236/0.3782, allocations: 0.8119 MB / 466 MB, free: 16.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002162/0.3804, allocations: 1.811 MB / 467.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003/0.3834, allocations: 2.362 MB / 470.1 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01084/0.3942, allocations: 7.078 MB / 477.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.3943, allocations: 0 / 477.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.3943, allocations: 0 / 477.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003867/0.3947, allocations: 1.156 kB / 477.2 MB, free: 11.19 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: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.03387/0.4286, allocations: 7.059 MB / 484.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.4287, allocations: 10.25 kB / 484.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01329/0.442, allocations: 3.252 MB / 487.5 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006005/0.448, allocations: 2.066 MB / 489.6 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003816/0.4484, allocations: 234.7 kB / 489.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00245/0.4509, allocations: 313.2 kB / 490.1 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03307/0.484, allocations: 13.45 MB / 0.4918 GB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003674/0.4844, allocations: 63.45 kB / 0.4918 GB, free: 9.141 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002976/0.4874, allocations: 155.8 kB / 0.492 GB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006487/0.494, allocations: 3.088 MB / 0.495 GB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03059/0.5246, allocations: 11.93 MB / 0.5067 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08112/0.6058, allocations: 47.96 MB / 0.5535 GB, free: 8.742 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01317/0.619, allocations: 3.775 MB / 0.5572 GB, free: 4.711 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002921/0.6219, allocations: 1.391 MB / 0.5585 GB, free: 3.309 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01756/0.6395, allocations: 9.206 MB / 0.5675 GB, free: 9.359 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.6396, allocations: 55.55 kB / 0.5676 GB, free: 9.293 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 6.592e-06/0.6396, allocations: 0 / 0.5676 GB, free: 9.293 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.2215/0.8612, allocations: 10.24 MB / 0.5776 GB, free: 127.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.2e-05/0.8613, allocations: 149.8 kB / 0.5777 GB, free: 127.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008952/0.8702, allocations: 5.143 MB / 0.5828 GB, free: 126.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003363/0.8706, allocations: 48.14 kB / 0.5828 GB, free: 126.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002041/0.8726, allocations: 3.938 MB / 0.5866 GB, free: 123.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008654/0.8735, allocations: 0.8314 MB / 0.5875 GB, free: 123.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002651/0.8762, allocations: 1.598 MB / 0.589 GB, free: 122.4 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.129e-05/0.8763, allocations: 305.1 kB / 0.5893 GB, free: 122.1 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003543/0.8798, allocations: 2.246 MB / 0.5915 GB, free: 121.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005988/0.8858, allocations: 7.321 MB / 0.5986 GB, free: 113.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01027/0.8961, allocations: 10.38 MB / 0.6088 GB, free: 104.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002291/0.8964, allocations: 51.09 kB / 0.6088 GB, free: 104.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01948/0.9159, allocations: 9.187 MB / 0.6178 GB, free: 101 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00019/0.9161, allocations: 84.12 kB / 0.6179 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003924/0.9165, allocations: 182.7 kB / 0.6181 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003406/0.9169, allocations: 237.6 kB / 0.6183 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007796/0.9247, allocations: 1.846 MB / 0.6201 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005337/0.9253, allocations: 356.1 kB / 0.6204 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008048/0.9333, allocations: 370.5 kB / 0.6208 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002095/0.9355, allocations: 0.4971 MB / 0.6213 GB, free: 100.5 MB / 446.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.007057/0.9426, allocations: 2.654 MB / 0.6239 GB, free: 99.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009887/0.9436, allocations: 423.7 kB / 0.6243 GB, free: 98.94 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/0.9475, allocations: 1.962 MB / 0.6262 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001196/0.9477, allocations: 34.27 kB / 0.6262 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.888e-05/0.9477, allocations: 7.781 kB / 0.6262 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.042e-05/0.9477, allocations: 7.359 kB / 0.6262 GB, free: 98.19 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/0.9629, allocations: 7.765 MB / 0.6338 GB, free: 95.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.369e-05/0.963, allocations: 16.38 kB / 0.6338 GB, free: 95.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.9642, allocations: 300.8 kB / 0.6341 GB, free: 95.05 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001541/0.9644, allocations: 45.31 kB / 0.6342 GB, free: 95.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001559/0.9645, allocations: 52.8 kB / 0.6342 GB, free: 95.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007943/0.9653, allocations: 1.292 MB / 0.6355 GB, free: 93.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/0.9654, allocations: 19.53 kB / 0.6355 GB, free: 93.71 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005513/0.9709, allocations: 4.391 MB / 0.6398 GB, free: 91.08 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002258/0.9732, allocations: 0.668 MB / 0.6404 GB, free: 90.44 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.9743, allocations: 51.81 kB / 0.6405 GB, free: 90.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001925/0.9762, allocations: 71.33 kB / 0.6405 GB, free: 90.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002764/0.9765, allocations: 151 kB / 0.6407 GB, free: 90.23 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001535/0.9767, allocations: 71.94 kB / 0.6408 GB, free: 90.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.007001/0.9837, allocations: 3.218 MB / 0.6439 GB, free: 87.49 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.312e-06/0.9837, allocations: 1.125 kB / 0.6439 GB, free: 87.49 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009191/0.9929, allocations: 1.098 MB / 0.645 GB, free: 86.4 MB / 446.1 MB 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.0006979/0.9937, allocations: 188.7 kB / 0.6452 GB, free: 86.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009277/1.003, allocations: 5.167 MB / 0.6502 GB, free: 81.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/1.003, allocations: 4 kB / 0.6502 GB, free: 81.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001986/1.005, allocations: 1.224 MB / 0.6514 GB, free: 80.56 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005497/1.011, allocations: 0.5516 MB / 0.6519 GB, free: 80.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01997/1.031, allocations: 12.93 MB / 0.6646 GB, free: 67.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005817/1.036, allocations: 3.772 MB / 0.6682 GB, free: 64.93 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006548/1.043, allocations: 2.454 MB / 0.6706 GB, free: 63.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009209/1.044, allocations: 315.4 kB / 0.6709 GB, free: 62.75 MB / 446.1 MB Notification: Performance of SimCode: time 1.032e-06/1.044, allocations: 5.203 kB / 0.6709 GB, free: 62.75 MB / 446.1 MB Notification: Performance of Templates: time 0.06167/1.106, allocations: 35.74 MB / 0.7059 GB, free: 27.27 MB / 446.1 MB 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)