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.001016/0.001015, allocations: 90.14 kB / 16.65 MB, free: 6.535 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.001179/0.001179, allocations: 178.4 kB / 17.56 MB, free: 6.18 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.326/1.326, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002687/0.0002687, allocations: 7.938 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.09818, allocations: 50.41 MB / 351.8 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.2695/0.3677, allocations: 67.84 MB / 419.7 MB, free: 292 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03513/0.4029, allocations: 13.88 MB / 433.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01591/0.4188, allocations: 303.2 kB / 433.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002403/0.4213, allocations: 0.4975 MB / 434.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007295/0.4286, allocations: 2.06 MB / 436.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002621/0.4312, allocations: 0.851 MB / 437.3 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01217/0.4434, allocations: 8.767 MB / 446 MB, free: 6.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01134/0.4548, allocations: 7.365 MB / 453.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003285/0.4582, allocations: 1.529 MB / 454.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004304/0.4625, allocations: 2.55 MB / 457.5 MB, free: 10.51 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.4636, allocations: 180 kB / 457.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002902/0.4665, allocations: 1.135 MB / 458.8 MB, free: 9.199 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002847/0.4694, allocations: 2.216 MB / 461 MB, free: 6.977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00403/0.4734, allocations: 2.505 MB / 463.5 MB, free: 4.449 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01089/0.4844, allocations: 8.549 MB / 472 MB, free: 11.87 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.403e-06/0.4844, allocations: 0 / 472 MB, free: 11.87 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.4844, allocations: 0 / 472 MB, free: 11.87 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003201/0.4848, allocations: 0 / 472 MB, free: 11.87 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.01312/0.4979, allocations: 5.039 MB / 477.1 MB, free: 6.762 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.398e-05/0.498, allocations: 8.031 kB / 477.1 MB, free: 6.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/0.511, allocations: 2.634 MB / 479.7 MB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008286/0.5193, allocations: 3.804 MB / 483.5 MB, free: 256 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002567/0.5196, allocations: 300.3 kB / 483.8 MB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001469/0.5211, allocations: 443.8 kB / 484.3 MB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02016/0.5413, allocations: 11.75 MB / 496 MB, free: 3.035 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001476/0.5414, allocations: 51.58 kB / 496.1 MB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005066/0.542, allocations: 187.9 kB / 496.2 MB, free: 2.801 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003454/0.5454, allocations: 2.089 MB / 498.3 MB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0197/0.5651, allocations: 10.12 MB / 0.4965 GB, free: 6.57 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2351/0.8003, allocations: 45.98 MB / 0.5414 GB, free: 123.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.8108, allocations: 4.386 MB / 0.5457 GB, free: 123 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003363/0.8142, allocations: 2.475 MB / 0.5481 GB, free: 123 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/0.8268, allocations: 9.835 MB / 0.5577 GB, free: 118.8 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.8268, allocations: 56.97 kB / 0.5578 GB, free: 118.8 MB / 446.1 MB Notification: Performance of pre-optimization done (n=171): time 4.358e-06/0.8268, allocations: 2.438 kB / 0.5578 GB, free: 118.8 MB / 446.1 MB Notification: Performance of matching and sorting (n=197): time 0.0462/0.8731, allocations: 20 MB / 0.5773 GB, free: 109.4 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.737e-05/0.8732, allocations: 208.7 kB / 0.5775 GB, free: 109.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004626/0.8778, allocations: 4.701 MB / 0.5821 GB, free: 104.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001722/0.878, allocations: 54.48 kB / 0.5822 GB, free: 104.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001509/0.8795, allocations: 3.606 MB / 0.5857 GB, free: 100.8 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004775/0.88, allocations: 0.7618 MB / 0.5864 GB, free: 100 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005073/0.8805, allocations: 0.5748 MB / 0.587 GB, free: 99.43 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.762e-05/0.8805, allocations: 301.1 kB / 0.5873 GB, free: 99.14 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002586/0.8831, allocations: 2.414 MB / 0.5896 GB, free: 96.72 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003834/0.887, allocations: 6.274 MB / 0.5958 GB, free: 88.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007136/0.8941, allocations: 9.34 MB / 0.6049 GB, free: 77.67 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.723e-05/0.8942, allocations: 36 kB / 0.6049 GB, free: 77.64 MB / 446.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.01349/0.9077, allocations: 9.804 MB / 0.6145 GB, free: 67.82 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.606e-05/0.9078, allocations: 60.22 kB / 0.6145 GB, free: 67.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.224e-05/0.9079, allocations: 140.6 kB / 0.6147 GB, free: 67.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003797/0.9117, allocations: 1.616 MB / 0.6163 GB, free: 66 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/0.916, allocations: 1.494 MB / 0.6177 GB, free: 64.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01009/0.9261, allocations: 9.553 MB / 0.627 GB, free: 54.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004732/0.9308, allocations: 371.3 kB / 0.6274 GB, free: 54.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005612/0.9314, allocations: 393.1 kB / 0.6278 GB, free: 53.94 MB / 446.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.003033/0.9345, allocations: 2.483 MB / 0.6302 GB, free: 51.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005424/0.935, allocations: 410.8 kB / 0.6306 GB, free: 51.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007022/0.942, allocations: 4.251 MB / 0.6347 GB, free: 46.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.518e-05/0.9421, allocations: 25.17 kB / 0.6348 GB, free: 46.75 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.9421, allocations: 8 kB / 0.6348 GB, free: 46.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.9421, allocations: 7.969 kB / 0.6348 GB, free: 46.73 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.9561, allocations: 9.779 MB / 0.6443 GB, free: 36.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.106e-05/0.9562, allocations: 0 / 0.6443 GB, free: 36.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.9576, allocations: 319.5 kB / 0.6446 GB, free: 36.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003673/0.9613, allocations: 1.359 MB / 0.646 GB, free: 35.25 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/0.9614, allocations: 40.61 kB / 0.646 GB, free: 35.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009098/0.9705, allocations: 8.737 MB / 0.6545 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.9706, allocations: 0 / 0.6545 GB, free: 26.21 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00975/0.9803, allocations: 6.976 MB / 0.6613 GB, free: 19.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.9816, allocations: 471.8 kB / 0.6618 GB, free: 18.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004804/0.9821, allocations: 36 kB / 0.6618 GB, free: 18.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.9836, allocations: 119.8 kB / 0.6619 GB, free: 18.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003527/0.984, allocations: 124.8 kB / 0.6621 GB, free: 18.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001234/0.9841, allocations: 51.98 kB / 0.6621 GB, free: 18.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003753/0.9879, allocations: 2.964 MB / 0.665 GB, free: 15.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9879, allocations: 4 kB / 0.665 GB, free: 15.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005155/0.993, allocations: 1.206 MB / 0.6662 GB, free: 14.22 MB / 446.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.0003921/0.9934, allocations: 165.7 kB / 0.6663 GB, free: 14.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007706/1.001, allocations: 5.985 MB / 0.6722 GB, free: 8.078 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/1.001, allocations: 0.5625 kB / 0.6722 GB, free: 8.078 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002504/1.004, allocations: 2.021 MB / 0.6742 GB, free: 6.031 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003262/1.007, allocations: 0.5219 MB / 0.6747 GB, free: 5.516 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01704/1.024, allocations: 13.75 MB / 0.6881 GB, free: 7.715 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004294/1.028, allocations: 3.867 MB / 0.6919 GB, free: 3.812 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004809/1.033, allocations: 1.988 MB / 0.6938 GB, free: 1.816 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007298/1.034, allocations: 271.4 kB / 0.6941 GB, free: 1.551 MB / 462.1 MB Notification: Performance of SimCode: time 5.31e-07/1.034, allocations: 0 / 0.6941 GB, free: 1.551 MB / 462.1 MB Notification: Performance of Templates: time 0.2661/1.3, allocations: 43.05 MB / 0.7361 GB, free: 157.8 MB / 478.1 MB 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 -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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches