Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+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.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.2.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/Complex 3.2.1+maint.om/package.mo): time 0.004678/0.004678, allocations: 176.1 kB / 7.446 MB, free: 2.324 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.424/1.424, allocations: 170.6 MB / 178.4 MB, free: 15.43 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001708/0.001708, allocations: 112.5 kB / 217.7 MB, free: 8.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 9.598e-06/9.638e-06, allocations: 4 kB / 261.7 MB, free: 26.64 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09241/0.09243, allocations: 38.76 MB / 300.5 MB, free: 3.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3403/0.4328, allocations: 85.83 MB / 386.3 MB, free: 14.95 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.4332, allocations: 85.77 kB / 386.4 MB, free: 14.91 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.5281/0.9613, allocations: 102.3 MB / 488.7 MB, free: 67.21 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002417/0.9616, allocations: 111.7 kB / 488.8 MB, free: 67.2 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1842 * Number of variables: 1842 Notification: Performance of Generate backend data structure: time 0.01487/0.9765, allocations: 5.217 MB / 494 MB, free: 65.09 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.9765, allocations: 7.906 kB / 494 MB, free: 65.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02572/1.002, allocations: 6.526 MB / 0.4888 GB, free: 64.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01932/1.022, allocations: 6.872 MB / 0.4956 GB, free: 63.92 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000288/1.022, allocations: 171.3 kB / 0.4957 GB, free: 63.92 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0029/1.025, allocations: 323.4 kB / 0.496 GB, free: 63.92 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01448/1.039, allocations: 7.454 MB / 0.5033 GB, free: 63.89 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0251/1.064, allocations: 11.37 MB / 0.5144 GB, free: 59.1 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002556/1.065, allocations: 75.23 kB / 0.5145 GB, free: 59.09 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008746/1.066, allocations: 34.22 kB / 0.5145 GB, free: 59.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001475/1.067, allocations: 1.206 MB / 0.5157 GB, free: 58.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06604/1.133, allocations: 56.57 MB / 0.5709 GB, free: 10.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004247/1.137, allocations: 3.506 MB / 0.5744 GB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002595/1.14, allocations: 2.453 MB / 0.5768 GB, free: 5.121 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/1.155, allocations: 7.734 MB / 0.5843 GB, free: 14.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.933e-05/1.155, allocations: 59.72 kB / 0.5844 GB, free: 14.27 MB / 362.7 MB Notification: Performance of pre-optimization done (n=191): time 7.484e-06/1.155, allocations: 0 / 0.5844 GB, free: 14.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=217): time 0.2343/1.389, allocations: 17.72 MB / 0.6017 GB, free: 111.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.398e-05/1.389, allocations: 199.5 kB / 0.6019 GB, free: 110.9 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007568/1.397, allocations: 3.726 MB / 0.6055 GB, free: 110.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000619/1.398, allocations: 25.7 kB / 0.6055 GB, free: 110.6 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002766/1.4, allocations: 3.468 MB / 0.6089 GB, free: 108.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001343/1.402, allocations: 0.8023 MB / 0.6097 GB, free: 108.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002632/1.402, allocations: 0 / 0.6097 GB, free: 108.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004527/1.402, allocations: 0.5898 MB / 0.6103 GB, free: 108.1 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003103/1.406, allocations: 2.157 MB / 0.6124 GB, free: 108.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005647/1.411, allocations: 6.236 MB / 0.6185 GB, free: 102.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007099/1.418, allocations: 3.688 MB / 0.6221 GB, free: 102.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001961/1.419, allocations: 43.38 kB / 0.6221 GB, free: 102.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=886) (initialization): time 0.01819/1.437, allocations: 8.111 MB / 0.63 GB, free: 102.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/1.437, allocations: 10.58 kB / 0.63 GB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004939/1.437, allocations: 144.1 kB / 0.6302 GB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003125/1.44, allocations: 0.9145 MB / 0.6311 GB, free: 102.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006713/1.447, allocations: 1.547 MB / 0.6326 GB, free: 102.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009226/1.456, allocations: 6.881 MB / 0.6393 GB, free: 99.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006884/1.463, allocations: 214 kB / 0.6395 GB, free: 99.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001934/1.465, allocations: 414.1 kB / 0.6399 GB, free: 99.34 MB / 362.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 (824): * Single equations (assignments): 819 * 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.002929/1.468, allocations: 485.4 kB / 0.6404 GB, free: 98.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001385/1.47, allocations: 400.3 kB / 0.6408 GB, free: 98.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007991/1.478, allocations: 3.379 MB / 0.6441 GB, free: 98.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.548e-05/1.478, allocations: 17.5 kB / 0.6441 GB, free: 98.51 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.608e-05/1.478, allocations: 6.625 kB / 0.6441 GB, free: 98.51 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.97e-05/1.478, allocations: 14.05 kB / 0.6441 GB, free: 98.51 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02296/1.501, allocations: 8.137 MB / 0.652 GB, free: 95.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.131e-05/1.501, allocations: 6.75 kB / 0.652 GB, free: 95.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001841/1.503, allocations: 324.2 kB / 0.6524 GB, free: 95.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002379/1.505, allocations: 0.6711 MB / 0.653 GB, free: 95.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003211/1.506, allocations: 8.688 kB / 0.653 GB, free: 95.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007933/1.513, allocations: 6.042 MB / 0.6589 GB, free: 91.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.041e-06/1.514, allocations: 3.938 kB / 0.6589 GB, free: 91.47 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01038/1.524, allocations: 6.174 MB / 0.6649 GB, free: 88.88 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002574/1.527, allocations: 0.6959 MB / 0.6656 GB, free: 88.44 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001696/1.528, allocations: 7.25 kB / 0.6656 GB, free: 88.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002698/1.531, allocations: 53.33 kB / 0.6657 GB, free: 88.44 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003752/1.531, allocations: 107.2 kB / 0.6658 GB, free: 88.42 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002388/1.532, allocations: 61.66 kB / 0.6658 GB, free: 88.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0073/1.539, allocations: 2.541 MB / 0.6683 GB, free: 87.49 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.009557/1.549, allocations: 1.009 MB / 0.6693 GB, free: 87.48 MB / 362.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 (168): * Single equations (assignments): 163 * 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.0009401/1.549, allocations: 138.9 kB / 0.6694 GB, free: 87.38 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0107/1.56, allocations: 5.379 MB / 0.6747 GB, free: 83.21 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.445e-06/1.56, allocations: 0 / 0.6747 GB, free: 83.21 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003319/1.564, allocations: 1.847 MB / 0.6765 GB, free: 81.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0038/1.567, allocations: 440.2 kB / 0.6769 GB, free: 81.15 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02853/1.596, allocations: 9.31 MB / 0.686 GB, free: 72.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01117/1.607, allocations: 4.412 MB / 0.6903 GB, free: 69.48 MB / 362.7 MB Notification: Performance of SimCode: time 1.893e-06/1.607, allocations: 0 / 0.6903 GB, free: 69.48 MB / 362.7 MB Notification: Performance of Templates: time 0.08869/1.696, allocations: 42.16 MB / 0.7315 GB, free: 34.41 MB / 362.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1)