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.007815/0.007816, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.001554/0.001554, allocations: 193.5 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.489/1.489, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.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.001305/0.001305, allocations: 55.92 kB / 326.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.11, allocations: 46.62 MB / 373.2 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2768/0.3869, allocations: 14.22 MB / 387.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01339/0.4003, allocations: 4.651 MB / 392 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006368/0.4068, allocations: 91.75 kB / 392.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009793/0.4167, allocations: 4.219 MB / 396.3 MB, free: 144 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0106/0.4273, allocations: 2.266 MB / 398.6 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003574/0.4309, allocations: 0.9283 MB / 399.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01271/0.4437, allocations: 5.899 MB / 405.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01053/0.4542, allocations: 5.303 MB / 410.7 MB, free: 8.602 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00593/0.4602, allocations: 2.206 MB / 412.9 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007692/0.4679, allocations: 2.937 MB / 415.9 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002959/0.471, allocations: 500 kB / 416.4 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005784/0.4768, allocations: 1.377 MB / 417.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005612/0.4824, allocations: 2.654 MB / 420.4 MB, free: 164 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008621/0.4911, allocations: 2.995 MB / 423.4 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0189/0.51, allocations: 9.57 MB / 433 MB, free: 3.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.915e-06/0.5101, allocations: 0 / 433 MB, free: 3.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.5101, allocations: 0 / 433 MB, free: 3.547 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004798/0.5106, allocations: 0 / 433 MB, free: 3.547 MB / 350.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.02501/0.5356, allocations: 6.343 MB / 439.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.5357, allocations: 8.031 kB / 439.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01453/0.5503, allocations: 2.618 MB / 441.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01211/0.5624, allocations: 4.035 MB / 446 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003977/0.5629, allocations: 312.5 kB / 446.3 MB, free: 6.086 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003114/0.566, allocations: 451.9 kB / 446.7 MB, free: 5.645 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0303/0.5963, allocations: 12.23 MB / 458.9 MB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002135/0.5966, allocations: 63.42 kB / 459 MB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005731/0.5972, allocations: 191.8 kB / 459.2 MB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003803/0.601, allocations: 2.214 MB / 461.4 MB, free: 6.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02206/0.6231, allocations: 10.53 MB / 471.9 MB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06919/0.6923, allocations: 47.35 MB / 0.5071 GB, free: 10.88 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01157/0.704, allocations: 4.601 MB / 0.5116 GB, free: 6.133 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003575/0.7076, allocations: 2.644 MB / 0.5142 GB, free: 3.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01829/0.7259, allocations: 10.45 MB / 0.5244 GB, free: 8.867 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.83e-05/0.726, allocations: 55.81 kB / 0.5244 GB, free: 8.805 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 4.578e-06/0.726, allocations: 0 / 0.5244 GB, free: 8.805 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.05492/0.7809, allocations: 20.98 MB / 0.5449 GB, free: 3.719 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.781, allocations: 205.2 kB / 0.5451 GB, free: 3.473 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2915/1.073, allocations: 4.817 MB / 0.5498 GB, free: 148.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007387/1.073, allocations: 56.11 kB / 0.5499 GB, free: 148.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004253/1.078, allocations: 3.725 MB / 0.5535 GB, free: 146.5 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001809/1.079, allocations: 0.8287 MB / 0.5543 GB, free: 145.9 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003013/1.082, allocations: 1.398 MB / 0.5557 GB, free: 145.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/1.083, allocations: 307.6 kB / 0.556 GB, free: 144.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005356/1.088, allocations: 2.58 MB / 0.5585 GB, free: 144.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008037/1.096, allocations: 6.561 MB / 0.5649 GB, free: 137.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01508/1.111, allocations: 9.805 MB / 0.5745 GB, free: 129.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003099/1.111, allocations: 44.97 kB / 0.5745 GB, free: 129.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02717/1.139, allocations: 10.26 MB / 0.5846 GB, free: 126.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003745/1.139, allocations: 66.47 kB / 0.5846 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004527/1.14, allocations: 140.3 kB / 0.5847 GB, free: 126.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004626/1.144, allocations: 1.616 MB / 0.5863 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006405/1.151, allocations: 1.566 MB / 0.5879 GB, free: 125.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01268/1.163, allocations: 10.26 MB / 0.5979 GB, free: 119.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006598/1.17, allocations: 376.4 kB / 0.5982 GB, free: 119.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/1.172, allocations: 408 kB / 0.5986 GB, free: 119.1 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.006172/1.178, allocations: 2.577 MB / 0.6011 GB, free: 116.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00152/1.179, allocations: 422.5 kB / 0.6015 GB, free: 116.5 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00911/1.188, allocations: 4.626 MB / 0.6061 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.244e-05/1.189, allocations: 24 kB / 0.6061 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-05/1.189, allocations: 4 kB / 0.6061 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-05/1.189, allocations: 12.84 kB / 0.6061 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02195/1.211, allocations: 10.44 MB / 0.6163 GB, free: 101.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/1.211, allocations: 0 / 0.6163 GB, free: 101.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/1.212, allocations: 344.4 kB / 0.6166 GB, free: 101.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003777/1.216, allocations: 1.358 MB / 0.6179 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002559/1.216, allocations: 43.92 kB / 0.618 GB, free: 100.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009774/1.226, allocations: 9.389 MB / 0.6272 GB, free: 90.42 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.226, allocations: 4 kB / 0.6272 GB, free: 90.41 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01193/1.238, allocations: 7.558 MB / 0.6345 GB, free: 82.82 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002951/1.241, allocations: 0.7806 MB / 0.6353 GB, free: 82.02 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001413/1.243, allocations: 36 kB / 0.6353 GB, free: 81.98 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002652/1.245, allocations: 127.8 kB / 0.6355 GB, free: 81.86 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005102/1.246, allocations: 137.8 kB / 0.6356 GB, free: 81.72 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001801/1.246, allocations: 55.98 kB / 0.6356 GB, free: 81.67 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00554/1.251, allocations: 3.041 MB / 0.6386 GB, free: 78.63 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.252, allocations: 0 / 0.6386 GB, free: 78.63 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007195/1.259, allocations: 1.264 MB / 0.6399 GB, free: 77.38 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 (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.0005168/1.259, allocations: 175.2 kB / 0.64 GB, free: 77.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009501/1.269, allocations: 6.393 MB / 0.6463 GB, free: 70.81 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/1.269, allocations: 0 / 0.6463 GB, free: 70.81 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003195/1.272, allocations: 2.199 MB / 0.6484 GB, free: 68.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005113/1.277, allocations: 0.5556 MB / 0.649 GB, free: 68.06 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02233/1.3, allocations: 11.72 MB / 0.6604 GB, free: 56.32 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0047/1.304, allocations: 4.006 MB / 0.6643 GB, free: 52.28 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004309/1.309, allocations: 2.087 MB / 0.6664 GB, free: 50.19 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007747/1.309, allocations: 283.4 kB / 0.6666 GB, free: 49.91 MB / 478.1 MB Notification: Performance of SimCode: time 1.893e-06/1.309, allocations: 0 / 0.6666 GB, free: 49.91 MB / 478.1 MB Notification: Performance of Templates: time 0.07273/1.382, allocations: 43.92 MB / 0.7095 GB, free: 6.098 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)