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.001507/0.001507, allocations: 203.6 kB / 18.07 MB, free: 3.648 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.584/1.584, allocations: 226.5 MB / 245.4 MB, free: 6.438 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007961/0.0007959, allocations: 95.69 kB / 297.4 MB, free: 6.652 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002493/0.0002494, allocations: 11.98 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2424/0.2427, allocations: 51.29 MB / 408.7 MB, free: 27.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1213/0.3641, allocations: 91.5 MB / 0.4884 GB, free: 28 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002867/0.3644, allocations: 91.95 kB / 0.4885 GB, free: 15.94 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.347/0.7114, allocations: 60.23 MB / 0.5474 GB, free: 64.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.7114, allocations: 4 kB / 0.5474 GB, free: 64.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.595e-05/0.7115, allocations: 44 kB / 0.5474 GB, free: 64.31 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: 947 * Number of variables: 947 Notification: Performance of Generate backend data structure: time 0.009583/0.7211, allocations: 3.109 MB / 0.5504 GB, free: 61.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.7212, allocations: 12.03 kB / 0.5504 GB, free: 61.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007972/0.7292, allocations: 1.9 MB / 0.5523 GB, free: 59.22 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004728/0.7339, allocations: 2.137 MB / 0.5544 GB, free: 57.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.7342, allocations: 185.1 kB / 0.5546 GB, free: 56.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001176/0.7354, allocations: 240.2 kB / 0.5548 GB, free: 56.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01054/0.7459, allocations: 7.302 MB / 0.5619 GB, free: 48.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001069/0.7461, allocations: 47.8 kB / 0.562 GB, free: 48.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003709/0.7465, allocations: 127.9 kB / 0.5621 GB, free: 48.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008057/0.7473, allocations: 0.7339 MB / 0.5628 GB, free: 47.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009139/0.7564, allocations: 6.24 MB / 0.5689 GB, free: 41.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03035/0.7868, allocations: 36.86 MB / 0.6049 GB, free: 3.238 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006035/0.7929, allocations: 3.005 MB / 0.6078 GB, free: 76 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002015/0.795, allocations: 1.415 MB / 0.6092 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006774/0.8018, allocations: 4.467 MB / 0.6136 GB, free: 9.973 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.947e-05/0.8019, allocations: 55.06 kB / 0.6136 GB, free: 9.91 MB / 394.7 MB Notification: Performance of pre-optimization done (n=113): time 3.867e-06/0.8019, allocations: 0 / 0.6136 GB, free: 9.91 MB / 394.7 MB Notification: Performance of matching and sorting (n=147): time 0.07601/0.8779, allocations: 22.43 MB / 0.6355 GB, free: 3.359 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.491e-05/0.878, allocations: 145.8 kB / 0.6357 GB, free: 3.184 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004068/0.8821, allocations: 2.891 MB / 0.6385 GB, free: 284 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003714/0.8825, allocations: 45.7 kB / 0.6385 GB, free: 232 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/0.884, allocations: 2.125 MB / 0.6406 GB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008364/0.8848, allocations: 0.5786 MB / 0.6412 GB, free: 13.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003195/0.8851, allocations: 96 kB / 0.6413 GB, free: 13.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003187/0.8855, allocations: 0.5086 MB / 0.6418 GB, free: 12.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003581/0.8891, allocations: 2.344 MB / 0.6441 GB, free: 10.52 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005537/0.8946, allocations: 5.318 MB / 0.6492 GB, free: 3.719 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01047/0.9051, allocations: 8.203 MB / 0.6573 GB, free: 10.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.46e-05/0.9053, allocations: 32 kB / 0.6573 GB, free: 10.02 MB / 442.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.2328/1.138, allocations: 11.23 MB / 0.6683 GB, free: 119.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001175/1.138, allocations: 54.45 kB / 0.6683 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001461/1.138, allocations: 108.3 kB / 0.6684 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01391/1.152, allocations: 4.158 MB / 0.6725 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00388/1.156, allocations: 1.123 MB / 0.6736 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02148/1.178, allocations: 13.76 MB / 0.687 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005367/1.183, allocations: 345.4 kB / 0.6873 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/1.184, allocations: 343.2 kB / 0.6877 GB, free: 117.7 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * 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 (575): * Single equations (assignments): 565 * 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 {(10,60.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003295/1.188, allocations: 1.463 MB / 0.6891 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006712/1.188, allocations: 257.1 kB / 0.6893 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01819/1.207, allocations: 6.949 MB / 0.6961 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.323e-05/1.207, allocations: 19.16 kB / 0.6961 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.976e-05/1.207, allocations: 11.19 kB / 0.6962 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-05/1.207, allocations: 13.94 kB / 0.6962 GB, free: 115.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02886/1.236, allocations: 14.15 MB / 0.71 GB, free: 110.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.226e-05/1.236, allocations: 3.406 kB / 0.71 GB, free: 110.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001036/1.237, allocations: 223 kB / 0.7102 GB, free: 110.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01355/1.25, allocations: 4.795 MB / 0.7149 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000337/1.251, allocations: 53.08 kB / 0.7149 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01843/1.269, allocations: 13.88 MB / 0.7285 GB, free: 94.69 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/1.269, allocations: 3.844 kB / 0.7285 GB, free: 94.69 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02178/1.291, allocations: 10.96 MB / 0.7392 GB, free: 83.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000802/1.292, allocations: 340.9 kB / 0.7395 GB, free: 83.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005221/1.292, allocations: 28 kB / 0.7395 GB, free: 83.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001826/1.294, allocations: 204.8 kB / 0.7397 GB, free: 83.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004015/1.294, allocations: 100.8 kB / 0.7398 GB, free: 83.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001741/1.295, allocations: 47.97 kB / 0.7399 GB, free: 83.16 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002463/1.297, allocations: 1.805 MB / 0.7416 GB, free: 81.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.81e-07/1.297, allocations: 2.812 kB / 0.7416 GB, free: 81.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003899/1.301, allocations: 0.8651 MB / 0.7425 GB, free: 80.49 MB / 442.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 (97): * Single equations (assignments): 87 * 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 {(8,65.6%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004594/1.302, allocations: 176.8 kB / 0.7427 GB, free: 80.34 MB / 442.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.01086/1.312, allocations: 6.705 MB / 0.7492 GB, free: 73.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/1.312, allocations: 0 / 0.7492 GB, free: 73.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005699/1.318, allocations: 3.176 MB / 0.7523 GB, free: 70.46 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002396/1.321, allocations: 281.5 kB / 0.7526 GB, free: 70.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01153/1.332, allocations: 8.752 MB / 0.7611 GB, free: 61.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001892/1.334, allocations: 2.327 MB / 0.7634 GB, free: 59.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008754/1.335, allocations: 259.3 kB / 0.7636 GB, free: 58.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.293e-06/1.335, allocations: 0 / 0.7636 GB, free: 58.88 MB / 442.7 MB Notification: Performance of Templates: time 0.3201/1.655, allocations: 130.8 MB / 0.8914 GB, free: 102.6 MB / 458.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/jenkins1/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