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.001181/0.001181, allocations: 111.5 kB / 17.06 MB, free: 5.973 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.001103/0.001103, allocations: 200 kB / 18.01 MB, free: 5.055 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.315/1.315, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009144/0.0009144, allocations: 47.92 kB / 351.3 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2754, allocations: 49.44 MB / 400.7 MB, free: 8.719 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint): time 0.01559/0.2911, allocations: 13.57 MB / 414.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01018/0.3013, allocations: 4.545 MB / 418.8 MB, free: 6.645 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002756/0.3041, allocations: 91.75 kB / 418.9 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008519/0.3127, allocations: 4.206 MB / 423.1 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006979/0.3198, allocations: 2.236 MB / 425.4 MB, free: 96 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00274/0.3225, allocations: 0.9322 MB / 426.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009588/0.3321, allocations: 6.053 MB / 432.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008223/0.3404, allocations: 5.223 MB / 437.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004641/0.3451, allocations: 2.13 MB / 439.7 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004777/0.3499, allocations: 2.831 MB / 442.5 MB, free: 14.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001926/0.3519, allocations: 472 kB / 443 MB, free: 14.37 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003811/0.3557, allocations: 1.362 MB / 444.4 MB, free: 13.01 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00364/0.3594, allocations: 2.552 MB / 446.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005535/0.3649, allocations: 2.894 MB / 449.8 MB, free: 7.539 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01196/0.3769, allocations: 9.177 MB / 459 MB, free: 14.33 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.318e-06/0.377, allocations: 4 kB / 459 MB, free: 14.33 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.377, allocations: 0 / 459 MB, free: 14.33 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003623/0.3774, allocations: 0 / 459 MB, free: 14.33 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.01654/0.3939, allocations: 6.138 MB / 465.1 MB, free: 8.117 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.394, allocations: 8.031 kB / 465.1 MB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01149/0.4055, allocations: 2.579 MB / 467.7 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009699/0.4152, allocations: 3.871 MB / 471.6 MB, free: 1.594 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003971/0.4157, allocations: 304.2 kB / 471.9 MB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001949/0.4176, allocations: 439.8 kB / 472.3 MB, free: 0.8672 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/0.4407, allocations: 11.73 MB / 484 MB, free: 4.395 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000272/0.441, allocations: 55.58 kB / 484.1 MB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001317/0.4423, allocations: 187.9 kB / 484.3 MB, free: 4.156 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003542/0.4459, allocations: 2.081 MB / 486.4 MB, free: 2.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01953/0.4654, allocations: 10.1 MB / 496.5 MB, free: 7.949 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05942/0.5249, allocations: 45.75 MB / 0.5295 GB, free: 8.805 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/0.5364, allocations: 4.362 MB / 0.5338 GB, free: 4.297 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003891/0.5403, allocations: 2.467 MB / 0.5362 GB, free: 1.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2347/0.7751, allocations: 9.852 MB / 0.5458 GB, free: 126.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.919e-05/0.7752, allocations: 53.5 kB / 0.5459 GB, free: 126.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=171): time 4.658e-06/0.7752, allocations: 0.6875 kB / 0.5459 GB, free: 126.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=197): time 0.04605/0.8212, allocations: 19.97 MB / 0.5654 GB, free: 114.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.068e-05/0.8213, allocations: 205.1 kB / 0.5655 GB, free: 114.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005291/0.8266, allocations: 4.709 MB / 0.5701 GB, free: 109.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004156/0.8271, allocations: 53.7 kB / 0.5702 GB, free: 109.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001502/0.8286, allocations: 3.596 MB / 0.5737 GB, free: 105.8 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000839/0.8294, allocations: 0.7585 MB / 0.5745 GB, free: 105 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001569/0.831, allocations: 1.344 MB / 0.5758 GB, free: 103.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.32e-05/0.8311, allocations: 301.1 kB / 0.5761 GB, free: 103.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002695/0.8338, allocations: 2.414 MB / 0.5784 GB, free: 100.9 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004345/0.8382, allocations: 6.268 MB / 0.5845 GB, free: 92.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00809/0.8463, allocations: 9.318 MB / 0.5936 GB, free: 81.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.728e-05/0.8464, allocations: 40 kB / 0.5937 GB, free: 81.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=858) (initialization): time 0.0163/0.8627, allocations: 9.808 MB / 0.6032 GB, free: 71.73 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001522/0.8629, allocations: 64 kB / 0.6033 GB, free: 71.66 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/0.8631, allocations: 137.7 kB / 0.6034 GB, free: 71.53 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004083/0.8672, allocations: 1.617 MB / 0.605 GB, free: 69.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004673/0.8719, allocations: 1.486 MB / 0.6065 GB, free: 68.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/0.883, allocations: 10.25 MB / 0.6165 GB, free: 57.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005169/0.8883, allocations: 366.8 kB / 0.6168 GB, free: 57.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001168/0.8894, allocations: 392 kB / 0.6172 GB, free: 57.16 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.004508/0.894, allocations: 2.486 MB / 0.6196 GB, free: 54.66 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001092/0.8951, allocations: 406.8 kB / 0.62 GB, free: 54.26 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007684/0.9028, allocations: 4.24 MB / 0.6242 GB, free: 50 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.224e-05/0.9028, allocations: 29.58 kB / 0.6242 GB, free: 49.97 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.804e-05/0.9029, allocations: 4 kB / 0.6242 GB, free: 49.97 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.041e-05/0.9029, allocations: 11.97 kB / 0.6242 GB, free: 49.96 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02019/0.9231, allocations: 9.716 MB / 0.6337 GB, free: 40.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.37e-05/0.9232, allocations: 4 kB / 0.6337 GB, free: 40.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001455/0.9246, allocations: 295.6 kB / 0.634 GB, free: 39.91 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003705/0.9283, allocations: 1.362 MB / 0.6353 GB, free: 38.54 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000319/0.9287, allocations: 28 kB / 0.6353 GB, free: 38.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009674/0.9384, allocations: 9.397 MB / 0.6445 GB, free: 28.85 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/0.9384, allocations: 0 / 0.6445 GB, free: 28.85 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009762/0.9482, allocations: 6.96 MB / 0.6513 GB, free: 21.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/0.9494, allocations: 463.6 kB / 0.6518 GB, free: 21.38 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009369/0.9503, allocations: 39.92 kB / 0.6518 GB, free: 21.34 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00197/0.9523, allocations: 111.8 kB / 0.6519 GB, free: 21.23 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003989/0.9527, allocations: 121.4 kB / 0.652 GB, free: 21.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001542/0.9529, allocations: 48 kB / 0.6521 GB, free: 21.06 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.005073/0.958, allocations: 2.968 MB / 0.655 GB, free: 18.09 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.958, allocations: 0 / 0.655 GB, free: 18.09 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006606/0.9646, allocations: 1.212 MB / 0.6561 GB, free: 16.89 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.0005862/0.9652, allocations: 173.5 kB / 0.6563 GB, free: 16.71 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008653/0.9739, allocations: 5.977 MB / 0.6621 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.9739, allocations: 4.438 kB / 0.6621 GB, free: 10.74 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002759/0.9767, allocations: 2.01 MB / 0.6641 GB, free: 8.707 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003538/0.9803, allocations: 0.5394 MB / 0.6646 GB, free: 8.176 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02074/1.001, allocations: 11.12 MB / 0.6755 GB, free: 13.02 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006651/1.008, allocations: 3.864 MB / 0.6793 GB, free: 9.125 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007495/1.015, allocations: 1.988 MB / 0.6812 GB, free: 7.129 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001581/1.017, allocations: 263.4 kB / 0.6815 GB, free: 6.875 MB / 478.1 MB Notification: Performance of SimCode: time 1.382e-06/1.017, allocations: 0 / 0.6815 GB, free: 6.875 MB / 478.1 MB Notification: Performance of Templates: time 0.1542/1.171, allocations: 42.08 MB / 0.7226 GB, free: 13.07 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 -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