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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001304/0.001303, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.391/1.391, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00101/0.00101, allocations: 90.48 kB / 292.1 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.719e-05/3.721e-05, allocations: 4 kB / 350.5 MB, free: 2.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1222, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3759/0.4981, allocations: 100.1 MB / 0.4903 GB, free: 5.676 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003646/0.4985, allocations: 88.5 kB / 0.4904 GB, free: 5.629 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5458/1.044, allocations: 106.5 MB / 0.5944 GB, free: 76.31 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.444e-06/1.044, allocations: 0 / 0.5944 GB, free: 76.31 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0002394/1.045, allocations: 111 kB / 0.5946 GB, free: 76.3 MB / 442.7 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.01606/1.061, allocations: 5.136 MB / 0.5996 GB, free: 74.26 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/1.061, allocations: 9.562 kB / 0.5996 GB, free: 74.26 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02819/1.089, allocations: 6.936 MB / 0.6064 GB, free: 73.91 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01753/1.107, allocations: 5.779 MB / 0.612 GB, free: 73.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004858/1.107, allocations: 388.6 kB / 0.6124 GB, free: 73.19 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/1.11, allocations: 0.5164 MB / 0.6129 GB, free: 73.18 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02938/1.139, allocations: 12.21 MB / 0.6248 GB, free: 70.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003415/1.139, allocations: 78.38 kB / 0.6249 GB, free: 70.02 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001193/1.141, allocations: 247.7 kB / 0.6251 GB, free: 70.02 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001378/1.142, allocations: 1.068 MB / 0.6262 GB, free: 70 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01984/1.162, allocations: 9.874 MB / 0.6358 GB, free: 68.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05585/1.218, allocations: 55.57 MB / 0.6901 GB, free: 26.71 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00956/1.227, allocations: 4.148 MB / 0.6941 GB, free: 25.08 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002587/1.23, allocations: 2.22 MB / 0.6963 GB, free: 24.09 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01386/1.244, allocations: 9.363 MB / 0.7054 GB, free: 19.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.349e-05/1.244, allocations: 59.12 kB / 0.7055 GB, free: 19.26 MB / 442.7 MB Notification: Performance of pre-optimization done (n=171): time 6.102e-06/1.244, allocations: 0 / 0.7055 GB, free: 19.26 MB / 442.7 MB Notification: Performance of matching and sorting (n=197): time 0.03731/1.281, allocations: 15.08 MB / 0.7202 GB, free: 8.383 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/1.281, allocations: 209.2 kB / 0.7204 GB, free: 8.137 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005426/1.287, allocations: 4.095 MB / 0.7244 GB, free: 4.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002844/1.287, allocations: 49.7 kB / 0.7244 GB, free: 4.445 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001641/1.289, allocations: 3.666 MB / 0.728 GB, free: 1.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006183/1.289, allocations: 0.7515 MB / 0.7288 GB, free: 0.5 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/1.29, allocations: 124 kB / 0.7289 GB, free: 388 kB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002973/1.29, allocations: 0.5733 MB / 0.7294 GB, free: 15.88 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002895/1.293, allocations: 2.031 MB / 0.7314 GB, free: 14.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005691/1.299, allocations: 5.876 MB / 0.7372 GB, free: 6.551 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004847/1.303, allocations: 3.444 MB / 0.7405 GB, free: 3.586 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.467e-05/1.304, allocations: 40 kB / 0.7406 GB, free: 3.547 MB / 458.7 MB Notification: Performance of matching and sorting (n=822) (initialization): time 0.3039/1.607, allocations: 8.385 MB / 0.7487 GB, free: 80.06 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/1.608, allocations: 64.53 kB / 0.7488 GB, free: 80.06 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000188/1.608, allocations: 135.9 kB / 0.7489 GB, free: 80.06 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002527/1.61, allocations: 0.9268 MB / 0.7498 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005225/1.616, allocations: 1.436 MB / 0.7512 GB, free: 80.05 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008827/1.624, allocations: 7.409 MB / 0.7585 GB, free: 77.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005929/1.63, allocations: 334.2 kB / 0.7588 GB, free: 77.39 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001149/1.632, allocations: 388.4 kB / 0.7592 GB, free: 77.39 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 47 (fixed.color[3],fixed.color[2],fixed.color[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueArrow.arrowLine.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (760): * Single equations (assignments): 755 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 33,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00102/1.633, allocations: 0.599 MB / 0.7598 GB, free: 77.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009675/1.634, allocations: 417.7 kB / 0.7602 GB, free: 77.27 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005695/1.639, allocations: 3.168 MB / 0.7632 GB, free: 77.12 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.243e-05/1.639, allocations: 19.88 kB / 0.7633 GB, free: 77.12 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/1.639, allocations: 6.5 kB / 0.7633 GB, free: 77.12 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.778e-05/1.639, allocations: 10.11 kB / 0.7633 GB, free: 77.12 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01569/1.655, allocations: 8.52 MB / 0.7716 GB, free: 76.61 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.645e-05/1.655, allocations: 1.5 kB / 0.7716 GB, free: 76.61 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001462/1.657, allocations: 303.7 kB / 0.7719 GB, free: 76.61 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002271/1.659, allocations: 0.6861 MB / 0.7726 GB, free: 76.59 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002508/1.659, allocations: 35.89 kB / 0.7726 GB, free: 76.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009438/1.669, allocations: 6.544 MB / 0.779 GB, free: 74 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.669, allocations: 1.281 kB / 0.779 GB, free: 74 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009416/1.678, allocations: 5.695 MB / 0.7846 GB, free: 73.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001641/1.68, allocations: 458.8 kB / 0.785 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004591/1.68, allocations: 32 kB / 0.785 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/1.682, allocations: 92.16 kB / 0.7851 GB, free: 72.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004357/1.682, allocations: 120.5 kB / 0.7852 GB, free: 72.97 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/1.682, allocations: 52.23 kB / 0.7853 GB, free: 72.97 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006428/1.689, allocations: 2.888 MB / 0.7881 GB, free: 72.53 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.9e-07/1.689, allocations: 0 / 0.7881 GB, free: 72.53 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.008616/1.697, allocations: 1.135 MB / 0.7892 GB, free: 72.4 MB / 458.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 27,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006524/1.698, allocations: 183.2 kB / 0.7894 GB, free: 72.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0104/1.708, allocations: 5.258 MB / 0.7945 GB, free: 70.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/1.708, allocations: 1.531 kB / 0.7945 GB, free: 70.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003128/1.712, allocations: 1.772 MB / 0.7962 GB, free: 69.89 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003545/1.715, allocations: 0.5255 MB / 0.7968 GB, free: 69.66 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/1.733, allocations: 8.803 MB / 0.8054 GB, free: 66.54 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004883/1.738, allocations: 3.967 MB / 0.8092 GB, free: 65.11 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005262/1.743, allocations: 2.006 MB / 0.8112 GB, free: 65.07 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008371/1.744, allocations: 267.2 kB / 0.8114 GB, free: 65.05 MB / 458.7 MB Notification: Performance of SimCode: time 1.253e-06/1.744, allocations: 0 / 0.8114 GB, free: 65.05 MB / 458.7 MB Notification: Performance of Templates: time 0.07869/1.823, allocations: 39.33 MB / 0.8498 GB, free: 55.8 MB / 458.7 MB 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.GearConstraint.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches