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.00153/0.00153, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002041/0.002041, allocations: 195.2 kB / 16.53 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.441/1.441, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1472/0.1472, allocations: 9.117 MB / 299.5 MB, free: 1.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001375/0.001375, allocations: 63.91 kB / 362 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1089, allocations: 51.43 MB / 413.4 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.2231/0.3321, allocations: 12.93 MB / 426.3 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006368/0.3385, allocations: 3.568 MB / 429.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.34, allocations: 58.53 kB / 429.9 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.3414, allocations: 0.7535 MB / 430.7 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003861/0.3453, allocations: 2.039 MB / 432.7 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004316/0.3457, allocations: 147.5 kB / 432.9 MB, free: 35.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003452/0.3492, allocations: 4.08 MB / 437 MB, free: 33.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.351, allocations: 1.984 MB / 438.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001435/0.3525, allocations: 1.397 MB / 440.3 MB, free: 32.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001637/0.3541, allocations: 2.017 MB / 442.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004864/0.3546, allocations: 318 kB / 442.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.356, allocations: 0.8802 MB / 443.5 MB, free: 31.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001109/0.3571, allocations: 1.902 MB / 445.4 MB, free: 30.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00168/0.3588, allocations: 2.456 MB / 447.9 MB, free: 28.85 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005795/0.3646, allocations: 7.249 MB / 455.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.3647, allocations: 0 / 455.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3647, allocations: 0 / 455.2 MB, free: 26.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001915/0.3649, allocations: 2.719 kB / 455.2 MB, free: 26.01 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.02501/0.3899, allocations: 7.048 MB / 462.2 MB, free: 22.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.658e-05/0.39, allocations: 8.938 kB / 462.2 MB, free: 22.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01252/0.4025, allocations: 3.262 MB / 465.5 MB, free: 22.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00501/0.4076, allocations: 2.06 MB / 467.5 MB, free: 21.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002383/0.4078, allocations: 237.8 kB / 467.8 MB, free: 21.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001123/0.4089, allocations: 311.7 kB / 468.1 MB, free: 20.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/0.4334, allocations: 13.45 MB / 481.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001365/0.4336, allocations: 49.56 kB / 481.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005114/0.4341, allocations: 159.3 kB / 481.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004727/0.4388, allocations: 3.091 MB / 484.8 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02241/0.4613, allocations: 11.94 MB / 496.8 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06316/0.5245, allocations: 47.95 MB / 0.5319 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01184/0.5363, allocations: 3.774 MB / 0.5356 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002301/0.5387, allocations: 1.384 MB / 0.537 GB, free: 9.551 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01374/0.5524, allocations: 9.221 MB / 0.546 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.621e-05/0.5525, allocations: 51.56 kB / 0.546 GB, free: 15.53 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 4.819e-06/0.5525, allocations: 3.938 kB / 0.546 GB, free: 15.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.01854/0.5711, allocations: 10.24 MB / 0.556 GB, free: 5.152 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.757e-05/0.5712, allocations: 149.8 kB / 0.5562 GB, free: 4.973 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006407/0.5776, allocations: 5.15 MB / 0.5612 GB, free: 15.82 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000176/0.5778, allocations: 53.7 kB / 0.5613 GB, free: 15.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002389/0.5802, allocations: 3.936 MB / 0.5651 GB, free: 11.77 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000764/0.581, allocations: 0.8295 MB / 0.5659 GB, free: 10.93 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001883/0.5829, allocations: 1.598 MB / 0.5675 GB, free: 9.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.431e-05/0.583, allocations: 301.1 kB / 0.5678 GB, free: 9.023 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003403/0.5864, allocations: 2.241 MB / 0.57 GB, free: 6.777 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2031/0.7895, allocations: 7.324 MB / 0.5771 GB, free: 117.1 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009541/0.7991, allocations: 10.38 MB / 0.5872 GB, free: 109.5 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001432/0.7993, allocations: 51.19 kB / 0.5873 GB, free: 109.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01517/0.8145, allocations: 9.187 MB / 0.5963 GB, free: 106.2 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.8146, allocations: 79.91 kB / 0.5963 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002652/0.8149, allocations: 183.1 kB / 0.5965 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002286/0.8151, allocations: 240.9 kB / 0.5967 GB, free: 106.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005547/0.8207, allocations: 1.848 MB / 0.5985 GB, free: 105.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002143/0.8209, allocations: 353.3 kB / 0.5989 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005225/0.8261, allocations: 374.1 kB / 0.5992 GB, free: 105.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007886/0.8269, allocations: 0.4923 MB / 0.5997 GB, free: 105.7 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.004095/0.831, allocations: 2.649 MB / 0.6023 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008102/0.8319, allocations: 418.3 kB / 0.6027 GB, free: 104.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003318/0.8352, allocations: 1.967 MB / 0.6046 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001175/0.8353, allocations: 40.62 kB / 0.6047 GB, free: 103.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/0.8353, allocations: 8.703 kB / 0.6047 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.8354, allocations: 8.25 kB / 0.6047 GB, free: 103.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01301/0.8484, allocations: 7.763 MB / 0.6123 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.642e-05/0.8485, allocations: 13.75 kB / 0.6123 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.8497, allocations: 300.3 kB / 0.6126 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001842/0.8499, allocations: 40.69 kB / 0.6126 GB, free: 100.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.85, allocations: 58.89 kB / 0.6127 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007992/0.8508, allocations: 1.394 MB / 0.614 GB, free: 99.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-05/0.8508, allocations: 18.38 kB / 0.614 GB, free: 99.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005722/0.8566, allocations: 4.384 MB / 0.6183 GB, free: 96.96 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/0.8584, allocations: 0.6794 MB / 0.619 GB, free: 96.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006157/0.859, allocations: 47.48 kB / 0.619 GB, free: 96.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/0.8604, allocations: 72.12 kB / 0.6191 GB, free: 96.49 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002571/0.8606, allocations: 145.5 kB / 0.6192 GB, free: 96.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.8608, allocations: 80.5 kB / 0.6193 GB, free: 96.43 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006307/0.8671, allocations: 3.213 MB / 0.6225 GB, free: 95.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.8671, allocations: 0 / 0.6225 GB, free: 95.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007138/0.8743, allocations: 1.098 MB / 0.6235 GB, free: 95.2 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.0005444/0.8748, allocations: 193.2 kB / 0.6237 GB, free: 95.05 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009993/0.8848, allocations: 6.088 MB / 0.6297 GB, free: 93.31 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-05/0.8849, allocations: 4.062 kB / 0.6297 GB, free: 93.31 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001959/0.8869, allocations: 1.231 MB / 0.6309 GB, free: 92.84 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003586/0.8905, allocations: 0.5675 MB / 0.6314 GB, free: 92.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.907, allocations: 10.55 MB / 0.6417 GB, free: 84.17 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003681/0.9108, allocations: 3.767 MB / 0.6454 GB, free: 81.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005311/0.9161, allocations: 2.455 MB / 0.6478 GB, free: 79.68 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007337/0.9169, allocations: 310.3 kB / 0.6481 GB, free: 79.39 MB / 446.1 MB Notification: Performance of SimCode: time 1.553e-06/0.9169, allocations: 0 / 0.6481 GB, free: 79.39 MB / 446.1 MB Notification: Performance of Templates: time 0.06285/0.9797, allocations: 36.95 MB / 0.6842 GB, free: 43.65 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)