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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007692/0.007692, allocations: 103 kB / 15.73 MB, free: 6.055 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.001769/0.001769, allocations: 191.4 kB / 16.67 MB, free: 5.969 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.452/1.452, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001293/0.001293, allocations: 50.36 kB / 326.5 MB, free: 14.5 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.111, allocations: 46.63 MB / 373.2 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01509/0.1261, allocations: 14.23 MB / 387.4 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.137, allocations: 4.63 MB / 392 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003334/0.1404, allocations: 99.75 kB / 392.1 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009322/0.1497, allocations: 4.225 MB / 396.4 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008996/0.1588, allocations: 2.327 MB / 398.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003246/0.1621, allocations: 0.9204 MB / 399.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01032/0.1725, allocations: 5.906 MB / 405.5 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00925/0.1818, allocations: 5.298 MB / 410.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00479/0.1866, allocations: 2.216 MB / 413 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005112/0.1918, allocations: 2.944 MB / 416 MB, free: 6.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001697/0.1935, allocations: 496 kB / 416.4 MB, free: 5.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003537/0.1971, allocations: 1.366 MB / 417.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00369/0.2008, allocations: 2.654 MB / 420.5 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00546/0.2063, allocations: 3.003 MB / 423.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01483/0.2211, allocations: 9.562 MB / 433 MB, free: 5.305 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.2212, allocations: 0 / 433 MB, free: 5.305 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.2212, allocations: 0 / 433 MB, free: 5.305 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003841/0.2216, allocations: 0 / 433 MB, free: 5.305 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.01906/0.2407, allocations: 6.342 MB / 439.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.913e-05/0.2407, allocations: 12.03 kB / 439.4 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01349/0.2542, allocations: 2.614 MB / 442 MB, free: 12.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01167/0.266, allocations: 4.035 MB / 446 MB, free: 8.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005441/0.2666, allocations: 316.5 kB / 446.3 MB, free: 7.84 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002256/0.2689, allocations: 451.8 kB / 446.8 MB, free: 7.398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2786/0.5475, allocations: 12.23 MB / 459 MB, free: 62.56 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002396/0.5478, allocations: 53.03 kB / 459.1 MB, free: 62.54 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006882/0.5485, allocations: 196.6 kB / 459.3 MB, free: 62.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004425/0.5529, allocations: 2.209 MB / 461.5 MB, free: 62.05 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02471/0.5776, allocations: 10.53 MB / 472 MB, free: 58.14 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05608/0.6337, allocations: 47.35 MB / 0.5072 GB, free: 13.89 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01122/0.645, allocations: 4.597 MB / 0.5117 GB, free: 9.141 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003182/0.6483, allocations: 2.644 MB / 0.5142 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01686/0.6652, allocations: 10.46 MB / 0.5245 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.355e-05/0.6653, allocations: 51.88 kB / 0.5245 GB, free: 11.88 MB / 398.1 MB Notification: Performance of pre-optimization done (n=192): time 5.059e-06/0.6653, allocations: 7.938 kB / 0.5245 GB, free: 11.87 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.06106/0.7264, allocations: 20.96 MB / 0.545 GB, free: 6.789 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.7266, allocations: 209.2 kB / 0.5452 GB, free: 6.539 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007836/0.7344, allocations: 4.824 MB / 0.5499 GB, free: 1.711 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008013/0.7353, allocations: 57.7 kB / 0.55 GB, free: 1.648 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003357/0.7386, allocations: 3.719 MB / 0.5536 GB, free: 13.88 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001506/0.7402, allocations: 0.8369 MB / 0.5544 GB, free: 13.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003077/0.7433, allocations: 1.392 MB / 0.5558 GB, free: 11.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.7434, allocations: 305.1 kB / 0.5561 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004299/0.7477, allocations: 2.578 MB / 0.5586 GB, free: 8.746 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009191/0.7569, allocations: 6.558 MB / 0.565 GB, free: 236 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01526/0.7722, allocations: 9.813 MB / 0.5746 GB, free: 4.465 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001664/0.7724, allocations: 40 kB / 0.5746 GB, free: 4.426 MB / 446.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02349/0.7959, allocations: 10.25 MB / 0.5846 GB, free: 10.16 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003308/0.7963, allocations: 64 kB / 0.5847 GB, free: 10.09 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004048/0.7968, allocations: 144.1 kB / 0.5848 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005908/0.8027, allocations: 1.623 MB / 0.5864 GB, free: 8.324 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006475/0.8092, allocations: 1.56 MB / 0.5879 GB, free: 6.762 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/0.8254, allocations: 10.27 MB / 0.5979 GB, free: 12.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006908/0.8324, allocations: 379.3 kB / 0.5983 GB, free: 11.83 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001715/0.8341, allocations: 408 kB / 0.5987 GB, free: 11.43 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.007691/0.8418, allocations: 2.569 MB / 0.6012 GB, free: 8.852 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/0.8436, allocations: 418.6 kB / 0.6016 GB, free: 8.438 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/0.8547, allocations: 4.64 MB / 0.6061 GB, free: 3.773 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.802e-05/0.8549, allocations: 24 kB / 0.6062 GB, free: 3.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.514e-05/0.8549, allocations: 4 kB / 0.6062 GB, free: 3.746 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.808e-05/0.855, allocations: 15.95 kB / 0.6062 GB, free: 3.73 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03025/0.8852, allocations: 10.43 MB / 0.6164 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.249e-05/0.8854, allocations: 0 / 0.6164 GB, free: 9.23 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002232/0.8876, allocations: 347.5 kB / 0.6167 GB, free: 8.891 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004434/0.8921, allocations: 1.363 MB / 0.618 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004803/0.8926, allocations: 39.98 kB / 0.6181 GB, free: 7.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3297/1.222, allocations: 9.373 MB / 0.6272 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/1.222, allocations: 4.094 kB / 0.6272 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01672/1.239, allocations: 7.558 MB / 0.6346 GB, free: 154.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002638/1.242, allocations: 0.7805 MB / 0.6354 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007365/1.243, allocations: 33.44 kB / 0.6354 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/1.244, allocations: 126.5 kB / 0.6355 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005894/1.245, allocations: 139.4 kB / 0.6356 GB, free: 154.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/1.245, allocations: 60.78 kB / 0.6357 GB, free: 154.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005619/1.251, allocations: 3.039 MB / 0.6387 GB, free: 153 MB / 494.1 MB Notification: Performance of sort global known variables: time 9.82e-07/1.251, allocations: 2.344 kB / 0.6387 GB, free: 153 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007849/1.259, allocations: 1.261 MB / 0.6399 GB, free: 152.9 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.0006109/1.259, allocations: 170.9 kB / 0.6401 GB, free: 152.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01108/1.27, allocations: 6.408 MB / 0.6463 GB, free: 150.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.905e-06/1.27, allocations: 0 / 0.6463 GB, free: 150.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003719/1.274, allocations: 2.198 MB / 0.6485 GB, free: 149.6 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005482/1.28, allocations: 0.5496 MB / 0.649 GB, free: 149.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02474/1.304, allocations: 11.72 MB / 0.6605 GB, free: 144.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007732/1.312, allocations: 3.998 MB / 0.6644 GB, free: 141.4 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00649/1.319, allocations: 2.089 MB / 0.6664 GB, free: 140 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/1.32, allocations: 283.4 kB / 0.6667 GB, free: 139.8 MB / 494.1 MB Notification: Performance of SimCode: time 1.744e-06/1.32, allocations: 0 / 0.6667 GB, free: 139.8 MB / 494.1 MB Notification: Performance of Templates: time 0.08688/1.407, allocations: 43.93 MB / 0.7096 GB, free: 96 MB / 494.1 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)