Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001642/0.001642, allocations: 112.4 kB / 17.28 MB, free: 6.219 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.001751/0.001751, allocations: 185.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 51.92 kB / 280.2 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08988/0.09105, allocations: 46.63 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.0134/0.1045, allocations: 14.02 MB / 340.8 MB, free: 6.723 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008372/0.1129, allocations: 4.324 MB / 345.1 MB, free: 2.387 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.1152, allocations: 51.88 kB / 345.2 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.117, allocations: 0.849 MB / 346 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002864/0.1198, allocations: 1.281 MB / 347.3 MB, free: 204 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009685/0.1208, allocations: 0.4915 MB / 347.8 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003943/0.1248, allocations: 3.543 MB / 351.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001504/0.1263, allocations: 1.392 MB / 352.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000912/0.1272, allocations: 0.8446 MB / 353.6 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001467/0.1287, allocations: 1.379 MB / 355 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002526/0.129, allocations: 176 kB / 355.1 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001432/0.1304, allocations: 0.9867 MB / 356.1 MB, free: 7.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009183/0.1313, allocations: 1.161 MB / 357.3 MB, free: 6.195 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001173/0.1325, allocations: 1.328 MB / 358.6 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004237/0.1368, allocations: 4.296 MB / 362.9 MB, free: 0.5508 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.1368, allocations: 4 kB / 362.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1368, allocations: 0 / 362.9 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.016e-05/0.1369, allocations: 3.938 kB / 362.9 MB, free: 0.543 MB / 302.1 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.006588/0.1435, allocations: 3.265 MB / 366.2 MB, free: 13.22 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1435, allocations: 8.031 kB / 366.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005776/0.1493, allocations: 1.659 MB / 367.8 MB, free: 11.55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002886/0.1522, allocations: 1.554 MB / 369.4 MB, free: 9.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.443e-05/0.1523, allocations: 127.1 kB / 369.5 MB, free: 9.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003528/0.1527, allocations: 167.9 kB / 369.7 MB, free: 9.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009204/0.1619, allocations: 6.604 MB / 376.3 MB, free: 2.516 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.719e-05/0.162, allocations: 31.66 kB / 376.3 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002521/0.1623, allocations: 91.89 kB / 376.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002021/0.1643, allocations: 1.331 MB / 377.7 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1574/0.3217, allocations: 5.823 MB / 383.6 MB, free: 49.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02973/0.3515, allocations: 28.08 MB / 411.6 MB, free: 28.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005073/0.3566, allocations: 2.74 MB / 414.4 MB, free: 26.43 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001167/0.3578, allocations: 1.273 MB / 415.7 MB, free: 25.15 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004969/0.3583, allocations: 0.6344 MB / 416.3 MB, free: 24.41 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.3583, allocations: 51.12 kB / 416.3 MB, free: 24.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=120): time 3.767e-06/0.3584, allocations: 0 / 416.3 MB, free: 24.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=154): time 0.0649/0.4233, allocations: 20.55 MB / 436.9 MB, free: 3.719 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.48e-05/0.4234, allocations: 149.5 kB / 437 MB, free: 3.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.4272, allocations: 2.84 MB / 439.9 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003401/0.4275, allocations: 49.7 kB / 439.9 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001412/0.4289, allocations: 2.108 MB / 442 MB, free: 14.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008014/0.4297, allocations: 0.6065 MB / 442.6 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001717/0.4315, allocations: 1.002 MB / 443.6 MB, free: 12.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.4317, allocations: 309.1 kB / 443.9 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003052/0.4347, allocations: 2.219 MB / 446.2 MB, free: 10.38 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005122/0.4399, allocations: 5.189 MB / 451.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.4499, allocations: 7.981 MB / 459.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/0.4501, allocations: 32 kB / 459.4 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=645) (initialization): time 0.02454/0.4746, allocations: 10.3 MB / 469.7 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/0.4748, allocations: 52 kB / 469.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001977/0.475, allocations: 104 kB / 469.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01227/0.4873, allocations: 3.432 MB / 473.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004273/0.4916, allocations: 1.103 MB / 474.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02014/0.5118, allocations: 12.86 MB / 487.2 MB, free: 14.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004089/0.516, allocations: 343.3 kB / 487.5 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009494/0.5169, allocations: 300 kB / 487.8 MB, free: 13.54 MB / 382.1 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 (not torn): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (2,100.0%), (3,88.9%), (3,88.9%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,23,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003197/0.5201, allocations: 1.481 MB / 489.3 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007634/0.5209, allocations: 248.8 kB / 489.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01624/0.5372, allocations: 5.998 MB / 495.6 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.208e-05/0.5373, allocations: 20 kB / 495.6 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.297e-05/0.5373, allocations: 8 kB / 495.6 MB, free: 5.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.652e-05/0.5374, allocations: 8.844 kB / 495.6 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05272/0.5901, allocations: 13.18 MB / 0.4969 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.784e-05/0.5902, allocations: 0 / 0.4969 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/0.5924, allocations: 235.6 kB / 0.4971 GB, free: 8.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02569/0.6182, allocations: 4.023 MB / 0.501 GB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005149/0.6187, allocations: 43.95 kB / 0.5011 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03719/0.6559, allocations: 12.83 MB / 0.5136 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.656, allocations: 0 / 0.5136 GB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1917/0.8477, allocations: 9.89 MB / 0.5232 GB, free: 131.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009702/0.8487, allocations: 308.3 kB / 0.5235 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005339/0.8492, allocations: 34.44 kB / 0.5236 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/0.8509, allocations: 182.2 kB / 0.5237 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004956/0.8514, allocations: 110.3 kB / 0.5238 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001444/0.8516, allocations: 49.48 kB / 0.5239 GB, free: 131.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002655/0.8542, allocations: 1.768 MB / 0.5256 GB, free: 131.6 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.8543, allocations: 1.156 kB / 0.5256 GB, free: 131.6 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004301/0.8586, allocations: 0.828 MB / 0.5264 GB, free: 131.6 MB / 414.1 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 (not torn): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (3,88.9%), (2,100.0%), (3,88.9%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,19,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004303/0.859, allocations: 165.4 kB / 0.5266 GB, free: 131.5 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74: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 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74: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.01099/0.87, allocations: 6.766 MB / 0.5332 GB, free: 128.9 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.981e-06/0.87, allocations: 0 / 0.5332 GB, free: 128.9 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004486/0.8745, allocations: 2.859 MB / 0.536 GB, free: 127.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001955/0.8765, allocations: 297.8 kB / 0.5363 GB, free: 127.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01054/0.887, allocations: 8.536 MB / 0.5446 GB, free: 122.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001685/0.8888, allocations: 2.319 MB / 0.5469 GB, free: 121.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003116/0.8919, allocations: 1.537 MB / 0.5484 GB, free: 121.7 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004651/0.8924, allocations: 191.6 kB / 0.5486 GB, free: 121.7 MB / 414.1 MB Notification: Performance of SimCode: time 1.333e-06/0.8924, allocations: 0 / 0.5486 GB, free: 121.7 MB / 414.1 MB Notification: Performance of Templates: time 0.05453/0.9469, allocations: 41.18 MB / 0.5888 GB, free: 83.1 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/RollingWheel/RollingWheel.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches