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.001033/0.001033, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.00112/0.00112, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.43/1.43, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0004679/0.0004681, allocations: 14.81 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.2536, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.05976/0.3134, allocations: 63.66 MB / 390.1 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03424/0.3477, allocations: 13.41 MB / 403.6 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01552/0.3633, allocations: 303.2 kB / 403.8 MB, free: 5.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01049/0.3738, allocations: 3.305 MB / 407.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02695/0.4008, allocations: 9.735 MB / 416.9 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005454/0.4063, allocations: 0.8074 MB / 417.7 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.04694/0.4532, allocations: 34.97 MB / 452.7 MB, free: 5.004 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2447/0.698, allocations: 6.631 MB / 459.3 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004062/0.7021, allocations: 1.714 MB / 461 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00455/0.7067, allocations: 2.65 MB / 463.7 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008101/0.7075, allocations: 189.1 kB / 463.8 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.7099, allocations: 0.9757 MB / 464.8 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002295/0.7122, allocations: 2.262 MB / 467.1 MB, free: 34.28 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.7135, allocations: 1.088 MB / 468.2 MB, free: 34.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007345/0.7209, allocations: 7.409 MB / 475.6 MB, free: 33.8 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.7209, allocations: 2.625 kB / 475.6 MB, free: 33.8 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.721, allocations: 2.625 kB / 475.6 MB, free: 33.8 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003645/0.7213, allocations: 0 / 475.6 MB, free: 33.8 MB / 382.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.0126/0.7339, allocations: 5.264 MB / 480.8 MB, free: 31.46 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.734, allocations: 12.28 kB / 480.9 MB, free: 31.46 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01129/0.7453, allocations: 2.665 MB / 483.5 MB, free: 30.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008551/0.7539, allocations: 3.911 MB / 487.4 MB, free: 29.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.7542, allocations: 309.6 kB / 487.7 MB, free: 29.07 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00172/0.7559, allocations: 441.6 kB / 488.2 MB, free: 29.06 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02194/0.7779, allocations: 12.23 MB / 0.4887 GB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.7781, allocations: 46.62 kB / 0.4887 GB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007183/0.7788, allocations: 195 kB / 0.4889 GB, free: 25.11 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003029/0.7819, allocations: 2.216 MB / 0.4911 GB, free: 23.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01936/0.8012, allocations: 10.51 MB / 0.5013 GB, free: 16.49 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06301/0.8643, allocations: 47.57 MB / 0.5478 GB, free: 8.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01108/0.8754, allocations: 4.589 MB / 0.5523 GB, free: 5.129 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003462/0.8789, allocations: 2.63 MB / 0.5548 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01576/0.8947, allocations: 10.44 MB / 0.565 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.8948, allocations: 55.88 kB / 0.5651 GB, free: 10.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=192): time 5.58e-06/0.8948, allocations: 0 / 0.5651 GB, free: 10.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=218): time 0.0542/0.949, allocations: 20.98 MB / 0.5856 GB, free: 5.504 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.9492, allocations: 209.2 kB / 0.5858 GB, free: 5.258 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007359/0.9566, allocations: 4.8 MB / 0.5905 GB, free: 472 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005843/0.9572, allocations: 53.7 kB / 0.5905 GB, free: 412 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002858/0.96, allocations: 3.731 MB / 0.5942 GB, free: 12.73 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001189/0.9612, allocations: 0.8298 MB / 0.595 GB, free: 11.91 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000346/0.9616, allocations: 142 kB / 0.5951 GB, free: 11.77 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004134/0.962, allocations: 0.5953 MB / 0.5957 GB, free: 11.17 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004137/0.9662, allocations: 2.562 MB / 0.5982 GB, free: 8.609 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006674/0.9729, allocations: 6.533 MB / 0.6046 GB, free: 192 kB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006414/0.9793, allocations: 3.99 MB / 0.6085 GB, free: 12.32 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-05/0.9794, allocations: 40 kB / 0.6085 GB, free: 12.28 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01929/0.9987, allocations: 10.22 MB / 0.6185 GB, free: 2.898 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.169e-05/0.9988, allocations: 64 kB / 0.6185 GB, free: 2.836 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001456/0.999, allocations: 140 kB / 0.6187 GB, free: 2.699 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004068/1.003, allocations: 1.638 MB / 0.6203 GB, free: 1.055 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2056/1.209, allocations: 1.558 MB / 0.6218 GB, free: 185.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01332/1.222, allocations: 9.54 MB / 0.6311 GB, free: 181.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00583/1.228, allocations: 388 kB / 0.6315 GB, free: 181.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001044/1.229, allocations: 408.5 kB / 0.6319 GB, free: 181.7 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 (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%) 31,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004791/1.234, allocations: 2.577 MB / 0.6344 GB, free: 180.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008901/1.235, allocations: 422.4 kB / 0.6348 GB, free: 180.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007872/1.243, allocations: 4.626 MB / 0.6393 GB, free: 179.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.623e-05/1.243, allocations: 27.38 kB / 0.6393 GB, free: 179.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.911e-05/1.243, allocations: 7.594 kB / 0.6393 GB, free: 179.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.559e-05/1.243, allocations: 10.31 kB / 0.6394 GB, free: 179.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01779/1.261, allocations: 10.5 MB / 0.6496 GB, free: 175.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.609e-05/1.261, allocations: 0 / 0.6496 GB, free: 175.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/1.262, allocations: 350.7 kB / 0.6499 GB, free: 175.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003485/1.266, allocations: 1.364 MB / 0.6513 GB, free: 175.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/1.266, allocations: 35.16 kB / 0.6513 GB, free: 175.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009352/1.275, allocations: 8.729 MB / 0.6598 GB, free: 169 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/1.275, allocations: 0 / 0.6598 GB, free: 169 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01045/1.286, allocations: 7.56 MB / 0.6672 GB, free: 162.8 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002009/1.288, allocations: 0.7868 MB / 0.668 GB, free: 162.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005535/1.288, allocations: 36 kB / 0.668 GB, free: 162 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001498/1.29, allocations: 135.8 kB / 0.6681 GB, free: 161.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000377/1.29, allocations: 136.6 kB / 0.6683 GB, free: 161.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001518/1.29, allocations: 60.14 kB / 0.6683 GB, free: 161.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004301/1.295, allocations: 3.017 MB / 0.6713 GB, free: 158.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2e-07/1.295, allocations: 0 / 0.6713 GB, free: 158.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006266/1.301, allocations: 1.259 MB / 0.6725 GB, free: 157.5 MB / 478.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 (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.0005096/1.302, allocations: 178.3 kB / 0.6727 GB, free: 157.3 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008869/1.31, allocations: 6.356 MB / 0.6789 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.31, allocations: 0 / 0.6789 GB, free: 151.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002807/1.313, allocations: 2.198 MB / 0.681 GB, free: 148.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003105/1.316, allocations: 0.525 MB / 0.6815 GB, free: 148.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01951/1.336, allocations: 13.87 MB / 0.6951 GB, free: 134.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003809/1.34, allocations: 3.995 MB / 0.699 GB, free: 130.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00497/1.345, allocations: 2.091 MB / 0.701 GB, free: 128.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008871/1.346, allocations: 287.4 kB / 0.7013 GB, free: 128.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.22e-07/1.346, allocations: 0 / 0.7013 GB, free: 128.2 MB / 478.1 MB Notification: Performance of Templates: time 0.06858/1.414, allocations: 43.99 MB / 0.7443 GB, free: 84.26 MB / 478.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)