Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001752/0.001752, allocations: 112.4 kB / 17.73 MB, free: 5.355 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.00234/0.002341, allocations: 179.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.668/1.668, allocations: 205.1 MB / 224.5 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 43.94 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.109, allocations: 46.62 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.266/0.375, allocations: 14.23 MB / 389.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.3855, allocations: 4.64 MB / 394 MB, free: 2.398 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002984/0.3885, allocations: 96.03 kB / 394.1 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008074/0.3966, allocations: 4.218 MB / 398.3 MB, free: 424 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00761/0.4043, allocations: 2.268 MB / 400.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002987/0.4073, allocations: 0.9288 MB / 401.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01043/0.4177, allocations: 5.899 MB / 407.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007965/0.4257, allocations: 5.31 MB / 412.7 MB, free: 8.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00457/0.4303, allocations: 2.203 MB / 414.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00538/0.4357, allocations: 2.936 MB / 417.9 MB, free: 4.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00208/0.4379, allocations: 496 kB / 418.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004055/0.4419, allocations: 1.37 MB / 419.7 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003865/0.4458, allocations: 2.63 MB / 422.4 MB, free: 404 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005419/0.4513, allocations: 3.003 MB / 425.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01485/0.4661, allocations: 9.596 MB / 435 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.4662, allocations: 0 / 435 MB, free: 3.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.4662, allocations: 0 / 435 MB, free: 3.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004217/0.4666, allocations: 0 / 435 MB, free: 3.742 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1846 * Number of variables: 1846 Notification: Performance of Generate backend data structure: time 0.01691/0.4836, allocations: 6.516 MB / 441.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.4836, allocations: 8.031 kB / 441.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01239/0.496, allocations: 2.645 MB / 444.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009936/0.506, allocations: 4.06 MB / 448.2 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000331/0.5064, allocations: 316.5 kB / 448.5 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001728/0.5081, allocations: 444 kB / 448.9 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02236/0.5305, allocations: 12.24 MB / 461.2 MB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001634/0.5307, allocations: 51.59 kB / 461.2 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005853/0.5313, allocations: 195.8 kB / 461.4 MB, free: 8.355 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00359/0.5349, allocations: 2.211 MB / 463.6 MB, free: 6.145 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02079/0.5557, allocations: 10.54 MB / 474.2 MB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06832/0.6241, allocations: 47.43 MB / 0.5094 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01202/0.6361, allocations: 4.61 MB / 0.5139 GB, free: 6.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00403/0.6402, allocations: 2.643 MB / 0.5164 GB, free: 3.367 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01867/0.6589, allocations: 10.46 MB / 0.5267 GB, free: 8.742 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.287e-05/0.659, allocations: 59.81 kB / 0.5267 GB, free: 8.676 MB / 462.1 MB Notification: Performance of pre-optimization done (n=192): time 5.089e-06/0.659, allocations: 0 / 0.5267 GB, free: 8.676 MB / 462.1 MB Notification: Performance of matching and sorting (n=218): time 0.06388/0.7229, allocations: 21.27 MB / 0.5475 GB, free: 3.332 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.7231, allocations: 209.2 kB / 0.5477 GB, free: 3.082 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2613/0.9845, allocations: 4.829 MB / 0.5524 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005748/0.9851, allocations: 58.42 kB / 0.5524 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00331/0.9884, allocations: 3.864 MB / 0.5562 GB, free: 147 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001348/0.9898, allocations: 0.8685 MB / 0.5571 GB, free: 146.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002448/0.9923, allocations: 1.403 MB / 0.5584 GB, free: 145.8 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.661e-05/0.9923, allocations: 309.4 kB / 0.5587 GB, free: 145.5 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004507/0.9969, allocations: 2.578 MB / 0.5613 GB, free: 144.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007015/1.004, allocations: 6.557 MB / 0.5677 GB, free: 138.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01275/1.017, allocations: 9.808 MB / 0.5772 GB, free: 130.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002487/1.017, allocations: 42.23 kB / 0.5773 GB, free: 130.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=896) (initialization): time 0.01947/1.036, allocations: 10.28 MB / 0.5873 GB, free: 126.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.058e-05/1.037, allocations: 63.38 kB / 0.5874 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001313/1.037, allocations: 138.4 kB / 0.5875 GB, free: 126.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003998/1.041, allocations: 1.613 MB / 0.5891 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005029/1.046, allocations: 1.566 MB / 0.5906 GB, free: 126.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01046/1.056, allocations: 10.27 MB / 0.6006 GB, free: 120 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005353/1.062, allocations: 383.8 kB / 0.601 GB, free: 119.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007151/1.062, allocations: 403.4 kB / 0.6014 GB, free: 119.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 634 * Number of states: 0 () * Number of discrete variables: 45 (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 (834): * Single equations (assignments): 829 * 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.003491/1.066, allocations: 2.574 MB / 0.6039 GB, free: 117.1 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007032/1.067, allocations: 449 kB / 0.6043 GB, free: 116.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007237/1.074, allocations: 4.619 MB / 0.6088 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.818e-05/1.074, allocations: 27.94 kB / 0.6089 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/1.074, allocations: 12 kB / 0.6089 GB, free: 112.4 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/1.074, allocations: 11.66 kB / 0.6089 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01505/1.089, allocations: 10.43 MB / 0.6191 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/1.089, allocations: 3.984 kB / 0.6191 GB, free: 101.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001635/1.091, allocations: 347.5 kB / 0.6194 GB, free: 101.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003657/1.094, allocations: 1.355 MB / 0.6207 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003248/1.095, allocations: 41.34 kB / 0.6208 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009275/1.104, allocations: 9.407 MB / 0.63 GB, free: 90.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/1.104, allocations: 0 / 0.63 GB, free: 90.48 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/1.114, allocations: 7.584 MB / 0.6374 GB, free: 82.86 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00179/1.116, allocations: 0.8064 MB / 0.6382 GB, free: 82.03 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000611/1.117, allocations: 32 kB / 0.6382 GB, free: 82 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001628/1.118, allocations: 127.8 kB / 0.6383 GB, free: 81.88 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003563/1.119, allocations: 129.8 kB / 0.6384 GB, free: 81.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/1.119, allocations: 63.98 kB / 0.6385 GB, free: 81.69 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003776/1.122, allocations: 3.037 MB / 0.6415 GB, free: 78.66 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.122, allocations: 0 / 0.6415 GB, free: 78.66 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006/1.128, allocations: 1.272 MB / 0.6427 GB, free: 77.39 MB / 478.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 (169): * Single equations (assignments): 164 * 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.0004615/1.129, allocations: 165.8 kB / 0.6429 GB, free: 77.22 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009024/1.138, allocations: 6.403 MB / 0.6491 GB, free: 70.82 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/1.138, allocations: 0 / 0.6491 GB, free: 70.82 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002718/1.141, allocations: 2.198 MB / 0.6513 GB, free: 68.61 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.144, allocations: 0.5521 MB / 0.6518 GB, free: 68.09 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/1.16, allocations: 11.9 MB / 0.6634 GB, free: 56.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00352/1.164, allocations: 4.003 MB / 0.6673 GB, free: 52.11 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004098/1.168, allocations: 2.091 MB / 0.6694 GB, free: 50.01 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007635/1.169, allocations: 283.4 kB / 0.6696 GB, free: 49.73 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/1.169, allocations: 0 / 0.6696 GB, free: 49.73 MB / 478.1 MB Notification: Performance of Templates: time 0.06701/1.236, allocations: 43.93 MB / 0.7126 GB, free: 5.844 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/GearConstraint/GearConstraint.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches