Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia2.phi|inertia2.w|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 109.2 kB / 17.17 MB, free: 6.32 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.001254/0.001254, allocations: 194.9 kB / 18.08 MB, free: 5.41 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.363/1.363, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 55.5 kB / 300.6 MB, free: 6.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1228, allocations: 49.44 MB / 350.1 MB, free: 4.852 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.247/0.3699, allocations: 65.76 MB / 415.8 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03245/0.4024, allocations: 13.34 MB / 429.2 MB, free: 5.719 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01448/0.4169, allocations: 283.3 kB / 429.4 MB, free: 5.441 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007749/0.4247, allocations: 4.082 MB / 433.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005466/0.4302, allocations: 1.931 MB / 435.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.4326, allocations: 0.7411 MB / 436.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008753/0.4413, allocations: 6.972 MB / 443.2 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007756/0.4491, allocations: 5.053 MB / 448.2 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003659/0.4528, allocations: 1.713 MB / 449.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004604/0.4575, allocations: 2.863 MB / 452.8 MB, free: 14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001429/0.4589, allocations: 328 kB / 453.1 MB, free: 13.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003316/0.4623, allocations: 1.276 MB / 454.4 MB, free: 12.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003173/0.4655, allocations: 2.24 MB / 456.6 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004608/0.4701, allocations: 2.614 MB / 459.2 MB, free: 7.527 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007913/0.478, allocations: 6.927 MB / 466.2 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.4781, allocations: 0 / 466.2 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.4781, allocations: 0 / 466.2 MB, free: 0.5859 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003273/0.4784, allocations: 0 / 466.2 MB, free: 0.5859 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1750 * Number of variables: 1750 Notification: Performance of Generate backend data structure: time 0.03201/0.5104, allocations: 6.937 MB / 473.1 MB, free: 9.574 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.5105, allocations: 15.97 kB / 473.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01641/0.5269, allocations: 2.525 MB / 475.6 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007939/0.5349, allocations: 3.081 MB / 478.7 MB, free: 3.883 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000336/0.5353, allocations: 299.8 kB / 479 MB, free: 3.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002032/0.5373, allocations: 407.7 kB / 479.4 MB, free: 3.191 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0326/0.5699, allocations: 13.25 MB / 492.7 MB, free: 5.195 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002309/0.5702, allocations: 47.5 kB / 492.7 MB, free: 5.148 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001601/0.5718, allocations: 191.8 kB / 492.9 MB, free: 4.961 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00444/0.5763, allocations: 2.202 MB / 495.1 MB, free: 2.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02805/0.6043, allocations: 12.66 MB / 0.4959 GB, free: 6.074 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2745/0.8789, allocations: 49.27 MB / 0.544 GB, free: 123.5 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0258/0.9048, allocations: 6.422 MB / 0.5502 GB, free: 122.8 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00509/0.9099, allocations: 3.909 MB / 0.5541 GB, free: 121.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009956/0.9109, allocations: 425.1 kB / 0.5545 GB, free: 121.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.384e-05/0.911, allocations: 59.83 kB / 0.5545 GB, free: 121.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=214): time 6.863e-06/0.911, allocations: 0 / 0.5545 GB, free: 121.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=252): time 0.1003/1.011, allocations: 36.06 MB / 0.5897 GB, free: 98.66 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.452e-05/1.011, allocations: 209.4 kB / 0.5899 GB, free: 98.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006946/1.018, allocations: 4.412 MB / 0.5943 GB, free: 93.98 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009294/1.019, allocations: 65.61 kB / 0.5943 GB, free: 93.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001881/1.021, allocations: 3.451 MB / 0.5977 GB, free: 90.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00144/1.023, allocations: 0.9431 MB / 0.5986 GB, free: 89.55 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00265/1.025, allocations: 1.599 MB / 0.6002 GB, free: 87.94 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.878e-05/1.025, allocations: 302.2 kB / 0.6005 GB, free: 87.64 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005172/1.031, allocations: 4.323 MB / 0.6047 GB, free: 83.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007491/1.038, allocations: 8.217 MB / 0.6127 GB, free: 73.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01407/1.052, allocations: 13.36 MB / 0.6258 GB, free: 58.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001153/1.052, allocations: 36 kB / 0.6258 GB, free: 58.13 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02425/1.077, allocations: 14.76 MB / 0.6402 GB, free: 43.35 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.139e-05/1.077, allocations: 63.94 kB / 0.6403 GB, free: 43.29 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001286/1.077, allocations: 136 kB / 0.6404 GB, free: 43.15 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006327/1.083, allocations: 2.45 MB / 0.6428 GB, free: 40.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006752/1.09, allocations: 1.789 MB / 0.6445 GB, free: 38.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0176/1.108, allocations: 15.85 MB / 0.66 GB, free: 22.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007124/1.115, allocations: 471.2 kB / 0.6605 GB, free: 22.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001849/1.117, allocations: 0.4919 MB / 0.6609 GB, free: 21.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * Number of states: 0 () * Number of discrete variables: 36 (sensor2.torqueColor[3],sensor2.torqueColor[2],sensor2.torqueColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],inertia2.cylinderColor[3],inertia2.cylinderColor[2],inertia2.cylinderColor[1],inertia1.cylinderColor[3],inertia1.cylinderColor[2],inertia1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (826): * Single equations (assignments): 820 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,16,100.0%), (4,21,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006157/1.123, allocations: 2.378 MB / 0.6633 GB, free: 19.31 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001657/1.125, allocations: 394.9 kB / 0.6636 GB, free: 18.92 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01462/1.139, allocations: 9.637 MB / 0.6731 GB, free: 9.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.899e-05/1.139, allocations: 24 kB / 0.6731 GB, free: 9.227 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.622e-05/1.139, allocations: 12 kB / 0.6731 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.034e-05/1.139, allocations: 11.95 kB / 0.6731 GB, free: 9.203 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03575/1.175, allocations: 18.11 MB / 0.6908 GB, free: 7.078 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.536e-05/1.175, allocations: 0 / 0.6908 GB, free: 7.078 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003484/1.179, allocations: 0.5889 MB / 0.6914 GB, free: 6.488 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006622/1.185, allocations: 2.244 MB / 0.6935 GB, free: 4.238 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008626/1.186, allocations: 127.2 kB / 0.6937 GB, free: 4.117 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01934/1.206, allocations: 14.58 MB / 0.7079 GB, free: 5.148 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/1.206, allocations: 0 / 0.7079 GB, free: 5.148 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2596/1.465, allocations: 15.13 MB / 0.7227 GB, free: 165.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001578/1.467, allocations: 461.1 kB / 0.7231 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001966/1.469, allocations: 39.45 kB / 0.7232 GB, free: 165 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00436/1.473, allocations: 220.2 kB / 0.7234 GB, free: 164.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001551/1.475, allocations: 239.4 kB / 0.7236 GB, free: 164.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008824/1.476, allocations: 153.5 kB / 0.7237 GB, free: 164.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.00616/1.482, allocations: 2.772 MB / 0.7264 GB, free: 163.9 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.01e-07/1.482, allocations: 0 / 0.7264 GB, free: 163.9 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008084/1.49, allocations: 1.426 MB / 0.7278 GB, free: 163.8 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.phi,inertia1.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (195): * Single equations (assignments): 189 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (4,18,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008718/1.491, allocations: 198.1 kB / 0.728 GB, free: 163.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01445/1.506, allocations: 10.35 MB / 0.7381 GB, free: 160.2 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.086e-05/1.506, allocations: 3.938 kB / 0.7381 GB, free: 160.2 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006784/1.512, allocations: 4.621 MB / 0.7427 GB, free: 158.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004155/1.517, allocations: 486.9 kB / 0.7431 GB, free: 158.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02155/1.538, allocations: 16.12 MB / 0.7589 GB, free: 146.5 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003558/1.542, allocations: 3.727 MB / 0.7625 GB, free: 143.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002573/1.544, allocations: 0.5901 MB / 0.7631 GB, free: 143.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.893e-06/1.544, allocations: 0 / 0.7631 GB, free: 143.2 MB / 478.1 MB Notification: Performance of Templates: time 0.3081/1.852, allocations: 146.3 MB / 0.9059 GB, free: 155.2 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,inertia2.phi,inertia2.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w Variables in the result:inertia2.phi,inertia2.w,revolute1.phi,revolute1.w,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w,time