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.001144/0.001143, allocations: 101.8 kB / 17.59 MB, free: 5.449 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.001165/0.001165, allocations: 191.3 kB / 18.52 MB, free: 4.523 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.319/1.319, allocations: 222.9 MB / 242.2 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001028/0.001028, allocations: 56.06 kB / 301.3 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09781/0.09886, allocations: 49.44 MB / 350.7 MB, free: 4.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.01434/0.1132, allocations: 13.29 MB / 364 MB, free: 7.086 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009862/0.1232, allocations: 4.63 MB / 368.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002809/0.126, allocations: 83.75 kB / 368.7 MB, free: 2.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1885/0.3145, allocations: 4.077 MB / 372.8 MB, free: 9.336 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006545/0.3211, allocations: 2.071 MB / 374.9 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.3237, allocations: 0.8097 MB / 375.7 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008161/0.3318, allocations: 4.738 MB / 380.4 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008307/0.3402, allocations: 5.127 MB / 385.6 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005633/0.3459, allocations: 1.917 MB / 387.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004634/0.3506, allocations: 2.694 MB / 390.2 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001835/0.3524, allocations: 455.3 kB / 390.6 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003659/0.3561, allocations: 1.338 MB / 392 MB, free: 5.809 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002606/0.3587, allocations: 2.328 MB / 394.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004202/0.363, allocations: 2.726 MB / 397 MB, free: 2.406 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01053/0.3735, allocations: 8.489 MB / 405.5 MB, free: 10.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.065e-05/0.3736, allocations: 8 kB / 405.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.3736, allocations: 0 / 405.5 MB, free: 10.7 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002932/0.3739, allocations: 0 / 405.5 MB, free: 10.7 MB / 318.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.03037/0.4043, allocations: 6.936 MB / 412.4 MB, free: 3.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.893e-05/0.4044, allocations: 8.031 kB / 412.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0175/0.4219, allocations: 2.532 MB / 415 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00775/0.4297, allocations: 3.077 MB / 418.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002771/0.43, allocations: 301.5 kB / 418.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001767/0.4318, allocations: 400.4 kB / 418.7 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02999/0.4618, allocations: 13.26 MB / 432 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001703/0.462, allocations: 43.59 kB / 432.1 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009192/0.4629, allocations: 188.3 kB / 432.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004642/0.4676, allocations: 2.187 MB / 434.4 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02867/0.4963, allocations: 12.68 MB / 447.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07115/0.5675, allocations: 49.28 MB / 496.4 MB, free: 14.37 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02534/0.5929, allocations: 6.424 MB / 0.491 GB, free: 7.793 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005429/0.5984, allocations: 3.909 MB / 0.4948 GB, free: 3.883 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009658/0.5994, allocations: 430.8 kB / 0.4952 GB, free: 3.422 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.221e-05/0.5994, allocations: 59.81 kB / 0.4953 GB, free: 3.352 MB / 414.1 MB Notification: Performance of pre-optimization done (n=214): time 5.29e-06/0.5995, allocations: 4 kB / 0.4953 GB, free: 3.348 MB / 414.1 MB Notification: Performance of matching and sorting (n=252): time 0.3009/0.9004, allocations: 36.06 MB / 0.5305 GB, free: 144.5 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.796e-05/0.9005, allocations: 211.8 kB / 0.5307 GB, free: 144.3 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007716/0.9082, allocations: 4.408 MB / 0.535 GB, free: 143.6 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008654/0.9091, allocations: 60.7 kB / 0.5351 GB, free: 143.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002496/0.9116, allocations: 3.443 MB / 0.5384 GB, free: 141.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001695/0.9133, allocations: 0.9484 MB / 0.5394 GB, free: 140.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00325/0.9166, allocations: 1.591 MB / 0.5409 GB, free: 140.1 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.257e-05/0.9167, allocations: 308.3 kB / 0.5412 GB, free: 139.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007085/0.9238, allocations: 4.323 MB / 0.5454 GB, free: 138.4 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009144/0.933, allocations: 8.217 MB / 0.5535 GB, free: 131.9 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01374/0.9468, allocations: 13.37 MB / 0.5665 GB, free: 123 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001592/0.947, allocations: 42.7 kB / 0.5666 GB, free: 123 MB / 446.1 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02615/0.9731, allocations: 14.74 MB / 0.581 GB, free: 115.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.9733, allocations: 73.64 kB / 0.581 GB, free: 115.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001436/0.9734, allocations: 136 kB / 0.5812 GB, free: 115.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006346/0.9798, allocations: 2.457 MB / 0.5836 GB, free: 112.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006754/0.9866, allocations: 1.786 MB / 0.5853 GB, free: 110.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01749/1.004, allocations: 17.04 MB / 0.6019 GB, free: 93.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007562/1.012, allocations: 471.3 kB / 0.6024 GB, free: 93.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001818/1.014, allocations: 0.4919 MB / 0.6029 GB, free: 92.54 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.004994/1.019, allocations: 2.379 MB / 0.6052 GB, free: 90.15 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/1.02, allocations: 402.8 kB / 0.6056 GB, free: 89.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01411/1.034, allocations: 9.633 MB / 0.615 GB, free: 80.09 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.894e-05/1.034, allocations: 31.88 kB / 0.615 GB, free: 80.05 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.551e-05/1.034, allocations: 12 kB / 0.615 GB, free: 80.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.48e-05/1.034, allocations: 11.95 kB / 0.615 GB, free: 80.03 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02855/1.063, allocations: 18.11 MB / 0.6327 GB, free: 61.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.562e-05/1.063, allocations: 0 / 0.6327 GB, free: 61.93 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003323/1.066, allocations: 0.5772 MB / 0.6333 GB, free: 61.35 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005929/1.072, allocations: 2.251 MB / 0.6355 GB, free: 59.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000689/1.073, allocations: 131.8 kB / 0.6356 GB, free: 58.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01653/1.09, allocations: 15.61 MB / 0.6509 GB, free: 42.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/1.09, allocations: 10.98 kB / 0.6509 GB, free: 42.95 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01982/1.109, allocations: 15.13 MB / 0.6656 GB, free: 27.73 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001067/1.11, allocations: 463.7 kB / 0.6661 GB, free: 27.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00103/1.112, allocations: 40 kB / 0.6661 GB, free: 27.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003365/1.115, allocations: 219.7 kB / 0.6663 GB, free: 27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008188/1.116, allocations: 241.5 kB / 0.6666 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003431/1.116, allocations: 147.7 kB / 0.6667 GB, free: 26.62 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003616/1.12, allocations: 2.775 MB / 0.6694 GB, free: 23.84 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.12, allocations: 4 kB / 0.6694 GB, free: 23.84 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006623/1.126, allocations: 1.427 MB / 0.6708 GB, free: 22.42 MB / 446.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.0008364/1.127, allocations: 204 kB / 0.671 GB, free: 22.21 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01731/1.145, allocations: 12.95 MB / 0.6837 GB, free: 9.273 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.145, allocations: 0 / 0.6837 GB, free: 9.273 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00607/1.151, allocations: 4.625 MB / 0.6882 GB, free: 4.609 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003423/1.154, allocations: 496.5 kB / 0.6886 GB, free: 4.133 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1916/1.346, allocations: 13.77 MB / 0.7021 GB, free: 132.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005038/1.351, allocations: 3.731 MB / 0.7057 GB, free: 132 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002572/1.354, allocations: 0.5819 MB / 0.7063 GB, free: 131.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/1.354, allocations: 7.5 kB / 0.7063 GB, free: 131.9 MB / 446.1 MB Notification: Performance of Templates: time 0.1425/1.496, allocations: 146.3 MB / 0.8491 GB, free: 128 kB / 446.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