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.001366/0.001366, allocations: 118.2 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00123/0.001231, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 55.91 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2637, allocations: 50.55 MB / 409.2 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.0136/0.2774, allocations: 13.44 MB / 422.7 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009171/0.2866, allocations: 4.549 MB / 427.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001941/0.2885, allocations: 91.75 kB / 427.3 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007083/0.2957, allocations: 4.178 MB / 431.5 MB, free: 11.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004611/0.3003, allocations: 2.183 MB / 433.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001836/0.3022, allocations: 0.9243 MB / 434.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00712/0.3093, allocations: 6.132 MB / 440.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005791/0.3151, allocations: 5.196 MB / 445.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003012/0.3181, allocations: 2.115 MB / 448.1 MB, free: 10.76 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003679/0.3218, allocations: 2.796 MB / 450.8 MB, free: 7.957 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001129/0.323, allocations: 472 kB / 451.3 MB, free: 7.496 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002637/0.3256, allocations: 1.346 MB / 452.7 MB, free: 6.148 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002704/0.3283, allocations: 2.521 MB / 455.2 MB, free: 3.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003116/0.3315, allocations: 2.828 MB / 458 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009264/0.3407, allocations: 9.029 MB / 467 MB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.901e-06/0.3408, allocations: 0 / 467 MB, free: 7.719 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3408, allocations: 0 / 467 MB, free: 7.719 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002405/0.341, allocations: 0 / 467 MB, free: 7.719 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.01337/0.3544, allocations: 6.075 MB / 473.1 MB, free: 1.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3545, allocations: 11.97 kB / 473.1 MB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01045/0.3649, allocations: 2.576 MB / 475.7 MB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0094/0.3744, allocations: 3.804 MB / 479.5 MB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002484/0.3746, allocations: 304.1 kB / 479.8 MB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001243/0.3759, allocations: 427.8 kB / 480.2 MB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01865/0.3945, allocations: 11.55 MB / 491.8 MB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/0.3947, allocations: 51.44 kB / 491.8 MB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004393/0.3951, allocations: 195.8 kB / 492 MB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003041/0.3982, allocations: 2.018 MB / 494 MB, free: 11.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01721/0.4154, allocations: 9.944 MB / 0.4922 GB, free: 1.867 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05255/0.468, allocations: 45.35 MB / 0.5364 GB, free: 3.145 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2497/0.7177, allocations: 4.356 MB / 0.5407 GB, free: 122.6 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003336/0.7211, allocations: 2.468 MB / 0.5431 GB, free: 121.7 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01287/0.734, allocations: 9.849 MB / 0.5527 GB, free: 117.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.7341, allocations: 54.44 kB / 0.5528 GB, free: 117.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.558e-06/0.7341, allocations: 1.281 kB / 0.5528 GB, free: 117.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04774/0.7818, allocations: 19.91 MB / 0.5722 GB, free: 102.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.782, allocations: 205.2 kB / 0.5724 GB, free: 102.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005379/0.7873, allocations: 4.685 MB / 0.577 GB, free: 97.77 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003504/0.7877, allocations: 53.64 kB / 0.577 GB, free: 97.71 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.7891, allocations: 3.562 MB / 0.5805 GB, free: 94.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005874/0.7897, allocations: 0.759 MB / 0.5813 GB, free: 93.4 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001332/0.7911, allocations: 1.338 MB / 0.5826 GB, free: 92.05 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.409e-05/0.7911, allocations: 305.1 kB / 0.5829 GB, free: 91.75 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002676/0.7938, allocations: 2.402 MB / 0.5852 GB, free: 89.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003963/0.7978, allocations: 6.257 MB / 0.5913 GB, free: 81.22 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007436/0.8052, allocations: 9.294 MB / 0.6004 GB, free: 70.04 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.738e-05/0.8053, allocations: 40 kB / 0.6004 GB, free: 70 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.01389/0.8192, allocations: 9.764 MB / 0.61 GB, free: 60.22 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.148e-05/0.8193, allocations: 64.19 kB / 0.61 GB, free: 60.16 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001013/0.8194, allocations: 136 kB / 0.6102 GB, free: 60.03 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003819/0.8233, allocations: 1.609 MB / 0.6117 GB, free: 58.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004153/0.8274, allocations: 1.489 MB / 0.6132 GB, free: 56.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01017/0.8376, allocations: 10.25 MB / 0.6232 GB, free: 46.39 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005766/0.8434, allocations: 367.2 kB / 0.6235 GB, free: 46.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001062/0.8445, allocations: 388 kB / 0.6239 GB, free: 45.66 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.004356/0.8489, allocations: 2.462 MB / 0.6263 GB, free: 43.18 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009046/0.8498, allocations: 406.8 kB / 0.6267 GB, free: 42.78 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007406/0.8572, allocations: 4.239 MB / 0.6308 GB, free: 38.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/0.8573, allocations: 20 kB / 0.6309 GB, free: 38.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.627e-05/0.8573, allocations: 12 kB / 0.6309 GB, free: 38.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.929e-05/0.8573, allocations: 14.12 kB / 0.6309 GB, free: 38.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01672/0.874, allocations: 9.658 MB / 0.6403 GB, free: 28.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-05/0.8741, allocations: 0 / 0.6403 GB, free: 28.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001377/0.8755, allocations: 303.6 kB / 0.6406 GB, free: 28.48 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003522/0.879, allocations: 1.35 MB / 0.6419 GB, free: 27.13 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002664/0.8793, allocations: 31.98 kB / 0.642 GB, free: 27.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009842/0.8892, allocations: 9.39 MB / 0.6511 GB, free: 17.43 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.289e-06/0.8892, allocations: 4 kB / 0.6511 GB, free: 17.43 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/0.8993, allocations: 6.97 MB / 0.6579 GB, free: 10.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001338/0.9007, allocations: 467.6 kB / 0.6584 GB, free: 9.949 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001014/0.9017, allocations: 31.91 kB / 0.6584 GB, free: 9.922 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002019/0.9038, allocations: 115.8 kB / 0.6585 GB, free: 9.809 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00041/0.9042, allocations: 113.1 kB / 0.6586 GB, free: 9.695 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001361/0.9043, allocations: 48 kB / 0.6587 GB, free: 9.648 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004099/0.9085, allocations: 2.96 MB / 0.6616 GB, free: 6.691 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.9085, allocations: 0 / 0.6616 GB, free: 6.691 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006332/0.9148, allocations: 1.185 MB / 0.6627 GB, free: 5.512 MB / 462.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.0007595/0.9156, allocations: 176.4 kB / 0.6629 GB, free: 5.34 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009449/0.9251, allocations: 5.978 MB / 0.6687 GB, free: 15.36 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.9251, allocations: 6.188 kB / 0.6687 GB, free: 15.36 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003476/0.9286, allocations: 2.007 MB / 0.6707 GB, free: 13.32 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004279/0.9329, allocations: 0.5223 MB / 0.6712 GB, free: 12.81 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02337/0.9563, allocations: 11.04 MB / 0.682 GB, free: 1.734 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005479/0.9618, allocations: 3.823 MB / 0.6857 GB, free: 13.88 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004358/0.9662, allocations: 1.98 MB / 0.6877 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007454/0.9669, allocations: 271.4 kB / 0.6879 GB, free: 11.62 MB / 494.1 MB Notification: Performance of SimCode: time 9.52e-07/0.9669, allocations: 0 / 0.6879 GB, free: 11.62 MB / 494.1 MB Notification: Performance of Templates: time 0.08005/1.047, allocations: 41.78 MB / 0.7287 GB, free: 2.098 MB / 0.5137 GB 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/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