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.001627/0.001627, allocations: 107.4 kB / 15.22 MB, free: 0.6562 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.001175/0.001175, allocations: 195.3 kB / 16.14 MB, free: 6.602 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.612/1.612, allocations: 205.1 MB / 222 MB, free: 4.762 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.001326/0.001326, allocations: 51.94 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2586/0.2599, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.07594/0.3359, allocations: 70.17 MB / 394.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.05563/0.3916, allocations: 14.04 MB / 408.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02218/0.4139, allocations: 315.2 kB / 409.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01331/0.4273, allocations: 4.224 MB / 413.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008748/0.4361, allocations: 2.129 MB / 415.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002869/0.439, allocations: 0.8544 MB / 416.4 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01293/0.4519, allocations: 8.53 MB / 424.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007981/0.4599, allocations: 5.175 MB / 430.1 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003947/0.4639, allocations: 1.95 MB / 432.1 MB, free: 8.363 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005015/0.469, allocations: 3.135 MB / 435.2 MB, free: 5.219 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001541/0.4705, allocations: 344 kB / 435.5 MB, free: 4.883 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00339/0.4739, allocations: 1.268 MB / 436.8 MB, free: 3.613 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003667/0.4776, allocations: 2.525 MB / 439.3 MB, free: 1.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00563/0.4833, allocations: 2.862 MB / 442.2 MB, free: 14.2 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.4946, allocations: 9.178 MB / 451.4 MB, free: 4.996 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.4946, allocations: 4 kB / 451.4 MB, free: 4.992 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4947, allocations: 4 kB / 451.4 MB, free: 4.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002819/0.4949, allocations: 0 / 451.4 MB, free: 4.988 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.1795/0.6744, allocations: 6.338 MB / 457.7 MB, free: 115.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.356e-05/0.6745, allocations: 10.91 kB / 457.7 MB, free: 115.3 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01168/0.6862, allocations: 2.616 MB / 460.3 MB, free: 114.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008377/0.6946, allocations: 3.972 MB / 464.3 MB, free: 112 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001842/0.6948, allocations: 311.2 kB / 464.6 MB, free: 111.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001274/0.6961, allocations: 445.4 kB / 465 MB, free: 111.7 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01645/0.7126, allocations: 12.24 MB / 477.3 MB, free: 100.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/0.7128, allocations: 63.42 kB / 477.4 MB, free: 100.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004719/0.7132, allocations: 199.8 kB / 477.5 MB, free: 100.1 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002725/0.716, allocations: 2.198 MB / 479.7 MB, free: 97.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0162/0.7322, allocations: 10.54 MB / 490.3 MB, free: 87.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04791/0.7801, allocations: 47.57 MB / 0.5252 GB, free: 38.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.7903, allocations: 4.596 MB / 0.5297 GB, free: 33.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002892/0.7933, allocations: 2.639 MB / 0.5323 GB, free: 31.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01415/0.8074, allocations: 10.44 MB / 0.5425 GB, free: 20.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.8075, allocations: 59.81 kB / 0.5426 GB, free: 20.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=192): time 4.719e-06/0.8075, allocations: 0 / 0.5426 GB, free: 20.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.04749/0.855, allocations: 20.98 MB / 0.5631 GB, free: 15.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.8552, allocations: 209.2 kB / 0.5633 GB, free: 15.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007924/0.8631, allocations: 4.82 MB / 0.568 GB, free: 10.21 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007385/0.8639, allocations: 57.7 kB / 0.568 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003236/0.8672, allocations: 3.719 MB / 0.5716 GB, free: 6.375 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00162/0.8688, allocations: 0.8253 MB / 0.5725 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002366/0.8712, allocations: 1.4 MB / 0.5738 GB, free: 4.129 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001512/0.8713, allocations: 312.9 kB / 0.5741 GB, free: 3.824 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004479/0.8758, allocations: 2.578 MB / 0.5766 GB, free: 1.242 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006952/0.8828, allocations: 6.561 MB / 0.583 GB, free: 8.719 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/0.8949, allocations: 9.812 MB / 0.5926 GB, free: 12.96 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001395/0.8951, allocations: 40 kB / 0.5927 GB, free: 12.92 MB / 430.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.02112/0.9162, allocations: 10.25 MB / 0.6027 GB, free: 2.652 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.246e-05/0.9164, allocations: 64 kB / 0.6027 GB, free: 2.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000134/0.9165, allocations: 140 kB / 0.6029 GB, free: 2.453 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004344/0.9209, allocations: 1.611 MB / 0.6044 GB, free: 0.8359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2123/1.133, allocations: 1.562 MB / 0.606 GB, free: 142.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01218/1.145, allocations: 9.549 MB / 0.6153 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006316/1.152, allocations: 386.1 kB / 0.6157 GB, free: 138.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000935/1.153, allocations: 412.5 kB / 0.6161 GB, free: 138.3 MB / 430.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.003783/1.157, allocations: 2.571 MB / 0.6186 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008665/1.157, allocations: 425.1 kB / 0.619 GB, free: 137.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007283/1.165, allocations: 4.625 MB / 0.6235 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-05/1.165, allocations: 24.62 kB / 0.6235 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.746e-05/1.165, allocations: 8.938 kB / 0.6235 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/1.165, allocations: 7.594 kB / 0.6235 GB, free: 135.6 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01767/1.182, allocations: 10.48 MB / 0.6338 GB, free: 131.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.321e-05/1.183, allocations: 3.906 kB / 0.6338 GB, free: 131.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001547/1.184, allocations: 347.7 kB / 0.6341 GB, free: 131.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003634/1.188, allocations: 1.36 MB / 0.6354 GB, free: 129.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001861/1.188, allocations: 32 kB / 0.6355 GB, free: 129.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009199/1.197, allocations: 8.742 MB / 0.644 GB, free: 120.8 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.197, allocations: 0 / 0.644 GB, free: 120.8 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01016/1.207, allocations: 7.573 MB / 0.6514 GB, free: 113.4 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001675/1.209, allocations: 0.7842 MB / 0.6521 GB, free: 112.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004893/1.21, allocations: 36 kB / 0.6522 GB, free: 112.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/1.211, allocations: 127.8 kB / 0.6523 GB, free: 112.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003926/1.211, allocations: 129.8 kB / 0.6524 GB, free: 112.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/1.212, allocations: 58.17 kB / 0.6525 GB, free: 112.4 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003512/1.215, allocations: 3.045 MB / 0.6555 GB, free: 109.4 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.215, allocations: 0.9375 kB / 0.6555 GB, free: 109.4 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004942/1.22, allocations: 1.268 MB / 0.6567 GB, free: 108.1 MB / 430.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.0003661/1.22, allocations: 168.4 kB / 0.6569 GB, free: 107.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007646/1.228, allocations: 6.388 MB / 0.6631 GB, free: 101.6 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/1.228, allocations: 0 / 0.6631 GB, free: 101.6 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002572/1.231, allocations: 2.194 MB / 0.6652 GB, free: 99.37 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002464/1.233, allocations: 0.513 MB / 0.6657 GB, free: 98.87 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01753/1.251, allocations: 14.4 MB / 0.6798 GB, free: 84.54 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003337/1.254, allocations: 3.996 MB / 0.6837 GB, free: 80.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004553/1.259, allocations: 2.087 MB / 0.6857 GB, free: 78.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000775/1.259, allocations: 283.4 kB / 0.686 GB, free: 78.14 MB / 430.1 MB Notification: Performance of SimCode: time 1.012e-06/1.259, allocations: 3.938 kB / 0.686 GB, free: 78.13 MB / 430.1 MB Notification: Performance of Templates: time 0.07308/1.333, allocations: 45.64 MB / 0.7306 GB, free: 32.51 MB / 430.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)