Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.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.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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001855/0.001855, allocations: 203 kB / 18.07 MB, free: 3.641 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.537/1.537, allocations: 226.5 MB / 245.4 MB, free: 8.168 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008259/0.0008259, allocations: 94.2 kB / 297.4 MB, free: 6.859 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002187, allocations: 8 kB / 357.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2462, allocations: 51.29 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1281/0.3743, allocations: 103.5 MB / 0.5002 GB, free: 4.035 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.3746, allocations: 99.94 kB / 0.5003 GB, free: 3.938 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4019/0.7766, allocations: 96.64 MB / 0.5946 GB, free: 16.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.717e-06/0.7766, allocations: 3.938 kB / 0.5946 GB, free: 16.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001994/0.7768, allocations: 99.94 kB / 0.5947 GB, free: 16.38 MB / 378.7 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.02433/0.8012, allocations: 6.135 MB / 0.6007 GB, free: 10.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.26e-05/0.8012, allocations: 12.03 kB / 0.6007 GB, free: 10.16 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01681/0.8181, allocations: 3.613 MB / 0.6043 GB, free: 6.531 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009259/0.8274, allocations: 3.963 MB / 0.6081 GB, free: 2.508 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000301/0.8277, allocations: 381.9 kB / 0.6085 GB, free: 2.133 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00258/0.8303, allocations: 0.4958 MB / 0.609 GB, free: 1.637 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03323/0.8636, allocations: 12.84 MB / 0.6215 GB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002861/0.8639, allocations: 63.41 kB / 0.6216 GB, free: 3.637 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001904/0.8658, allocations: 239.9 kB / 0.6218 GB, free: 3.402 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001866/0.8677, allocations: 1.09 MB / 0.6229 GB, free: 2.312 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02681/0.8945, allocations: 11.27 MB / 0.6339 GB, free: 7.023 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3591/1.254, allocations: 55.85 MB / 0.6884 GB, free: 57.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01799/1.272, allocations: 5.711 MB / 0.694 GB, free: 56.93 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004539/1.276, allocations: 3.434 MB / 0.6974 GB, free: 56.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001717/1.278, allocations: 1.043 MB / 0.6984 GB, free: 56.04 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.821e-05/1.278, allocations: 54.81 kB / 0.6984 GB, free: 56 MB / 442.7 MB Notification: Performance of pre-optimization done (n=214): time 5.35e-06/1.278, allocations: 0 / 0.6984 GB, free: 56 MB / 442.7 MB Notification: Performance of matching and sorting (n=252): time 0.09066/1.369, allocations: 30.83 MB / 0.7285 GB, free: 52.48 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/1.369, allocations: 204.4 kB / 0.7287 GB, free: 52.26 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0108/1.38, allocations: 4.302 MB / 0.7329 GB, free: 50.93 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001106/1.381, allocations: 64.55 kB / 0.733 GB, free: 50.88 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003792/1.385, allocations: 3.471 MB / 0.7364 GB, free: 48.48 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002019/1.387, allocations: 0.9422 MB / 0.7373 GB, free: 47.79 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/1.388, allocations: 133.6 kB / 0.7374 GB, free: 47.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0005343/1.388, allocations: 0.5933 MB / 0.738 GB, free: 47.27 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008657/1.397, allocations: 3.475 MB / 0.7414 GB, free: 46.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01103/1.408, allocations: 7.358 MB / 0.7486 GB, free: 39.72 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01329/1.422, allocations: 11.66 MB / 0.76 GB, free: 31.87 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001671/1.422, allocations: 41.16 kB / 0.76 GB, free: 31.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=881) (initialization): time 0.0247/1.446, allocations: 12.71 MB / 0.7724 GB, free: 22.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.569e-05/1.447, allocations: 64 kB / 0.7725 GB, free: 22.26 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001689/1.447, allocations: 135.9 kB / 0.7726 GB, free: 22.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005978/1.453, allocations: 2.266 MB / 0.7748 GB, free: 20.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006002/1.459, allocations: 1.634 MB / 0.7764 GB, free: 19.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01837/1.477, allocations: 15.32 MB / 0.7914 GB, free: 5.543 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006507/1.484, allocations: 455.7 kB / 0.7918 GB, free: 5.176 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001668/1.486, allocations: 436 kB / 0.7922 GB, free: 4.789 MB / 442.7 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 (808): * Single equations (assignments): 802 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 15,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006334/1.492, allocations: 2.377 MB / 0.7946 GB, free: 2.695 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001224/1.493, allocations: 398.9 kB / 0.7949 GB, free: 2.301 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01875/1.512, allocations: 7.798 MB / 0.8026 GB, free: 12.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.394e-05/1.512, allocations: 24 kB / 0.8026 GB, free: 12.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.853e-05/1.512, allocations: 14.81 kB / 0.8026 GB, free: 12.63 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.076e-05/1.512, allocations: 17.3 kB / 0.8026 GB, free: 12.63 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03983/1.552, allocations: 15.06 MB / 0.8173 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.332e-05/1.552, allocations: 0 / 0.8173 GB, free: 14.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003522/1.556, allocations: 441.6 kB / 0.8177 GB, free: 13.68 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007972/1.564, allocations: 2.04 MB / 0.8197 GB, free: 11.63 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009029/1.565, allocations: 40 kB / 0.8198 GB, free: 11.59 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02447/1.589, allocations: 13.89 MB / 0.8333 GB, free: 13.32 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.589, allocations: 7.172 kB / 0.8333 GB, free: 13.31 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02853/1.618, allocations: 11.96 MB / 0.845 GB, free: 1.27 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001718/1.619, allocations: 451.7 kB / 0.8454 GB, free: 0.8047 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0017/1.621, allocations: 43.94 kB / 0.8455 GB, free: 0.7656 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004133/1.625, allocations: 211.7 kB / 0.8457 GB, free: 0.5586 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001287/1.627, allocations: 161.7 kB / 0.8458 GB, free: 408 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004405/1.627, allocations: 62.42 kB / 0.8459 GB, free: 348 kB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007205/1.634, allocations: 2.686 MB / 0.8485 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.41e-07/1.634, allocations: 0 / 0.8485 GB, free: 13.65 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009763/1.644, allocations: 1.391 MB / 0.8499 GB, free: 12.27 MB / 0.4948 GB 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 12,(4,100.0%) 18,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/1.645, allocations: 202.5 kB / 0.8501 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02019/1.665, allocations: 8.762 MB / 0.8586 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/1.665, allocations: 0 / 0.8586 GB, free: 3.297 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2446/1.91, allocations: 3.74 MB / 0.8623 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004736/1.915, allocations: 481.5 kB / 0.8627 GB, free: 147.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02349/1.938, allocations: 14.7 MB / 0.8771 GB, free: 142.8 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005636/1.944, allocations: 3.745 MB / 0.8808 GB, free: 142 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002039/1.946, allocations: 365.4 kB / 0.8811 GB, free: 142 MB / 0.4948 GB Notification: Performance of SimCode: time 1.102e-06/1.946, allocations: 0 / 0.8811 GB, free: 142 MB / 0.4948 GB Notification: Performance of Templates: time 0.1517/2.098, allocations: 139 MB / 1.017 GB, free: 45.28 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_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