Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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/Complex 3.2.2+maint.om/package.mo): time 0.001156/0.001156, allocations: 192.1 kB / 8.135 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.134/1.134, allocations: 194.2 MB / 202.8 MB, free: 8.664 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001849/0.001849, allocations: 113.2 kB / 247.8 MB, free: 6.367 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 8.065e-06/8.115e-06, allocations: 4 kB / 297.6 MB, free: 7.977 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0689/0.06893, allocations: 44.48 MB / 342.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2006/0.2696, allocations: 92.03 MB / 434.1 MB, free: 3.297 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001949/0.2698, allocations: 83.12 kB / 434.2 MB, free: 3.258 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4049/0.6747, allocations: 102.6 MB / 0.5242 GB, free: 47.3 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002108/0.675, allocations: 111.1 kB / 0.5243 GB, free: 47.29 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1843 * Number of variables: 1843 Notification: Performance of Generate backend data structure: time 0.01089/0.6859, allocations: 5.229 MB / 0.5294 GB, free: 45.19 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.313e-05/0.6859, allocations: 7 kB / 0.5294 GB, free: 45.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02661/0.7125, allocations: 6.562 MB / 0.5358 GB, free: 44.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01528/0.7278, allocations: 6.886 MB / 0.5425 GB, free: 44.09 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001577/0.728, allocations: 175.6 kB / 0.5427 GB, free: 44.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/0.7292, allocations: 323.4 kB / 0.543 GB, free: 44.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01101/0.7402, allocations: 7.798 MB / 0.5506 GB, free: 44.05 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01389/0.7541, allocations: 11.55 MB / 0.5619 GB, free: 40.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002066/0.7544, allocations: 76.86 kB / 0.562 GB, free: 40.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007276/0.7551, allocations: 37.84 kB / 0.562 GB, free: 40.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001262/0.7564, allocations: 1.209 MB / 0.5632 GB, free: 40.91 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05382/0.8102, allocations: 57.18 MB / 0.619 GB, free: 17.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004255/0.8145, allocations: 3.614 MB / 0.6225 GB, free: 15.18 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002653/0.8172, allocations: 2.571 MB / 0.6251 GB, free: 14.04 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01197/0.8292, allocations: 7.986 MB / 0.6329 GB, free: 9.633 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.14e-05/0.8293, allocations: 55.66 kB / 0.6329 GB, free: 9.574 MB / 410.7 MB Notification: Performance of pre-optimization done (n=192): time 5.521e-06/0.8293, allocations: 0 / 0.6329 GB, free: 9.574 MB / 410.7 MB Notification: Performance of matching and sorting (n=218): time 0.03701/0.8663, allocations: 18.05 MB / 0.6505 GB, free: 1.828 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.42e-05/0.8664, allocations: 203.7 kB / 0.6507 GB, free: 1.605 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005077/0.8715, allocations: 3.713 MB / 0.6544 GB, free: 180 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00026/0.8718, allocations: 25.7 kB / 0.6544 GB, free: 148 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/0.874, allocations: 3.464 MB / 0.6578 GB, free: 13.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008384/0.8748, allocations: 0.8053 MB / 0.6585 GB, free: 12.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.8751, allocations: 0 / 0.6585 GB, free: 12.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004037/0.8755, allocations: 0.5911 MB / 0.6591 GB, free: 12.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003472/0.879, allocations: 2.18 MB / 0.6613 GB, free: 10.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006133/0.8852, allocations: 6.255 MB / 0.6674 GB, free: 2.652 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1073/0.9925, allocations: 3.721 MB / 0.671 GB, free: 130.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.526e-05/0.9927, allocations: 43.06 kB / 0.671 GB, free: 130.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=887) (initialization): time 0.01331/1.006, allocations: 8.162 MB / 0.679 GB, free: 130.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/1.006, allocations: 3.562 kB / 0.679 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/1.006, allocations: 147.5 kB / 0.6792 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002621/1.009, allocations: 0.9108 MB / 0.68 GB, free: 130.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004904/1.014, allocations: 1.548 MB / 0.6816 GB, free: 130.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007095/1.021, allocations: 6.897 MB / 0.6883 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004283/1.025, allocations: 215.5 kB / 0.6885 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004976/1.026, allocations: 411.9 kB / 0.6889 GB, free: 127.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 42 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[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 (825): * Single equations (assignments): 820 * Array equations: 3 * 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.0006946/1.026, allocations: 478.5 kB / 0.6893 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005069/1.027, allocations: 399.1 kB / 0.6897 GB, free: 127.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005625/1.032, allocations: 3.425 MB / 0.6931 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.852e-05/1.033, allocations: 23.78 kB / 0.6931 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/1.033, allocations: 8.125 kB / 0.6931 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.752e-05/1.033, allocations: 8.578 kB / 0.6931 GB, free: 127.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01375/1.046, allocations: 8.202 MB / 0.7011 GB, free: 126.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.107e-05/1.046, allocations: 3.5 kB / 0.7011 GB, free: 126.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001847/1.048, allocations: 332.1 kB / 0.7014 GB, free: 126.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002291/1.051, allocations: 0.6667 MB / 0.7021 GB, free: 126.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001892/1.051, allocations: 3.625 kB / 0.7021 GB, free: 126.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006529/1.057, allocations: 6.043 MB / 0.708 GB, free: 124.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/1.057, allocations: 3.938 kB / 0.708 GB, free: 124.2 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007989/1.065, allocations: 6.254 MB / 0.7141 GB, free: 123.5 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001493/1.067, allocations: 0.6965 MB / 0.7148 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007285/1.068, allocations: 3.375 kB / 0.7148 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/1.069, allocations: 60.17 kB / 0.7148 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002572/1.069, allocations: 100.5 kB / 0.7149 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/1.07, allocations: 57.59 kB / 0.715 GB, free: 123.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.003365/1.073, allocations: 2.53 MB / 0.7175 GB, free: 122.2 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005522/1.079, allocations: 1.018 MB / 0.7185 GB, free: 122.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (169): * Single equations (assignments): 164 * Array equations: 3 * 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.0004238/1.079, allocations: 146.4 kB / 0.7186 GB, free: 122.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007435/1.086, allocations: 5.427 MB / 0.7239 GB, free: 120.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/1.086, allocations: 0 / 0.7239 GB, free: 120.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00254/1.089, allocations: 1.869 MB / 0.7257 GB, free: 119.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002221/1.091, allocations: 449.2 kB / 0.7262 GB, free: 119.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.017/1.108, allocations: 9.334 MB / 0.7353 GB, free: 116 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005308/1.114, allocations: 4.399 MB / 0.7396 GB, free: 114.5 MB / 426.7 MB Notification: Performance of SimCode: time 6.71e-07/1.114, allocations: 0 / 0.7396 GB, free: 114.5 MB / 426.7 MB Notification: Performance of Templates: time 0.07522/1.189, allocations: 42.32 MB / 0.7809 GB, free: 92.52 MB / 426.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)