Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008407/0.0008407, allocations: 95.14 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009717/0.0009718, allocations: 207.1 kB / 18.94 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002292/0.0002293, allocations: 4 kB / 308.4 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09659, allocations: 51.52 MB / 359.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2418/0.3384, allocations: 63.87 MB / 423.8 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.03271/0.3712, allocations: 13.1 MB / 436.9 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01534/0.3866, allocations: 287.3 kB / 437.2 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002099/0.3887, allocations: 0.4975 MB / 437.7 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006102/0.3948, allocations: 2.013 MB / 439.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.3972, allocations: 0.8621 MB / 440.5 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01103/0.4082, allocations: 8.794 MB / 449.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0111/0.4194, allocations: 7.327 MB / 456.7 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/0.4226, allocations: 1.506 MB / 458.2 MB, free: 8.531 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004101/0.4267, allocations: 2.523 MB / 460.7 MB, free: 6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009802/0.4278, allocations: 180 kB / 460.9 MB, free: 5.824 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002752/0.4305, allocations: 1.123 MB / 462 MB, free: 4.699 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002826/0.4334, allocations: 2.17 MB / 464.2 MB, free: 2.523 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003937/0.4373, allocations: 2.455 MB / 466.6 MB, free: 48 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007916/0.4453, allocations: 7.007 MB / 473.6 MB, free: 9.023 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4453, allocations: 0 / 473.6 MB, free: 9.023 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4453, allocations: 0 / 473.6 MB, free: 9.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000329/0.4456, allocations: 0 / 473.6 MB, free: 9.023 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: 1731 * Number of variables: 1731 Notification: Performance of Generate backend data structure: time 0.01216/0.4578, allocations: 4.984 MB / 478.6 MB, free: 3.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.4579, allocations: 12.03 kB / 478.6 MB, free: 3.957 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01226/0.4702, allocations: 2.646 MB / 481.3 MB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007781/0.478, allocations: 3.73 MB / 485 MB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.4782, allocations: 300.1 kB / 485.3 MB, free: 13.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001236/0.4795, allocations: 439.9 kB / 485.7 MB, free: 12.79 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.5002, allocations: 11.56 MB / 497.3 MB, free: 500 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002036/0.5005, allocations: 55.5 kB / 497.3 MB, free: 444 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001092/0.5016, allocations: 183.9 kB / 497.5 MB, free: 260 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003508/0.5051, allocations: 2.03 MB / 499.5 MB, free: 14.21 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01985/0.525, allocations: 9.967 MB / 0.4976 GB, free: 4.23 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2582/0.7832, allocations: 45.54 MB / 0.542 GB, free: 117.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/0.7947, allocations: 4.384 MB / 0.5463 GB, free: 116.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003619/0.7984, allocations: 2.477 MB / 0.5487 GB, free: 116.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01454/0.813, allocations: 9.832 MB / 0.5583 GB, free: 112.3 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.672e-05/0.813, allocations: 54.28 kB / 0.5584 GB, free: 112.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.869e-06/0.8131, allocations: 0 / 0.5584 GB, free: 112.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.05003/0.8631, allocations: 19.94 MB / 0.5779 GB, free: 103.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.8632, allocations: 204.5 kB / 0.5781 GB, free: 103.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005378/0.8686, allocations: 4.685 MB / 0.5826 GB, free: 98.5 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003967/0.869, allocations: 53.7 kB / 0.5827 GB, free: 98.44 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001684/0.8707, allocations: 3.558 MB / 0.5862 GB, free: 94.88 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008157/0.8715, allocations: 0.7643 MB / 0.5869 GB, free: 94.13 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000597/0.8721, allocations: 0.5709 MB / 0.5875 GB, free: 93.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.547e-05/0.8722, allocations: 305.1 kB / 0.5878 GB, free: 93.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002932/0.8751, allocations: 2.41 MB / 0.5901 GB, free: 90.84 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004051/0.8792, allocations: 6.252 MB / 0.5962 GB, free: 82.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008229/0.8875, allocations: 9.306 MB / 0.6053 GB, free: 71.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.272e-05/0.8876, allocations: 43.98 kB / 0.6053 GB, free: 71.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01547/0.9031, allocations: 9.783 MB / 0.6149 GB, free: 62.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.867e-05/0.9032, allocations: 64 kB / 0.615 GB, free: 61.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001126/0.9033, allocations: 133.1 kB / 0.6151 GB, free: 61.82 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003827/0.9071, allocations: 1.614 MB / 0.6167 GB, free: 60.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004465/0.9116, allocations: 1.485 MB / 0.6181 GB, free: 58.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01008/0.9217, allocations: 9.549 MB / 0.6274 GB, free: 48.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004828/0.9266, allocations: 359.5 kB / 0.6278 GB, free: 48.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009123/0.9276, allocations: 392 kB / 0.6282 GB, free: 48.17 MB / 446.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.004077/0.9316, allocations: 2.464 MB / 0.6306 GB, free: 45.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009658/0.9326, allocations: 414.6 kB / 0.631 GB, free: 45.29 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007837/0.9405, allocations: 4.247 MB / 0.6351 GB, free: 41.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.361e-05/0.9406, allocations: 20 kB / 0.6351 GB, free: 41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.925e-05/0.9406, allocations: 8 kB / 0.6351 GB, free: 41 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.433e-05/0.9406, allocations: 7.969 kB / 0.6351 GB, free: 40.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01707/0.9577, allocations: 9.728 MB / 0.6446 GB, free: 31.22 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/0.9577, allocations: 4 kB / 0.6446 GB, free: 31.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.9591, allocations: 299.6 kB / 0.6449 GB, free: 30.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003573/0.9627, allocations: 1.358 MB / 0.6463 GB, free: 29.56 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001602/0.9629, allocations: 35.98 kB / 0.6463 GB, free: 29.53 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008857/0.9717, allocations: 8.771 MB / 0.6549 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.9718, allocations: 3.938 kB / 0.6549 GB, free: 20.49 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009491/0.9813, allocations: 6.974 MB / 0.6617 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001069/0.9824, allocations: 475.5 kB / 0.6621 GB, free: 13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005969/0.983, allocations: 28 kB / 0.6621 GB, free: 12.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001615/0.9846, allocations: 123.8 kB / 0.6623 GB, free: 12.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003422/0.985, allocations: 117.9 kB / 0.6624 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001213/0.9851, allocations: 51.98 kB / 0.6624 GB, free: 12.68 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003901/0.989, allocations: 2.956 MB / 0.6653 GB, free: 9.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.989, allocations: 0 / 0.6653 GB, free: 9.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005276/0.9943, allocations: 1.19 MB / 0.6665 GB, free: 8.547 MB / 446.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.0004455/0.9948, allocations: 168.3 kB / 0.6666 GB, free: 8.375 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00825/1.003, allocations: 5.968 MB / 0.6725 GB, free: 2.406 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/1.003, allocations: 1.875 kB / 0.6725 GB, free: 2.406 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002869/1.006, allocations: 2.011 MB / 0.6744 GB, free: 376 kB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004087/1.01, allocations: 0.5069 MB / 0.6749 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02442/1.035, allocations: 14.09 MB / 0.6887 GB, free: 1.723 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005712/1.04, allocations: 3.8 MB / 0.6924 GB, free: 13.89 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.042, allocations: 315.4 kB / 0.6927 GB, free: 13.58 MB / 478.1 MB Notification: Performance of SimCode: time 7.01e-07/1.042, allocations: 0 / 0.6927 GB, free: 13.58 MB / 478.1 MB Notification: Performance of Templates: time 0.2939/1.335, allocations: 110.7 MB / 0.8008 GB, free: 83.06 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches