Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.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_3.2.3_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_3.2.3_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.001326/0.001331, allocations: 105.5 kB / 18.4 MB, free: 4.703 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.001281/0.001281, allocations: 191 kB / 19.33 MB, free: 3.781 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.362/1.362, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001127/0.001127, allocations: 43.94 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09159/0.09273, allocations: 46.63 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.2225/0.3152, allocations: 13.96 MB / 389.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01025/0.3255, allocations: 4.726 MB / 394.5 MB, free: 2.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003406/0.3291, allocations: 85.91 kB / 394.6 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007327/0.3364, allocations: 4.073 MB / 398.7 MB, free: 368 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008001/0.3444, allocations: 2.083 MB / 400.8 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002774/0.3472, allocations: 0.8098 MB / 401.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009866/0.3571, allocations: 4.601 MB / 406.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008291/0.3655, allocations: 5.141 MB / 411.3 MB, free: 9.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004324/0.3698, allocations: 1.944 MB / 413.2 MB, free: 8.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00515/0.375, allocations: 2.719 MB / 416 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002223/0.3773, allocations: 454.3 kB / 416.4 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00427/0.3816, allocations: 1.327 MB / 417.7 MB, free: 5.535 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003793/0.3854, allocations: 2.346 MB / 420.1 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006259/0.3917, allocations: 2.739 MB / 422.8 MB, free: 440 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.4051, allocations: 8.756 MB / 431.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.968e-06/0.4052, allocations: 0 / 431.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4052, allocations: 0 / 431.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.00037/0.4056, allocations: 0 / 431.6 MB, free: 7.645 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: 1755 * Number of variables: 1755 Notification: Performance of Generate backend data structure: time 0.03279/0.4384, allocations: 6.958 MB / 438.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.09e-05/0.4384, allocations: 8.031 kB / 438.5 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01612/0.4546, allocations: 2.537 MB / 441.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007888/0.4625, allocations: 3.183 MB / 444.3 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003058/0.4629, allocations: 303.8 kB / 444.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002013/0.4649, allocations: 411.7 kB / 445 MB, free: 10.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03158/0.4965, allocations: 13.28 MB / 458.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003355/0.4969, allocations: 47.59 kB / 458.3 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002092/0.499, allocations: 187.9 kB / 458.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004659/0.5037, allocations: 2.202 MB / 460.7 MB, free: 9.656 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02969/0.5334, allocations: 12.69 MB / 473.4 MB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07513/0.6086, allocations: 49.21 MB / 0.5103 GB, free: 10.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02388/0.6325, allocations: 6.433 MB / 0.5166 GB, free: 3.949 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005148/0.6377, allocations: 3.928 MB / 0.5204 GB, free: 12 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009866/0.6387, allocations: 424.2 kB / 0.5208 GB, free: 15.54 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.277e-05/0.6388, allocations: 55.88 kB / 0.5209 GB, free: 15.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=217): time 6.793e-06/0.6388, allocations: 0 / 0.5209 GB, free: 15.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=255): time 0.3056/0.9444, allocations: 36.16 MB / 0.5562 GB, free: 147.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.152e-05/0.9445, allocations: 205.4 kB / 0.5564 GB, free: 147.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006996/0.9515, allocations: 4.427 MB / 0.5607 GB, free: 146.3 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008558/0.9524, allocations: 66.02 kB / 0.5608 GB, free: 146.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002151/0.9545, allocations: 3.451 MB / 0.5642 GB, free: 144.1 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001445/0.956, allocations: 0.9593 MB / 0.5651 GB, free: 143.4 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002538/0.9585, allocations: 1.596 MB / 0.5667 GB, free: 142.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.885e-05/0.9586, allocations: 307.6 kB / 0.567 GB, free: 142.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005993/0.9646, allocations: 4.335 MB / 0.5712 GB, free: 141.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007646/0.9723, allocations: 8.232 MB / 0.5792 GB, free: 134.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01299/0.9853, allocations: 13.39 MB / 0.5923 GB, free: 125.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002108/0.9856, allocations: 39.16 kB / 0.5923 GB, free: 125.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=903) (initialization): time 0.02433/1.01, allocations: 14.78 MB / 0.6068 GB, free: 116.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000197/1.01, allocations: 65.56 kB / 0.6068 GB, free: 116.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002334/1.01, allocations: 136 kB / 0.607 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005825/1.016, allocations: 2.458 MB / 0.6094 GB, free: 113.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006354/1.023, allocations: 1.79 MB / 0.6111 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01697/1.04, allocations: 17.05 MB / 0.6278 GB, free: 94.21 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007335/1.047, allocations: 471.2 kB / 0.6282 GB, free: 93.75 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001776/1.049, allocations: 0.4919 MB / 0.6287 GB, free: 93.26 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (830): * Single equations (assignments): 824 * 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.005059/1.054, allocations: 2.391 MB / 0.631 GB, free: 90.86 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001542/1.055, allocations: 402.8 kB / 0.6314 GB, free: 90.46 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/1.07, allocations: 9.657 MB / 0.6408 GB, free: 80.77 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.745e-05/1.07, allocations: 27.94 kB / 0.6409 GB, free: 80.75 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.315e-05/1.071, allocations: 12 kB / 0.6409 GB, free: 80.73 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.156e-05/1.071, allocations: 11.95 kB / 0.6409 GB, free: 80.72 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02895/1.1, allocations: 18.04 MB / 0.6585 GB, free: 62.69 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.789e-05/1.1, allocations: 2.312 kB / 0.6585 GB, free: 62.69 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003102/1.103, allocations: 0.5888 MB / 0.6591 GB, free: 62.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005577/1.108, allocations: 2.243 MB / 0.6613 GB, free: 59.84 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007482/1.109, allocations: 127.8 kB / 0.6614 GB, free: 59.72 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01576/1.125, allocations: 15.67 MB / 0.6767 GB, free: 43.64 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.125, allocations: 0 / 0.6767 GB, free: 43.64 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02045/1.145, allocations: 15.19 MB / 0.6915 GB, free: 28.37 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002933/1.148, allocations: 1.062 MB / 0.6926 GB, free: 27.28 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001736/1.15, allocations: 42.72 kB / 0.6926 GB, free: 27.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004032/1.154, allocations: 223.7 kB / 0.6928 GB, free: 27.02 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00101/1.155, allocations: 241.4 kB / 0.6931 GB, free: 26.79 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006442/1.156, allocations: 151.8 kB / 0.6932 GB, free: 26.64 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004799/1.161, allocations: 2.788 MB / 0.6959 GB, free: 23.85 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.41e-07/1.161, allocations: 0 / 0.6959 GB, free: 23.85 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.008046/1.169, allocations: 1.432 MB / 0.6973 GB, free: 22.42 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 (198): * Single equations (assignments): 192 * 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.001147/1.17, allocations: 189.8 kB / 0.6975 GB, free: 22.23 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.014/1.184, allocations: 10.41 MB / 0.7077 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.855e-06/1.184, allocations: 4.125 kB / 0.7077 GB, free: 11.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006098/1.19, allocations: 4.649 MB / 0.7122 GB, free: 7.117 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004934/1.195, allocations: 0.4927 MB / 0.7127 GB, free: 6.641 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02544/1.221, allocations: 13.69 MB / 0.7261 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006017/1.227, allocations: 3.736 MB / 0.7297 GB, free: 5.176 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002736/1.229, allocations: 0.5886 MB / 0.7303 GB, free: 4.586 MB / 494.1 MB Notification: Performance of SimCode: time 1.212e-06/1.229, allocations: 0 / 0.7303 GB, free: 4.586 MB / 494.1 MB Notification: Performance of Templates: time 0.3635/1.593, allocations: 148.2 MB / 0.875 GB, free: 30.12 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Rotational3DEffects/BevelGear1D/BevelGear1D.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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