Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) 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(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") translateModel(ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2") [: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.003589/0.003589, allocations: 173.7 kB / 7.446 MB, free: 2.512 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.286/1.286, allocations: 170.6 MB / 178.4 MB, free: 15.45 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.002096/0.002096, allocations: 112.4 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1652/0.1652, allocations: 37.98 MB / 294.8 MB, free: 9.625 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.003e-06/7.063e-06, allocations: 1.656 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.08949, allocations: 48.71 MB / 398.2 MB, free: 5.684 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3077/0.3973, allocations: 95.23 MB / 493.4 MB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002678/0.3976, allocations: 80.69 kB / 493.5 MB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.9503/1.348, allocations: 275 MB / 0.7505 GB, free: 21.82 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.00122/1.349, allocations: 279.1 kB / 0.7507 GB, free: 21.55 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5455 * Number of variables: 5455 Notification: Performance of Generate backend data structure: time 0.04822/1.397, allocations: 13.07 MB / 0.7635 GB, free: 8.41 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/1.397, allocations: 8.031 kB / 0.7635 GB, free: 8.402 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07772/1.475, allocations: 16.78 MB / 0.7799 GB, free: 7.562 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2581/1.733, allocations: 14.98 MB / 0.7945 GB, free: 74.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009477/1.734, allocations: 480.9 kB / 0.795 GB, free: 74.29 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009189/1.744, allocations: 0.8442 MB / 0.7958 GB, free: 74.29 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0442/1.788, allocations: 24.18 MB / 0.8194 GB, free: 74.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07325/1.861, allocations: 33.22 MB / 0.8519 GB, free: 68.62 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008488/1.862, allocations: 130.7 kB / 0.852 GB, free: 68.62 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007722/1.87, allocations: 62.5 kB / 0.852 GB, free: 68.62 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005007/1.875, allocations: 3.965 MB / 0.8559 GB, free: 68.59 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4061/2.281, allocations: 136.7 MB / 0.9894 GB, free: 44.77 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01523/2.296, allocations: 11.16 MB / 1 GB, free: 44.11 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01345/2.31, allocations: 9.761 MB / 1.01 GB, free: 44.05 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06741/2.377, allocations: 34.93 MB / 1.044 GB, free: 38.97 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.751e-05/2.377, allocations: 109.2 kB / 1.044 GB, free: 38.89 MB / 474.7 MB Notification: Performance of pre-optimization done (n=745): time 1.341e-05/2.377, allocations: 0 / 1.044 GB, free: 38.89 MB / 474.7 MB Notification: Performance of matching and sorting (n=816): time 0.1382/2.516, allocations: 67.29 MB / 1.11 GB, free: 7.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001791/2.516, allocations: 303.9 kB / 1.11 GB, free: 7.418 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2274/2.743, allocations: 8.814 MB / 1.119 GB, free: 95.18 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001573/2.745, allocations: 33.23 kB / 1.119 GB, free: 95.15 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006392/2.751, allocations: 9.26 MB / 1.128 GB, free: 91.45 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004433/2.756, allocations: 2.88 MB / 1.131 GB, free: 89.69 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002863/2.758, allocations: 0 / 1.131 GB, free: 89.69 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001616/2.76, allocations: 1.14 MB / 1.132 GB, free: 89.34 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01461/2.775, allocations: 8.076 MB / 1.14 GB, free: 89.3 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02289/2.798, allocations: 18.28 MB / 1.157 GB, free: 76.25 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01964/2.817, allocations: 12.35 MB / 1.169 GB, free: 76.13 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0005722/2.818, allocations: 108.2 kB / 1.17 GB, free: 76.13 MB / 474.7 MB Notification: Performance of matching and sorting (n=2524) (initialization): time 0.0527/2.871, allocations: 26.18 MB / 1.195 GB, free: 74.43 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/2.871, allocations: 7.047 kB / 1.195 GB, free: 74.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0009601/2.872, allocations: 359.4 kB / 1.195 GB, free: 74.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007874/2.88, allocations: 2.335 MB / 1.198 GB, free: 74.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01811/2.898, allocations: 4.372 MB / 1.202 GB, free: 74.01 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01668/2.914, allocations: 12.86 MB / 1.215 GB, free: 70 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01704/2.932, allocations: 0.6155 MB / 1.215 GB, free: 69.97 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004452/2.936, allocations: 1.061 MB / 1.216 GB, free: 69.82 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1640 * Number of states: 0 () * Number of discrete variables: 90 (torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],bodyCylinder3.color[3],bodyCylinder3.color[2],bodyCylinder3.color[1],bodyCylinder3.body.sphereColor[3],bodyCylinder3.body.sphereColor[2],bodyCylinder3.body.sphereColor[1],bodyCylinder2.color[3],bodyCylinder2.color[2],bodyCylinder2.color[1],bodyCylinder2.body.sphereColor[3],bodyCylinder2.body.sphereColor[2],bodyCylinder2.body.sphereColor[1],bodyCylinder1.color[3],bodyCylinder1.color[2],bodyCylinder1.color[1],bodyCylinder1.body.sphereColor[3],bodyCylinder1.body.sphereColor[2],bodyCylinder1.body.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],gc2.fixedTranslation2.color[3],gc2.fixedTranslation2.color[2],gc2.fixedTranslation2.color[1],gc2.fixedTranslation1.color[3],gc2.fixedTranslation1.color[2],gc2.fixedTranslation1.color[1],gc2.actuatedRevolute_b.cylinderColor[3],gc2.actuatedRevolute_b.cylinderColor[2],gc2.actuatedRevolute_b.cylinderColor[1],gc2.actuatedRevolute_a.cylinderColor[3],gc2.actuatedRevolute_a.cylinderColor[2],gc2.actuatedRevolute_a.cylinderColor[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],gc1.fixedTranslation2.color[3],gc1.fixedTranslation2.color[2],gc1.fixedTranslation2.color[1],gc1.fixedTranslation1.color[3],gc1.fixedTranslation1.color[2],gc1.fixedTranslation1.color[1],gc1.actuatedRevolute_b.cylinderColor[3],gc1.actuatedRevolute_b.cylinderColor[2],gc1.actuatedRevolute_b.cylinderColor[1],gc1.actuatedRevolute_a.cylinderColor[3],gc1.actuatedRevolute_a.cylinderColor[2],gc1.actuatedRevolute_a.cylinderColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2328): * Single equations (assignments): 2311 * 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 {(3,77.8%) 36,(3,77.8%) 36} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004908/2.941, allocations: 1.007 MB / 1.217 GB, free: 68.99 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002374/2.943, allocations: 0.9888 MB / 1.218 GB, free: 68.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02644/2.97, allocations: 15.26 MB / 1.233 GB, free: 63.25 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002348/2.97, allocations: 143.9 kB / 1.233 GB, free: 63.23 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.535e-05/2.97, allocations: 13.84 kB / 1.233 GB, free: 63.23 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001135/2.97, allocations: 33.66 kB / 1.233 GB, free: 63.23 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06919/3.039, allocations: 31.22 MB / 1.264 GB, free: 47.57 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.473e-05/3.04, allocations: 4 kB / 1.264 GB, free: 47.57 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007777/3.047, allocations: 1.238 MB / 1.265 GB, free: 46.55 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.242/3.289, allocations: 1.935 MB / 1.267 GB, free: 82.42 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002062/3.292, allocations: 19.2 kB / 1.267 GB, free: 82.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0159/3.307, allocations: 11.69 MB / 1.278 GB, free: 79.87 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.454e-06/3.307, allocations: 9.922 kB / 1.278 GB, free: 79.87 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03734/3.345, allocations: 24.98 MB / 1.303 GB, free: 79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007732/3.353, allocations: 2.207 MB / 1.305 GB, free: 78.91 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004456/3.357, allocations: 2.75 kB / 1.305 GB, free: 78.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007962/3.365, allocations: 282.4 kB / 1.305 GB, free: 78.91 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001969/3.367, allocations: 338.7 kB / 1.305 GB, free: 78.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007559/3.368, allocations: 178.6 kB / 1.306 GB, free: 78.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.01251/3.38, allocations: 5.909 MB / 1.311 GB, free: 78.61 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.02065/3.401, allocations: 2.955 MB / 1.314 GB, free: 78.61 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (gc1.actuatedRevolute_b.phi,gc1.actuatedRevolute_b.w,gc2.actuatedRevolute_b.phi,gc2.actuatedRevolute_b.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (642): * Single equations (assignments): 625 * 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%) 32,(1,100.0%) 32} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002128/3.403, allocations: 188.9 kB / 1.314 GB, free: 78.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03569/3.439, allocations: 19.15 MB / 1.333 GB, free: 78.19 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/3.439, allocations: 0 / 1.333 GB, free: 78.19 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01306/3.452, allocations: 7.317 MB / 1.34 GB, free: 76.63 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009308/3.461, allocations: 0.8962 MB / 1.341 GB, free: 76.22 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07987/3.541, allocations: 29.43 MB / 1.37 GB, free: 66.66 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.03342/3.575, allocations: 11.38 MB / 1.381 GB, free: 61.99 MB / 474.7 MB Notification: Performance of SimCode: time 8.82e-07/3.575, allocations: 0 / 1.381 GB, free: 61.99 MB / 474.7 MB Notification: Performance of Templates: time 0.5816/4.156, allocations: 120.1 MB / 1.498 GB, free: 65.57 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Parts.Rotor1D.GearConstraint2.pipe 2>&1)