Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gearConstraint.actuatedRevolute_b.phi|gearConstraint.actuatedRevolute_b.w|inertia2.phi|inertia2.w",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001602/0.001602, allocations: 117.6 kB / 17.83 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00147/0.00147, allocations: 208.6 kB / 18.79 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.476/1.476, allocations: 230.4 MB / 250 MB, free: 9.047 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002047/0.002047, allocations: 67.83 kB / 367.3 MB, free: 7.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2648, allocations: 53.32 MB / 420.7 MB, free: 8.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0163/0.2811, allocations: 13.5 MB / 434.2 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009466/0.2906, allocations: 4.563 MB / 438.7 MB, free: 6.211 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.2924, allocations: 91.69 kB / 438.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007747/0.3001, allocations: 4.237 MB / 443 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005804/0.3059, allocations: 2.171 MB / 445.2 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002171/0.3081, allocations: 0.9359 MB / 446.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009013/0.3171, allocations: 6.126 MB / 452.3 MB, free: 8.621 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006664/0.3238, allocations: 4.337 MB / 456.6 MB, free: 4.223 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003923/0.3277, allocations: 2.126 MB / 458.7 MB, free: 2.09 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004915/0.3326, allocations: 3.01 MB / 461.8 MB, free: 15.07 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001661/0.3343, allocations: 472 kB / 462.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003428/0.3377, allocations: 1.373 MB / 463.6 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003635/0.3414, allocations: 2.563 MB / 466.2 MB, free: 10.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004736/0.3461, allocations: 2.84 MB / 469 MB, free: 7.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01314/0.3592, allocations: 9.059 MB / 478 MB, free: 14.71 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.3592, allocations: 0 / 478 MB, free: 14.71 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3592, allocations: 0 / 478 MB, free: 14.71 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004853/0.3597, allocations: 0 / 478 MB, free: 14.71 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01738/0.3771, allocations: 6.23 MB / 484.3 MB, free: 8.402 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.3772, allocations: 8.031 kB / 484.3 MB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01219/0.3893, allocations: 2.618 MB / 486.9 MB, free: 5.77 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01011/0.3995, allocations: 3.818 MB / 490.7 MB, free: 1.898 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003931/0.3998, allocations: 300.1 kB / 491 MB, free: 1.605 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002191/0.402, allocations: 427.9 kB / 491.4 MB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02505/0.4271, allocations: 11.55 MB / 0.4912 GB, free: 4.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002579/0.4273, allocations: 59.52 kB / 0.4913 GB, free: 4.832 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001202/0.4286, allocations: 195.8 kB / 0.4914 GB, free: 4.641 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003731/0.4323, allocations: 2.03 MB / 0.4934 GB, free: 2.598 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/0.4541, allocations: 9.932 MB / 0.5031 GB, free: 8.652 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3056/0.7597, allocations: 45.42 MB / 0.5475 GB, free: 86.48 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0133/0.773, allocations: 4.225 MB / 0.5516 GB, free: 85.81 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002588/0.7756, allocations: 2.295 MB / 0.5538 GB, free: 85.77 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01609/0.7917, allocations: 9.858 MB / 0.5635 GB, free: 81.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.7917, allocations: 53.78 kB / 0.5635 GB, free: 81.53 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 5.7e-06/0.7917, allocations: 0 / 0.5635 GB, free: 81.53 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05144/0.8432, allocations: 20.16 MB / 0.5832 GB, free: 66.59 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.413e-05/0.8432, allocations: 201.2 kB / 0.5834 GB, free: 66.35 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005564/0.8488, allocations: 4.701 MB / 0.588 GB, free: 61.72 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003332/0.8491, allocations: 53.7 kB / 0.588 GB, free: 61.66 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00147/0.8506, allocations: 3.7 MB / 0.5917 GB, free: 58.22 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006141/0.8512, allocations: 0.7992 MB / 0.5924 GB, free: 57.44 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/0.8525, allocations: 1.343 MB / 0.5938 GB, free: 56.09 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.97e-05/0.8526, allocations: 305.1 kB / 0.594 GB, free: 55.79 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002549/0.8551, allocations: 2.402 MB / 0.5964 GB, free: 53.38 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/0.859, allocations: 6.254 MB / 0.6025 GB, free: 45.36 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007683/0.8667, allocations: 9.286 MB / 0.6116 GB, free: 34.37 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001014/0.8668, allocations: 43.94 kB / 0.6116 GB, free: 34.32 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01642/0.8832, allocations: 9.772 MB / 0.6211 GB, free: 24.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.676e-05/0.8833, allocations: 64 kB / 0.6212 GB, free: 24.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001061/0.8834, allocations: 132.9 kB / 0.6213 GB, free: 24.35 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00404/0.8874, allocations: 1.608 MB / 0.6229 GB, free: 22.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00446/0.8919, allocations: 1.486 MB / 0.6244 GB, free: 21.25 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.9025, allocations: 10.26 MB / 0.6344 GB, free: 10.71 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005554/0.908, allocations: 367.5 kB / 0.6347 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/0.9092, allocations: 388 kB / 0.6351 GB, free: 9.969 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 614 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 (793): * Single equations (assignments): 788 * 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.004446/0.9136, allocations: 2.453 MB / 0.6375 GB, free: 7.508 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001079/0.9147, allocations: 433.1 kB / 0.6379 GB, free: 7.082 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007701/0.9224, allocations: 4.22 MB / 0.642 GB, free: 2.848 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.231e-05/0.9224, allocations: 24 kB / 0.642 GB, free: 2.824 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.016e-05/0.9225, allocations: 8.188 kB / 0.6421 GB, free: 2.816 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.117e-05/0.9225, allocations: 7.969 kB / 0.6421 GB, free: 2.809 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02113/0.9436, allocations: 9.66 MB / 0.6515 GB, free: 9.102 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-05/0.9436, allocations: 480 / 0.6515 GB, free: 9.102 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001672/0.9453, allocations: 299.6 kB / 0.6518 GB, free: 8.809 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004477/0.9498, allocations: 1.361 MB / 0.6531 GB, free: 7.441 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002863/0.9501, allocations: 39.92 kB / 0.6532 GB, free: 7.402 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01332/0.9634, allocations: 9.392 MB / 0.6623 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.139e-06/0.9634, allocations: 11.91 kB / 0.6623 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01358/0.977, allocations: 6.973 MB / 0.6691 GB, free: 6.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001796/0.9788, allocations: 478.1 kB / 0.6696 GB, free: 6.242 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001404/0.9802, allocations: 32 kB / 0.6696 GB, free: 6.211 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002495/0.9827, allocations: 115.8 kB / 0.6697 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005705/0.9832, allocations: 117.1 kB / 0.6699 GB, free: 5.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002318/0.9835, allocations: 48 kB / 0.6699 GB, free: 5.934 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006728/0.9902, allocations: 2.96 MB / 0.6728 GB, free: 2.977 MB / 494.1 MB Notification: Performance of sort global known variables: time 8e-08/0.9902, allocations: 0 / 0.6728 GB, free: 2.977 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007586/0.9978, allocations: 1.183 MB / 0.6739 GB, free: 1.797 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 (147): * Single equations (assignments): 142 * 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.0007345/0.9985, allocations: 174.8 kB / 0.6741 GB, free: 1.617 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01136/1.01, allocations: 5.735 MB / 0.6797 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.71e-06/1.01, allocations: 0 / 0.6797 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00358/1.013, allocations: 1.883 MB / 0.6816 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004586/1.018, allocations: 0.5328 MB / 0.6821 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02292/1.041, allocations: 11.21 MB / 0.693 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006373/1.047, allocations: 3.815 MB / 0.6967 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005263/1.053, allocations: 1.985 MB / 0.6987 GB, free: 8.348 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/1.054, allocations: 267.4 kB / 0.6989 GB, free: 8.09 MB / 0.5137 GB Notification: Performance of SimCode: time 9.01e-07/1.054, allocations: 4 kB / 0.6989 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of Templates: time 0.09544/1.149, allocations: 42.49 MB / 0.7404 GB, free: 13.88 MB / 0.5606 GB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches