Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6512/0.6512, allocations: 110.8 MB / 118 MB, free: 14.59 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001723/0.001722, allocations: 156 kB / 143.7 MB, free: 4.922 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.312e-06/6.422e-06, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04478/0.04481, allocations: 25.17 MB / 198.6 MB, free: 13.93 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.2035, allocations: 50.21 MB / 248.8 MB, free: 2.324 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004155/0.204, allocations: 73.08 kB / 248.9 MB, free: 2.312 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.7732/0.9772, allocations: 189.5 MB / 438.4 MB, free: 24.75 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0005276/0.9777, allocations: 136.8 kB / 438.5 MB, free: 24.74 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2379 * Number of variables: 2379 Notification: Performance of Generate backend data structure: time 0.03612/1.014, allocations: 8.187 MB / 446.7 MB, free: 22.02 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.735e-05/1.014, allocations: 10.12 kB / 446.7 MB, free: 22.02 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1348/1.149, allocations: 24.8 MB / 471.5 MB, free: 20.45 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02601/1.175, allocations: 8.768 MB / 480.3 MB, free: 17.37 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005151/1.175, allocations: 227.5 kB / 480.5 MB, free: 17.15 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005478/1.181, allocations: 403.2 kB / 480.9 MB, free: 16.76 MB / 234.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02972/1.211, allocations: 17.41 MB / 498.3 MB, free: 4.309 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04781/1.258, allocations: 19.83 MB / 0.506 GB, free: 300 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004448/1.259, allocations: 64.31 kB / 0.5061 GB, free: 264 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004314/1.263, allocations: 24 kB / 0.5061 GB, free: 240 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1368/1.4, allocations: 8.282 MB / 0.5142 GB, free: 53.55 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.591/1.991, allocations: 123 MB / 0.6343 GB, free: 32.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007356/1.999, allocations: 5.718 MB / 0.6398 GB, free: 31.79 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005229/2.004, allocations: 4.32 MB / 0.6441 GB, free: 31.68 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1136/2.118, allocations: 28.28 MB / 0.6717 GB, free: 27.73 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/2.118, allocations: 66.41 kB / 0.6717 GB, free: 27.68 MB / 250.7 MB Notification: Performance of pre-optimization done (n=286): time 8.305e-06/2.118, allocations: 3.656 kB / 0.6717 GB, free: 27.68 MB / 250.7 MB Notification: Performance of matching and sorting (n=312): time 0.04526/2.163, allocations: 23.53 MB / 0.6947 GB, free: 10.77 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.038e-05/2.163, allocations: 245.4 kB / 0.695 GB, free: 10.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006476/2.169, allocations: 4.589 MB / 0.6994 GB, free: 6.582 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00103/2.171, allocations: 25.7 kB / 0.6995 GB, free: 6.551 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002186/2.173, allocations: 4.312 MB / 0.7037 GB, free: 2.734 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001607/2.174, allocations: 1.129 MB / 0.7048 GB, free: 1.719 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005622/2.175, allocations: 0 / 0.7048 GB, free: 1.719 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003557/2.175, allocations: 0.6766 MB / 0.7054 GB, free: 1.137 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1288/2.304, allocations: 4.802 MB / 0.7101 GB, free: 48.76 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009994/2.314, allocations: 9.151 MB / 0.7191 GB, free: 42.19 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008092/2.322, allocations: 5.203 MB / 0.7241 GB, free: 42.16 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/2.322, allocations: 51.84 kB / 0.7242 GB, free: 42.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=1147) (initialization): time 0.02311/2.346, allocations: 12.23 MB / 0.7361 GB, free: 41.58 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/2.346, allocations: 9.812 kB / 0.7361 GB, free: 41.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002173/2.346, allocations: 179.5 kB / 0.7363 GB, free: 41.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002496/2.348, allocations: 0.958 MB / 0.7373 GB, free: 41.55 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007337/2.356, allocations: 2.05 MB / 0.7393 GB, free: 41.38 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007466/2.363, allocations: 6.915 MB / 0.746 GB, free: 38.76 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01599/2.379, allocations: 1.569 MB / 0.7475 GB, free: 38.76 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002454/2.382, allocations: 0.7421 MB / 0.7483 GB, free: 38.76 MB / 250.7 MB Warning: Assuming fixed start value for the following 2 variables: gearConstraint.actuatedRevolute_b.w:VARIABLE(start = 0.0 unit = "rad/s" stateSelect=StateSelect.prefer ) "First derivative of angle phi (relative angular velocity)" type: Real gearConstraint.actuatedRevolute_b.phi:VARIABLE(start = 0.0 unit = "rad" stateSelect=StateSelect.prefer ) "Relative rotation angle from frame_a to frame_b" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 825 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],cyl2.color[3],cyl2.color[2],cyl2.color[1],cyl2.body.sphereColor[3],cyl2.body.sphereColor[2],cyl2.body.sphereColor[1],cyl1.color[3],cyl1.color[2],cyl1.color[1],cyl1.body.sphereColor[3],cyl1.body.sphereColor[2],cyl1.body.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearConstraint.fixedTranslation2.color[3],gearConstraint.fixedTranslation2.color[2],gearConstraint.fixedTranslation2.color[1],gearConstraint.fixedTranslation1.color[3],gearConstraint.fixedTranslation1.color[2],gearConstraint.fixedTranslation1.color[1],gearConstraint.actuatedRevolute_b.cylinderColor[3],gearConstraint.actuatedRevolute_b.cylinderColor[2],gearConstraint.actuatedRevolute_b.cylinderColor[1],gearConstraint.actuatedRevolute_a.cylinderColor[3],gearConstraint.actuatedRevolute_a.cylinderColor[2],gearConstraint.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1061): * Single equations (assignments): 1044 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001846/2.384, allocations: 0.5542 MB / 0.7488 GB, free: 38.47 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001145/2.385, allocations: 471.3 kB / 0.7493 GB, free: 38.47 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007076/2.392, allocations: 4.489 MB / 0.7536 GB, free: 37.65 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01578/2.408, allocations: 2.504 MB / 0.7561 GB, free: 37.65 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.577e-05/2.408, allocations: 6.969 kB / 0.7561 GB, free: 37.65 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-05/2.408, allocations: 13.73 kB / 0.7561 GB, free: 37.65 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07378/2.482, allocations: 19.35 MB / 0.775 GB, free: 33.14 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-05/2.482, allocations: 3.719 kB / 0.775 GB, free: 33.14 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002622/2.484, allocations: 451 kB / 0.7754 GB, free: 33.1 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002229/2.486, allocations: 0.6584 MB / 0.7761 GB, free: 32.71 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007376/2.487, allocations: 106 kB / 0.7762 GB, free: 32.65 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00634/2.494, allocations: 6.005 MB / 0.782 GB, free: 27.07 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.514e-06/2.494, allocations: 2.031 kB / 0.782 GB, free: 27.07 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01566/2.509, allocations: 11.63 MB / 0.7934 GB, free: 17.09 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00369/2.513, allocations: 1.256 MB / 0.7946 GB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001758/2.515, allocations: 0 / 0.7946 GB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01178/2.527, allocations: 1.332 MB / 0.7959 GB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009511/2.528, allocations: 157.8 kB / 0.7961 GB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00151/2.529, allocations: 398.1 kB / 0.7965 GB, free: 15.11 MB / 250.7 MB Notification: Performance of sort global known variables: time 0.1053/2.635, allocations: 3.117 MB / 0.7995 GB, free: 41.84 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.009231/2.644, allocations: 1.385 MB / 0.8009 GB, free: 41.84 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 4 (gearConstraint.actuatedRevolute_b.phi,gearConstraint.actuatedRevolute_b.w,inertia1.phi,inertia1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (239): * Single equations (assignments): 222 * Array equations: 15 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006849/2.644, allocations: 153.9 kB / 0.801 GB, free: 41.75 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.02907/2.674, allocations: 11.76 MB / 0.8125 GB, free: 41.51 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/2.674, allocations: 1.594 kB / 0.8125 GB, free: 41.51 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02117/2.695, allocations: 5.855 MB / 0.8182 GB, free: 41.3 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003558/2.698, allocations: 461.3 kB / 0.8186 GB, free: 41.28 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02842/2.727, allocations: 12.99 MB / 0.8313 GB, free: 39.11 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01143/2.738, allocations: 6.05 MB / 0.8372 GB, free: 38.25 MB / 250.7 MB Notification: Performance of SimCode: time 1.653e-06/2.738, allocations: 0 / 0.8372 GB, free: 38.25 MB / 250.7 MB Notification: Performance of Templates: time 0.2715/3.01, allocations: 89.02 MB / 0.9242 GB, free: 39.13 MB / 250.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)