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.001177/0.001176, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001233/0.001233, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.39/1.39, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001012/0.001012, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2465, allocations: 50.54 MB / 409.2 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01293/0.2595, allocations: 13.44 MB / 422.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008052/0.2676, allocations: 4.552 MB / 427.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001467/0.2691, allocations: 87.75 kB / 427.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006544/0.2756, allocations: 4.182 MB / 431.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004362/0.28, allocations: 2.132 MB / 433.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.2817, allocations: 0.9282 MB / 434.6 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006603/0.2883, allocations: 6.12 MB / 440.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005119/0.2935, allocations: 5.192 MB / 445.9 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00259/0.2961, allocations: 2.126 MB / 448 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003402/0.2995, allocations: 2.792 MB / 450.8 MB, free: 7.852 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001135/0.3006, allocations: 468 kB / 451.3 MB, free: 7.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.303, allocations: 1.346 MB / 452.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002107/0.3051, allocations: 2.486 MB / 455.1 MB, free: 3.555 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002361/0.3075, allocations: 2.84 MB / 457.9 MB, free: 0.6992 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008667/0.3162, allocations: 9.056 MB / 467 MB, free: 7.609 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3162, allocations: 0 / 467 MB, free: 7.609 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3162, allocations: 0 / 467 MB, free: 7.609 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000211/0.3164, allocations: 0 / 467 MB, free: 7.609 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.0119/0.3283, allocations: 6.234 MB / 473.2 MB, free: 1.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3284, allocations: 8.031 kB / 473.2 MB, free: 1.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01099/0.3394, allocations: 2.618 MB / 475.8 MB, free: 14.66 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007327/0.3467, allocations: 3.822 MB / 479.7 MB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001963/0.3469, allocations: 304.1 kB / 480 MB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008542/0.3478, allocations: 423.9 kB / 480.4 MB, free: 10.07 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02014/0.368, allocations: 11.55 MB / 491.9 MB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002266/0.3682, allocations: 59.52 kB / 492 MB, free: 13.72 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001066/0.3693, allocations: 187.9 kB / 492.2 MB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003453/0.3728, allocations: 2.022 MB / 494.2 MB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.031/0.4038, allocations: 9.936 MB / 0.4923 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07211/0.4759, allocations: 45.43 MB / 0.5367 GB, free: 2.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.264/0.7399, allocations: 4.35 MB / 0.5409 GB, free: 122.3 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003283/0.7433, allocations: 2.468 MB / 0.5433 GB, free: 121.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01295/0.7563, allocations: 9.868 MB / 0.553 GB, free: 116.8 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.7563, allocations: 50.88 kB / 0.553 GB, free: 116.8 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 3.908e-06/0.7563, allocations: 3.938 kB / 0.553 GB, free: 116.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.05159/0.8079, allocations: 20.18 MB / 0.5727 GB, free: 102 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.724e-05/0.8081, allocations: 205.2 kB / 0.5729 GB, free: 101.8 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00603/0.8141, allocations: 4.695 MB / 0.5775 GB, free: 97.16 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004436/0.8146, allocations: 53.7 kB / 0.5776 GB, free: 97.11 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001676/0.8163, allocations: 3.703 MB / 0.5812 GB, free: 93.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007615/0.817, allocations: 0.7931 MB / 0.582 GB, free: 92.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001346/0.8184, allocations: 1.345 MB / 0.5833 GB, free: 91.54 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.602e-05/0.8185, allocations: 305.1 kB / 0.5836 GB, free: 91.24 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002642/0.8211, allocations: 2.402 MB / 0.5859 GB, free: 88.84 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003872/0.825, allocations: 6.246 MB / 0.592 GB, free: 80.72 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00776/0.8328, allocations: 9.291 MB / 0.6011 GB, free: 69.54 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.629e-05/0.8329, allocations: 39.94 kB / 0.6011 GB, free: 69.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=855) (initialization): time 0.0162/0.8491, allocations: 9.811 MB / 0.6107 GB, free: 59.68 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001368/0.8493, allocations: 60 kB / 0.6108 GB, free: 59.62 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001913/0.8495, allocations: 136 kB / 0.6109 GB, free: 59.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003954/0.8535, allocations: 1.61 MB / 0.6125 GB, free: 57.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004288/0.8578, allocations: 1.478 MB / 0.6139 GB, free: 56.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.8686, allocations: 10.27 MB / 0.6239 GB, free: 45.85 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005773/0.8744, allocations: 363.2 kB / 0.6243 GB, free: 45.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001261/0.8757, allocations: 392 kB / 0.6246 GB, free: 45.11 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.004985/0.8807, allocations: 2.456 MB / 0.627 GB, free: 42.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001281/0.882, allocations: 425.1 kB / 0.6275 GB, free: 42.23 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007827/0.8898, allocations: 4.243 MB / 0.6316 GB, free: 37.97 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.234e-05/0.8899, allocations: 23.94 kB / 0.6316 GB, free: 37.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-05/0.8899, allocations: 8 kB / 0.6316 GB, free: 37.94 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.996e-05/0.8899, allocations: 7.969 kB / 0.6316 GB, free: 37.93 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0176/0.9075, allocations: 9.665 MB / 0.6411 GB, free: 28.22 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.489e-05/0.9076, allocations: 4 kB / 0.6411 GB, free: 28.21 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.909, allocations: 295.5 kB / 0.6414 GB, free: 27.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003686/0.9127, allocations: 1.358 MB / 0.6427 GB, free: 26.56 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002075/0.9129, allocations: 39.89 kB / 0.6427 GB, free: 26.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009596/0.9225, allocations: 9.395 MB / 0.6519 GB, free: 16.86 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.9225, allocations: 3.938 kB / 0.6519 GB, free: 16.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009843/0.9324, allocations: 6.993 MB / 0.6587 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001455/0.9339, allocations: 474.1 kB / 0.6592 GB, free: 9.348 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001216/0.9351, allocations: 35.28 kB / 0.6592 GB, free: 9.316 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002154/0.9373, allocations: 115.8 kB / 0.6593 GB, free: 9.203 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004326/0.9378, allocations: 121.1 kB / 0.6594 GB, free: 9.082 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/0.9379, allocations: 55.98 kB / 0.6595 GB, free: 9.027 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005613/0.9435, allocations: 2.952 MB / 0.6624 GB, free: 6.078 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9436, allocations: 0 / 0.6624 GB, free: 6.078 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006862/0.9504, allocations: 1.187 MB / 0.6635 GB, free: 4.891 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.000582/0.951, allocations: 170.3 kB / 0.6637 GB, free: 4.719 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009/0.96, allocations: 5.974 MB / 0.6695 GB, free: 14.74 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.9601, allocations: 0 / 0.6695 GB, free: 14.74 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00398/0.9641, allocations: 2.011 MB / 0.6715 GB, free: 12.71 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004153/0.9683, allocations: 0.5387 MB / 0.672 GB, free: 12.18 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02083/0.9891, allocations: 11.2 MB / 0.683 GB, free: 0.9219 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006298/0.9954, allocations: 3.827 MB / 0.6867 GB, free: 13.06 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00501/1, allocations: 1.98 MB / 0.6886 GB, free: 11.07 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009962/1.001, allocations: 267.4 kB / 0.6889 GB, free: 10.81 MB / 494.1 MB Notification: Performance of SimCode: time 7.31e-07/1.001, allocations: 0 / 0.6889 GB, free: 10.81 MB / 494.1 MB Notification: Performance of Templates: time 0.07789/1.079, allocations: 41.78 MB / 0.7297 GB, free: 1.277 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