Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 122.2 kB / 17.74 MB, free: 5.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 183 kB / 18.67 MB, free: 4.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.2402, allocations: 49.42 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01569/0.2559, allocations: 13.6 MB / 415 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009556/0.2655, allocations: 4.54 MB / 419.5 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002155/0.2677, allocations: 99.62 kB / 419.6 MB, free: 6.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00821/0.276, allocations: 4.229 MB / 423.9 MB, free: 2.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006167/0.2822, allocations: 2.24 MB / 426.1 MB, free: 72 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00212/0.2843, allocations: 0.9204 MB / 427 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008552/0.2929, allocations: 6.068 MB / 433.1 MB, free: 9.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006623/0.2995, allocations: 5.215 MB / 438.3 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003721/0.3033, allocations: 2.142 MB / 440.4 MB, free: 1.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004428/0.3077, allocations: 2.827 MB / 443.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001112/0.3089, allocations: 476 kB / 443.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003092/0.312, allocations: 1.358 MB / 445.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003491/0.3155, allocations: 2.56 MB / 447.7 MB, free: 10.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004219/0.3197, allocations: 2.886 MB / 450.5 MB, free: 7.512 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01782/0.3375, allocations: 9.211 MB / 459.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.647e-06/0.3376, allocations: 0 / 459.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.3376, allocations: 4 kB / 459.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003347/0.338, allocations: 0 / 459.8 MB, free: 14.26 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: 1760 * Number of variables: 1760 Notification: Performance of Generate backend data structure: time 0.01456/0.3525, allocations: 6.285 MB / 466 MB, free: 7.895 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3526, allocations: 12.03 kB / 466.1 MB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01224/0.3648, allocations: 2.618 MB / 468.7 MB, free: 5.258 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009546/0.3744, allocations: 3.896 MB / 472.6 MB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002903/0.3747, allocations: 296.2 kB / 472.9 MB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001377/0.3761, allocations: 435.9 kB / 473.3 MB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02265/0.3988, allocations: 11.73 MB / 485 MB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001961/0.399, allocations: 51.53 kB / 485.1 MB, free: 4.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007509/0.3998, allocations: 195.8 kB / 485.3 MB, free: 3.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003868/0.4037, allocations: 2.089 MB / 487.4 MB, free: 1.777 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02186/0.4255, allocations: 10.09 MB / 497.4 MB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08877/0.5144, allocations: 45.84 MB / 0.5305 GB, free: 8.453 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0143/0.5287, allocations: 4.374 MB / 0.5348 GB, free: 3.934 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003591/0.5323, allocations: 2.463 MB / 0.5372 GB, free: 1.461 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2456/0.7779, allocations: 9.861 MB / 0.5469 GB, free: 126.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.778, allocations: 52.91 kB / 0.5469 GB, free: 126.1 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 3.918e-06/0.778, allocations: 0 / 0.5469 GB, free: 126.1 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04927/0.8273, allocations: 20.25 MB / 0.5667 GB, free: 113.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.193e-05/0.8274, allocations: 201.2 kB / 0.5669 GB, free: 113.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004971/0.8324, allocations: 4.724 MB / 0.5715 GB, free: 108.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003025/0.8327, allocations: 49.7 kB / 0.5715 GB, free: 108.8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/0.8342, allocations: 3.741 MB / 0.5752 GB, free: 105.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006263/0.8348, allocations: 0.7896 MB / 0.576 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001323/0.8361, allocations: 1.349 MB / 0.5773 GB, free: 103.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.459e-05/0.8362, allocations: 309.1 kB / 0.5776 GB, free: 102.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002662/0.8389, allocations: 2.41 MB / 0.5799 GB, free: 100.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003955/0.8428, allocations: 6.269 MB / 0.586 GB, free: 92.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007543/0.8504, allocations: 9.323 MB / 0.5951 GB, free: 81.16 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.463e-05/0.8505, allocations: 42.38 kB / 0.5952 GB, free: 81.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01526/0.8658, allocations: 9.819 MB / 0.6048 GB, free: 71.29 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.121e-05/0.8659, allocations: 64.06 kB / 0.6048 GB, free: 71.23 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001046/0.866, allocations: 136 kB / 0.605 GB, free: 71.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003871/0.8699, allocations: 1.604 MB / 0.6065 GB, free: 69.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004196/0.8741, allocations: 1.501 MB / 0.608 GB, free: 67.98 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01034/0.8845, allocations: 10.26 MB / 0.618 GB, free: 57.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004731/0.8892, allocations: 363.2 kB / 0.6184 GB, free: 57.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009179/0.8902, allocations: 403.9 kB / 0.6187 GB, free: 56.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 47 (torque1.torqueArrow.arrowLine.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 (796): * Single equations (assignments): 791 * 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.003746/0.8939, allocations: 2.473 MB / 0.6212 GB, free: 54.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008966/0.8948, allocations: 433.1 kB / 0.6216 GB, free: 53.79 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007593/0.9024, allocations: 4.232 MB / 0.6257 GB, free: 49.54 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.574e-05/0.9025, allocations: 31.94 kB / 0.6257 GB, free: 49.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.957e-05/0.9025, allocations: 8 kB / 0.6257 GB, free: 49.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.411e-05/0.9026, allocations: 11.97 kB / 0.6258 GB, free: 49.49 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01823/0.9208, allocations: 9.723 MB / 0.6353 GB, free: 39.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.001e-05/0.9209, allocations: 0 / 0.6353 GB, free: 39.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001497/0.9224, allocations: 305.7 kB / 0.6355 GB, free: 39.43 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003795/0.9262, allocations: 1.362 MB / 0.6369 GB, free: 38.06 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000341/0.9265, allocations: 28 kB / 0.6369 GB, free: 38.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009951/0.9365, allocations: 9.391 MB / 0.6461 GB, free: 28.37 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.9366, allocations: 7.938 kB / 0.6461 GB, free: 28.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01043/0.947, allocations: 7 MB / 0.6529 GB, free: 21.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001268/0.9483, allocations: 478.2 kB / 0.6534 GB, free: 20.85 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00117/0.9495, allocations: 35.94 kB / 0.6534 GB, free: 20.81 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002297/0.9518, allocations: 115.8 kB / 0.6535 GB, free: 20.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005111/0.9523, allocations: 121.1 kB / 0.6536 GB, free: 20.58 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002174/0.9526, allocations: 52 kB / 0.6537 GB, free: 20.53 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004823/0.9574, allocations: 2.968 MB / 0.6566 GB, free: 17.56 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9574, allocations: 4 kB / 0.6566 GB, free: 17.56 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006225/0.9637, allocations: 1.203 MB / 0.6578 GB, free: 16.36 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.0006816/0.9644, allocations: 170.9 kB / 0.6579 GB, free: 16.18 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008814/0.9732, allocations: 5.985 MB / 0.6638 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.646e-06/0.9732, allocations: 0 / 0.6638 GB, free: 10.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003039/0.9763, allocations: 2.015 MB / 0.6657 GB, free: 8.164 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004091/0.9804, allocations: 0.5318 MB / 0.6663 GB, free: 7.641 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02066/1.001, allocations: 11.3 MB / 0.6773 GB, free: 12.29 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006713/1.008, allocations: 3.864 MB / 0.6811 GB, free: 8.391 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005642/1.014, allocations: 1.989 MB / 0.683 GB, free: 6.395 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001093/1.015, allocations: 271.4 kB / 0.6833 GB, free: 6.133 MB / 478.1 MB Notification: Performance of SimCode: time 9.02e-07/1.015, allocations: 0 / 0.6833 GB, free: 6.133 MB / 478.1 MB Notification: Performance of Templates: time 0.09339/1.108, allocations: 42.32 MB / 0.7246 GB, free: 12.09 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches