Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.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.Elementary.RollingWheel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wheel1.angles.1.|wheel1.angles.2.|wheel1.angles.3.|wheel1.der_angles.1.|wheel1.der_angles.2.|wheel1.der_angles.3.|wheel1.x|wheel1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|wheel1.angles.1.|wheel1.angles.2.|wheel1.angles.3.|wheel1.der_angles.1.|wheel1.der_angles.2.|wheel1.der_angles.3.|wheel1.x|wheel1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001763/0.001763, allocations: 200.1 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.248/1.248, allocations: 226.6 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008057/0.0008057, allocations: 92.06 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002171/0.0002172, allocations: 15.92 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1946, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.008603/0.2033, allocations: 12.57 MB / 420.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006895/0.2102, allocations: 4.084 MB / 424.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001991/0.2122, allocations: 55.81 kB / 424.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001511/0.2137, allocations: 0.6065 MB / 425.4 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004858/0.2186, allocations: 2.195 MB / 427.6 MB, free: 8.164 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001111/0.2198, allocations: 471.2 kB / 428 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03732/0.2571, allocations: 31.39 MB / 459.4 MB, free: 8.266 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003684/0.2608, allocations: 1.6 MB / 461 MB, free: 6.629 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001623/0.2625, allocations: 0.7355 MB / 461.7 MB, free: 5.891 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002007/0.2645, allocations: 1.235 MB / 463 MB, free: 4.652 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003891/0.265, allocations: 84 kB / 463.1 MB, free: 4.57 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001895/0.2669, allocations: 0.9125 MB / 464 MB, free: 3.656 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001223/0.2681, allocations: 1.036 MB / 465 MB, free: 2.617 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.2696, allocations: 1.155 MB / 466.2 MB, free: 1.449 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004128/0.2737, allocations: 3.337 MB / 469.5 MB, free: 14.11 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.077e-05/0.2738, allocations: 3.984 kB / 469.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.866e-06/0.2738, allocations: 7.938 kB / 469.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001554/0.274, allocations: 4 kB / 469.5 MB, free: 14.09 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 947 * Number of variables: 947 Notification: Performance of Generate backend data structure: time 0.008058/0.2821, allocations: 2.836 MB / 472.4 MB, free: 11.2 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.2821, allocations: 8.031 kB / 472.4 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00604/0.2882, allocations: 1.698 MB / 474.1 MB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003371/0.2916, allocations: 1.483 MB / 475.5 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.2917, allocations: 131.1 kB / 475.7 MB, free: 7.828 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005779/0.2923, allocations: 171.8 kB / 475.8 MB, free: 7.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009971/0.3023, allocations: 6.588 MB / 482.4 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.224e-05/0.3024, allocations: 35.64 kB / 482.5 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002875/0.3027, allocations: 87.89 kB / 482.5 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001975/0.3047, allocations: 1.323 MB / 483.9 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01041/0.3152, allocations: 5.835 MB / 489.7 MB, free: 9.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2261/0.5414, allocations: 28.09 MB / 0.5057 GB, free: 76.38 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005601/0.547, allocations: 2.747 MB / 0.5083 GB, free: 75.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.5484, allocations: 1.272 MB / 0.5096 GB, free: 75.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005397/0.549, allocations: 0.6312 MB / 0.5102 GB, free: 75.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.549, allocations: 50.53 kB / 0.5102 GB, free: 75.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 4.238e-06/0.549, allocations: 0.5 kB / 0.5102 GB, free: 75.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.06105/0.6101, allocations: 20.56 MB / 0.5303 GB, free: 62.79 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.6102, allocations: 152.7 kB / 0.5305 GB, free: 62.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003191/0.6134, allocations: 2.821 MB / 0.5332 GB, free: 59.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003279/0.6137, allocations: 49.09 kB / 0.5333 GB, free: 59.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008326/0.6146, allocations: 2.102 MB / 0.5353 GB, free: 57.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005101/0.6151, allocations: 0.6028 MB / 0.5359 GB, free: 57.03 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.6153, allocations: 100 kB / 0.536 GB, free: 56.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001991/0.6155, allocations: 0.5088 MB / 0.5365 GB, free: 56.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002647/0.6182, allocations: 2.204 MB / 0.5387 GB, free: 54.21 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003481/0.6217, allocations: 5.167 MB / 0.5437 GB, free: 47.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006827/0.6285, allocations: 7.97 MB / 0.5515 GB, free: 38.3 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-05/0.6286, allocations: 35.94 kB / 0.5515 GB, free: 38.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=645) (initialization): time 0.01993/0.6485, allocations: 10.29 MB / 0.5616 GB, free: 27.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.205e-05/0.6486, allocations: 51.98 kB / 0.5616 GB, free: 27.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.579e-05/0.6487, allocations: 104 kB / 0.5617 GB, free: 27.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/0.6592, allocations: 3.494 MB / 0.5651 GB, free: 24.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003057/0.6623, allocations: 1.111 MB / 0.5662 GB, free: 23.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01539/0.6777, allocations: 12.04 MB / 0.578 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003489/0.6812, allocations: 336 kB / 0.5783 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004923/0.6817, allocations: 304.5 kB / 0.5786 GB, free: 10.37 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 477 * Number of states: 0 () * Number of discrete variables: 15 (world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],wheel1.body.sphereColor[3],wheel1.body.sphereColor[2],wheel1.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (585): * Single equations (assignments): 575 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(3,88.9%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00186/0.6836, allocations: 1.471 MB / 0.58 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003731/0.684, allocations: 251.4 kB / 0.5803 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01382/0.6978, allocations: 6.021 MB / 0.5861 GB, free: 2.586 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.493e-05/0.6979, allocations: 26.89 kB / 0.5862 GB, free: 2.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/0.6979, allocations: 11.94 kB / 0.5862 GB, free: 2.559 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.138e-05/0.698, allocations: 3.984 kB / 0.5862 GB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02708/0.725, allocations: 13.21 MB / 0.5991 GB, free: 5.312 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-05/0.7251, allocations: 0 / 0.5991 GB, free: 5.312 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.7262, allocations: 235.6 kB / 0.5993 GB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01236/0.7386, allocations: 4.136 MB / 0.6034 GB, free: 0.9219 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004819/0.7391, allocations: 43.95 kB / 0.6034 GB, free: 0.8789 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01803/0.7572, allocations: 12.09 MB / 0.6152 GB, free: 4.652 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.7572, allocations: 4.25 kB / 0.6152 GB, free: 4.648 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02025/0.7775, allocations: 9.925 MB / 0.6249 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007615/0.7783, allocations: 313.7 kB / 0.6252 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004244/0.7787, allocations: 40.92 kB / 0.6252 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001563/0.7803, allocations: 183.7 kB / 0.6254 GB, free: 10.14 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003847/0.7807, allocations: 104.8 kB / 0.6255 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/0.7809, allocations: 54.08 kB / 0.6256 GB, free: 9.984 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00252/0.7834, allocations: 1.743 MB / 0.6273 GB, free: 8.234 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7834, allocations: 0 / 0.6273 GB, free: 8.234 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003653/0.7871, allocations: 0.8306 MB / 0.6281 GB, free: 7.406 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (wheel1.x,wheel1.y,wheel1.angles[1],wheel1.angles[2],wheel1.angles[3],wheel1.der_angles[1],wheel1.der_angles[2],wheel1.der_angles[3]) * 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 (104): * Single equations (assignments): 94 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(3,88.9%),(2,100.0%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,80.6%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004531/0.7875, allocations: 163.6 kB / 0.6282 GB, free: 7.242 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Parts/RollingWheel.mo:33:3-37:72:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Mechanics/MultiBody/Parts/RollingWheel.mo:33:3-37:72:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.0102/0.7977, allocations: 6.205 MB / 0.6343 GB, free: 0.9219 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.092e-06/0.7978, allocations: 4 kB / 0.6343 GB, free: 0.918 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00498/0.8028, allocations: 2.862 MB / 0.6371 GB, free: 13.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002151/0.8049, allocations: 284.6 kB / 0.6374 GB, free: 13.63 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01183/0.8168, allocations: 8.686 MB / 0.6458 GB, free: 4.914 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002115/0.819, allocations: 2.325 MB / 0.6481 GB, free: 2.566 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007298/0.8197, allocations: 223.4 kB / 0.6483 GB, free: 2.348 MB / 442.7 MB Notification: Performance of SimCode: time 7.91e-07/0.8197, allocations: 4 kB / 0.6483 GB, free: 2.344 MB / 442.7 MB Notification: Performance of Templates: time 0.2795/1.099, allocations: 128.7 MB / 0.774 GB, free: 95.36 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/RollingWheel/RollingWheel.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches