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/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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009818/0.009818, allocations: 100.1 kB / 15.73 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002089/0.002089, allocations: 189.3 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.1 MB / 222.5 MB, free: 4.531 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 50.45 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1278, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01687/0.1447, allocations: 14.22 MB / 387.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01328/0.158, allocations: 4.638 MB / 392 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003299/0.1614, allocations: 99.69 kB / 392.1 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008453/0.1699, allocations: 4.217 MB / 396.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007528/0.1775, allocations: 2.33 MB / 398.7 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002962/0.1805, allocations: 0.9282 MB / 399.6 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01105/0.1916, allocations: 5.902 MB / 405.5 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01089/0.2025, allocations: 5.302 MB / 410.8 MB, free: 11.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006496/0.2091, allocations: 2.212 MB / 413 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00772/0.2169, allocations: 2.944 MB / 416 MB, free: 6.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002416/0.2193, allocations: 496 kB / 416.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005171/0.2245, allocations: 1.366 MB / 417.8 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004928/0.2295, allocations: 2.654 MB / 420.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007971/0.2375, allocations: 3.003 MB / 423.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01485/0.2524, allocations: 9.558 MB / 433 MB, free: 5.211 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.076e-05/0.2524, allocations: 3.984 kB / 433 MB, free: 5.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.2524, allocations: 0 / 433 MB, free: 5.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003663/0.2528, allocations: 0 / 433 MB, free: 5.207 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01834/0.2712, allocations: 6.346 MB / 439.4 MB, free: 14.78 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.148e-05/0.2712, allocations: 12.03 kB / 439.4 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01174/0.283, allocations: 2.61 MB / 442 MB, free: 12.15 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01237/0.2954, allocations: 4.031 MB / 446 MB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004478/0.2959, allocations: 312.5 kB / 446.3 MB, free: 7.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002655/0.2986, allocations: 459.7 kB / 446.8 MB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2822/0.5808, allocations: 12.23 MB / 459 MB, free: 62.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004468/0.5813, allocations: 58.97 kB / 459.1 MB, free: 62.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001963/0.5833, allocations: 195.6 kB / 459.3 MB, free: 62.41 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005583/0.5889, allocations: 2.197 MB / 461.5 MB, free: 62.01 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02665/0.6156, allocations: 10.54 MB / 472 MB, free: 58.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05871/0.6744, allocations: 47.35 MB / 0.5072 GB, free: 13.79 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.6849, allocations: 4.601 MB / 0.5117 GB, free: 9.039 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003281/0.6882, allocations: 2.642 MB / 0.5142 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01755/0.7058, allocations: 10.46 MB / 0.5245 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.593e-05/0.7059, allocations: 51.88 kB / 0.5245 GB, free: 11.77 MB / 398.1 MB Notification: Performance of pre-optimization done (n=192): time 5.841e-06/0.7059, allocations: 0 / 0.5245 GB, free: 11.77 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.06119/0.7671, allocations: 20.97 MB / 0.545 GB, free: 6.684 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001705/0.7673, allocations: 205.2 kB / 0.5452 GB, free: 6.438 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01218/0.7795, allocations: 4.82 MB / 0.5499 GB, free: 1.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006262/0.7802, allocations: 57.7 kB / 0.5499 GB, free: 1.551 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003767/0.784, allocations: 3.719 MB / 0.5536 GB, free: 13.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001713/0.7857, allocations: 0.833 MB / 0.5544 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004397/0.7901, allocations: 1.4 MB / 0.5558 GB, free: 11.52 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.7903, allocations: 305.1 kB / 0.5561 GB, free: 11.22 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004752/0.795, allocations: 2.582 MB / 0.5586 GB, free: 8.637 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007739/0.8028, allocations: 6.55 MB / 0.565 GB, free: 132 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01334/0.8162, allocations: 9.817 MB / 0.5746 GB, free: 4.355 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002498/0.8165, allocations: 40 kB / 0.5746 GB, free: 4.316 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02193/0.8384, allocations: 10.25 MB / 0.5846 GB, free: 10.05 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.8386, allocations: 64 kB / 0.5847 GB, free: 9.988 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002452/0.8389, allocations: 140 kB / 0.5848 GB, free: 9.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004462/0.8434, allocations: 1.616 MB / 0.5864 GB, free: 8.23 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005393/0.8488, allocations: 1.571 MB / 0.5879 GB, free: 6.656 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.8635, allocations: 10.26 MB / 0.5979 GB, free: 12.11 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00648/0.8701, allocations: 383.4 kB / 0.5983 GB, free: 11.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001664/0.8718, allocations: 408 kB / 0.5987 GB, free: 11.34 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (834): * Single equations (assignments): 829 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,31,77.8%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006507/0.8783, allocations: 2.569 MB / 0.6012 GB, free: 8.754 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001497/0.8798, allocations: 421 kB / 0.6016 GB, free: 8.34 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01056/0.8904, allocations: 4.632 MB / 0.6061 GB, free: 3.684 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-05/0.8905, allocations: 28 kB / 0.6061 GB, free: 3.656 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-05/0.8905, allocations: 8 kB / 0.6062 GB, free: 3.648 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.761e-05/0.8906, allocations: 7.969 kB / 0.6062 GB, free: 3.641 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02858/0.9192, allocations: 10.43 MB / 0.6163 GB, free: 9.137 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.709e-05/0.9192, allocations: 4 kB / 0.6164 GB, free: 9.133 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001882/0.9211, allocations: 347.5 kB / 0.6167 GB, free: 8.793 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004139/0.9253, allocations: 1.359 MB / 0.618 GB, free: 7.426 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003955/0.9257, allocations: 40 kB / 0.618 GB, free: 7.387 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3265/1.252, allocations: 9.373 MB / 0.6272 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.863e-06/1.252, allocations: 5.453 kB / 0.6272 GB, free: 155.8 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/1.268, allocations: 7.563 MB / 0.6346 GB, free: 154.3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002907/1.271, allocations: 0.7789 MB / 0.6354 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007612/1.272, allocations: 37.97 kB / 0.6354 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/1.273, allocations: 127.5 kB / 0.6355 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005402/1.274, allocations: 137 kB / 0.6356 GB, free: 154 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/1.274, allocations: 53.75 kB / 0.6357 GB, free: 154 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005831/1.28, allocations: 3.043 MB / 0.6387 GB, free: 153 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.28, allocations: 0 / 0.6387 GB, free: 153 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00769/1.287, allocations: 1.262 MB / 0.6399 GB, free: 152.8 MB / 494.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,27,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006284/1.288, allocations: 173.5 kB / 0.6401 GB, free: 152.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01104/1.299, allocations: 6.399 MB / 0.6463 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/1.299, allocations: 3.688 kB / 0.6463 GB, free: 150.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003544/1.303, allocations: 2.199 MB / 0.6485 GB, free: 149.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004112/1.307, allocations: 0.5613 MB / 0.649 GB, free: 149.2 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0225/1.329, allocations: 11.72 MB / 0.6605 GB, free: 144.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004252/1.334, allocations: 3.994 MB / 0.6644 GB, free: 141.2 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00456/1.338, allocations: 2.09 MB / 0.6664 GB, free: 139.9 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008285/1.339, allocations: 285.4 kB / 0.6667 GB, free: 139.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.322e-06/1.339, allocations: 0 / 0.6667 GB, free: 139.6 MB / 494.1 MB Notification: Performance of Templates: time 0.07915/1.418, allocations: 43.94 MB / 0.7096 GB, free: 95.8 MB / 494.1 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)