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.001588/0.001587, allocations: 116.3 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001917/0.001917, allocations: 210 kB / 19.4 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.52/2.52, allocations: 227.4 MB / 247.6 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 60.14 kB / 359.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5129/0.5149, allocations: 50.55 MB / 409.9 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.02713/0.5421, allocations: 13.43 MB / 423.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0201/0.5623, allocations: 4.555 MB / 427.9 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004734/0.5671, allocations: 91.75 kB / 428 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0169/0.5841, allocations: 4.174 MB / 432.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01411/0.5983, allocations: 2.143 MB / 434.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003622/0.602, allocations: 0.9243 MB / 435.2 MB, free: 8.121 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01331/0.6153, allocations: 6.117 MB / 441.4 MB, free: 1.988 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01166/0.6271, allocations: 5.201 MB / 446.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005858/0.633, allocations: 2.123 MB / 448.7 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007633/0.6407, allocations: 2.8 MB / 451.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002382/0.6432, allocations: 468 kB / 451.9 MB, free: 7.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005284/0.6485, allocations: 1.342 MB / 453.3 MB, free: 5.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005434/0.6539, allocations: 2.51 MB / 455.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007578/0.6616, allocations: 2.836 MB / 458.6 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02138/0.683, allocations: 9.029 MB / 467.7 MB, free: 7.562 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.304e-05/0.6831, allocations: 4 kB / 467.7 MB, free: 7.559 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.406e-06/0.6831, allocations: 0 / 467.7 MB, free: 7.559 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003558/0.6835, allocations: 0 / 467.7 MB, free: 7.559 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.02937/0.7129, allocations: 6.075 MB / 473.7 MB, free: 1.41 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.444e-05/0.7129, allocations: 12.03 kB / 473.7 MB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02464/0.7376, allocations: 2.576 MB / 476.3 MB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.7523, allocations: 3.808 MB / 480.1 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005225/0.7529, allocations: 296.1 kB / 480.4 MB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00294/0.7559, allocations: 427.8 kB / 480.8 MB, free: 10.24 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0351/0.791, allocations: 11.54 MB / 492.4 MB, free: 13.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003085/0.7914, allocations: 63.42 kB / 492.4 MB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006407/0.7978, allocations: 183.9 kB / 492.6 MB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005333/0.8032, allocations: 2.026 MB / 494.7 MB, free: 11.67 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04025/0.8435, allocations: 9.932 MB / 0.4928 GB, free: 1.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.103/0.9465, allocations: 45.35 MB / 0.537 GB, free: 2.996 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4555/1.402, allocations: 4.357 MB / 0.5413 GB, free: 122.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005659/1.408, allocations: 2.472 MB / 0.5437 GB, free: 121.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03171/1.44, allocations: 9.845 MB / 0.5533 GB, free: 116.9 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.998e-05/1.44, allocations: 55.97 kB / 0.5534 GB, free: 116.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 8.196e-06/1.44, allocations: 3.938 kB / 0.5534 GB, free: 116.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.08353/1.523, allocations: 19.91 MB / 0.5728 GB, free: 102.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.807e-05/1.523, allocations: 197.2 kB / 0.573 GB, free: 102.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009911/1.533, allocations: 4.689 MB / 0.5776 GB, free: 97.43 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006204/1.534, allocations: 53.7 kB / 0.5776 GB, free: 97.37 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002958/1.537, allocations: 3.559 MB / 0.5811 GB, free: 93.82 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001338/1.538, allocations: 0.7658 MB / 0.5819 GB, free: 93.05 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003144/1.542, allocations: 1.336 MB / 0.5832 GB, free: 91.71 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.384e-05/1.542, allocations: 309 kB / 0.5835 GB, free: 91.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004931/1.547, allocations: 2.403 MB / 0.5858 GB, free: 89 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007749/1.554, allocations: 6.249 MB / 0.5919 GB, free: 80.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/1.568, allocations: 9.291 MB / 0.601 GB, free: 69.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000197/1.568, allocations: 43.94 kB / 0.601 GB, free: 69.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.02654/1.594, allocations: 9.77 MB / 0.6106 GB, free: 59.88 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001395/1.595, allocations: 61 kB / 0.6106 GB, free: 59.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000215/1.595, allocations: 136 kB / 0.6108 GB, free: 59.69 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006243/1.601, allocations: 1.612 MB / 0.6123 GB, free: 58.08 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008172/1.609, allocations: 1.478 MB / 0.6138 GB, free: 56.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01755/1.627, allocations: 10.26 MB / 0.6238 GB, free: 46.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009304/1.636, allocations: 359.3 kB / 0.6241 GB, free: 45.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001924/1.638, allocations: 392 kB / 0.6245 GB, free: 45.32 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.007214/1.646, allocations: 2.454 MB / 0.6269 GB, free: 42.85 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001408/1.647, allocations: 406.8 kB / 0.6273 GB, free: 42.45 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01149/1.658, allocations: 4.232 MB / 0.6314 GB, free: 38.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.844e-05/1.659, allocations: 27.53 kB / 0.6315 GB, free: 38.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.25e-05/1.659, allocations: 8.188 kB / 0.6315 GB, free: 38.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.166e-05/1.659, allocations: 11.95 kB / 0.6315 GB, free: 38.16 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02822/1.687, allocations: 9.664 MB / 0.6409 GB, free: 28.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.756e-05/1.687, allocations: 4 kB / 0.6409 GB, free: 28.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002391/1.689, allocations: 303.5 kB / 0.6412 GB, free: 28.15 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005664/1.695, allocations: 1.35 MB / 0.6425 GB, free: 26.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005328/1.696, allocations: 36 kB / 0.6426 GB, free: 26.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01533/1.711, allocations: 9.39 MB / 0.6517 GB, free: 17.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/1.711, allocations: 3.938 kB / 0.6517 GB, free: 17.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02001/1.731, allocations: 6.971 MB / 0.6585 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002056/1.733, allocations: 451.7 kB / 0.659 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001808/1.735, allocations: 39.98 kB / 0.659 GB, free: 9.594 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00344/1.739, allocations: 107.9 kB / 0.6591 GB, free: 9.488 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008491/1.739, allocations: 125.1 kB / 0.6592 GB, free: 9.363 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002692/1.74, allocations: 48 kB / 0.6593 GB, free: 9.316 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01148/1.751, allocations: 2.96 MB / 0.6622 GB, free: 6.359 MB / 462.1 MB Notification: Performance of sort global known variables: time 9.02e-07/1.751, allocations: 0 / 0.6622 GB, free: 6.359 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01019/1.762, allocations: 1.192 MB / 0.6633 GB, free: 5.176 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.0009419/1.763, allocations: 158.5 kB / 0.6635 GB, free: 5.016 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0183/1.781, allocations: 5.986 MB / 0.6693 GB, free: 15.03 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/1.781, allocations: 0 / 0.6693 GB, free: 15.03 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005662/1.787, allocations: 2.005 MB / 0.6713 GB, free: 13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01113/1.798, allocations: 0.5372 MB / 0.6718 GB, free: 12.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04621/1.844, allocations: 11.53 MB / 0.6831 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.015/1.859, allocations: 3.799 MB / 0.6868 GB, free: 13.06 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001837/1.861, allocations: 315.4 kB / 0.6871 GB, free: 12.76 MB / 494.1 MB Notification: Performance of SimCode: time 1.694e-06/1.861, allocations: 0 / 0.6871 GB, free: 12.76 MB / 494.1 MB Notification: Performance of Templates: time 0.745/2.606, allocations: 113.2 MB / 0.7976 GB, free: 110.6 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/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