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.001057/0.001057, allocations: 194 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.5 MB / 244.7 MB, free: 8.184 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007526/0.0007526, allocations: 96.48 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002112/0.0002112, allocations: 4 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1949/0.1951, allocations: 51.29 MB / 408 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.BevelGear1D): time 0.04554/0.2407, allocations: 59.68 MB / 467.7 MB, free: 15.86 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.02658/0.2674, allocations: 12.73 MB / 480.4 MB, free: 3.102 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01001/0.2774, allocations: 279.3 kB / 480.7 MB, free: 2.828 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007764/0.2852, allocations: 2.931 MB / 483.7 MB, free: 15.88 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02066/0.3059, allocations: 8.607 MB / 492.3 MB, free: 7.242 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003516/0.3094, allocations: 0.7372 MB / 493 MB, free: 6.504 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.2197/0.5291, allocations: 33.16 MB / 0.5138 GB, free: 21.94 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008367/0.5375, allocations: 6.874 MB / 0.5205 GB, free: 21.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002189/0.5397, allocations: 1.447 MB / 0.522 GB, free: 21.21 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002855/0.5426, allocations: 2.362 MB / 0.5243 GB, free: 21.2 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005408/0.5431, allocations: 172.7 kB / 0.5244 GB, free: 21.2 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001892/0.545, allocations: 1.097 MB / 0.5255 GB, free: 21.2 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00145/0.5465, allocations: 1.967 MB / 0.5274 GB, free: 21.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001782/0.5483, allocations: 2.224 MB / 0.5296 GB, free: 21.17 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005839/0.5541, allocations: 6.769 MB / 0.5362 GB, free: 18.6 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.177e-06/0.5542, allocations: 2.156 kB / 0.5362 GB, free: 18.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5542, allocations: 1.969 kB / 0.5362 GB, free: 18.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000225/0.5544, allocations: 0 / 0.5362 GB, free: 18.6 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.0226/0.577, allocations: 5.775 MB / 0.5418 GB, free: 14.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.5771, allocations: 8.031 kB / 0.5419 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0145/0.5916, allocations: 2.644 MB / 0.5444 GB, free: 12.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006291/0.5979, allocations: 3.055 MB / 0.5474 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001688/0.5981, allocations: 300.7 kB / 0.5477 GB, free: 9.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009655/0.5991, allocations: 409.5 kB / 0.5481 GB, free: 9.645 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/0.6214, allocations: 13.25 MB / 0.561 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.6215, allocations: 43.69 kB / 0.5611 GB, free: 15.27 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005853/0.6221, allocations: 192.4 kB / 0.5613 GB, free: 15.22 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003987/0.6261, allocations: 2.204 MB / 0.5634 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02519/0.6513, allocations: 12.65 MB / 0.5758 GB, free: 4.277 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06345/0.7148, allocations: 49.24 MB / 0.6239 GB, free: 9.934 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02185/0.7367, allocations: 6.422 MB / 0.6301 GB, free: 3.375 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00526/0.742, allocations: 3.915 MB / 0.6339 GB, free: 15.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009188/0.743, allocations: 432.5 kB / 0.6344 GB, free: 15 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.7431, allocations: 59.88 kB / 0.6344 GB, free: 14.93 MB / 458.7 MB Notification: Performance of pre-optimization done (n=214): time 5.52e-06/0.7431, allocations: 0 / 0.6344 GB, free: 14.93 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.09998/0.8431, allocations: 36.09 MB / 0.6697 GB, free: 10.71 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001159/0.8432, allocations: 206.8 kB / 0.6699 GB, free: 10.46 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007219/0.8505, allocations: 4.386 MB / 0.6741 GB, free: 6.055 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007259/0.8512, allocations: 61.7 kB / 0.6742 GB, free: 5.988 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002593/0.8538, allocations: 3.449 MB / 0.6776 GB, free: 2.555 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001482/0.8553, allocations: 0.9487 MB / 0.6785 GB, free: 1.613 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008303/0.8562, allocations: 136 kB / 0.6786 GB, free: 1.48 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0004715/0.8566, allocations: 0.5915 MB / 0.6792 GB, free: 0.8828 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1905/1.047, allocations: 4.303 MB / 0.6834 GB, free: 188.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008183/1.055, allocations: 8.202 MB / 0.6914 GB, free: 181.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01413/1.07, allocations: 13.34 MB / 0.7044 GB, free: 173.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001499/1.07, allocations: 37.53 kB / 0.7045 GB, free: 173.1 MB / 490.7 MB Notification: Performance of matching and sorting (n=899) (initialization): time 0.02939/1.099, allocations: 14.72 MB / 0.7189 GB, free: 165.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002642/1.099, allocations: 60 kB / 0.7189 GB, free: 165 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003224/1.1, allocations: 136 kB / 0.719 GB, free: 164.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01163/1.111, allocations: 2.462 MB / 0.7214 GB, free: 163.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01131/1.123, allocations: 1.778 MB / 0.7232 GB, free: 161.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03036/1.153, allocations: 15.83 MB / 0.7386 GB, free: 146.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01092/1.164, allocations: 481.5 kB / 0.7391 GB, free: 146.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001924/1.166, allocations: 0.494 MB / 0.7396 GB, free: 145.7 MB / 490.7 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 (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 {(2,100.0%) 16,(4,100.0%) 21,(2,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006751/1.173, allocations: 2.383 MB / 0.7419 GB, free: 143.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001422/1.174, allocations: 396.8 kB / 0.7423 GB, free: 143.2 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02359/1.198, allocations: 9.64 MB / 0.7517 GB, free: 133.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.528e-05/1.198, allocations: 35.97 kB / 0.7517 GB, free: 133.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.65e-05/1.198, allocations: 8.375 kB / 0.7517 GB, free: 133.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.595e-05/1.198, allocations: 11.97 kB / 0.7518 GB, free: 133.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04223/1.24, allocations: 18.1 MB / 0.7694 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/1.241, allocations: 4 kB / 0.7694 GB, free: 115.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002959/1.243, allocations: 0.5849 MB / 0.77 GB, free: 114.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005474/1.249, allocations: 2.234 MB / 0.7722 GB, free: 112.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004719/1.249, allocations: 127.8 kB / 0.7723 GB, free: 112.5 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01461/1.264, allocations: 14.55 MB / 0.7865 GB, free: 97.64 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.264, allocations: 0 / 0.7865 GB, free: 97.64 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0179/1.282, allocations: 15.13 MB / 0.8013 GB, free: 82.43 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009716/1.283, allocations: 467.7 kB / 0.8017 GB, free: 81.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008753/1.284, allocations: 48.95 kB / 0.8018 GB, free: 81.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002743/1.287, allocations: 227.7 kB / 0.802 GB, free: 81.68 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006204/1.287, allocations: 233.6 kB / 0.8022 GB, free: 81.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003412/1.288, allocations: 148.8 kB / 0.8024 GB, free: 81.3 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003687/1.291, allocations: 2.744 MB / 0.805 GB, free: 78.55 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.291, allocations: 0 / 0.805 GB, free: 78.55 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005209/1.297, allocations: 1.434 MB / 0.8064 GB, free: 77.12 MB / 490.7 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 (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.0005551/1.297, allocations: 190.5 kB / 0.8066 GB, free: 76.94 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01251/1.31, allocations: 10.35 MB / 0.8167 GB, free: 66.57 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.047e-06/1.31, allocations: 0 / 0.8167 GB, free: 66.57 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005133/1.315, allocations: 4.625 MB / 0.8213 GB, free: 61.91 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003063/1.318, allocations: 469.9 kB / 0.8217 GB, free: 61.46 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/1.336, allocations: 15.74 MB / 0.8371 GB, free: 45.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00362/1.34, allocations: 3.738 MB / 0.8407 GB, free: 41.91 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002306/1.342, allocations: 0.5847 MB / 0.8413 GB, free: 41.33 MB / 490.7 MB Notification: Performance of SimCode: time 8.21e-07/1.342, allocations: 0 / 0.8413 GB, free: 41.33 MB / 490.7 MB Notification: Performance of Templates: time 0.3013/1.644, allocations: 145.4 MB / 0.9833 GB, free: 78.62 MB / 490.7 MB 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/jenkins/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