Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.00111/0.00111, allocations: 108.3 kB / 17.74 MB, free: 5.316 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.001304/0.001304, allocations: 187 kB / 18.67 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001064/0.001064, allocations: 51.91 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2582, allocations: 49.43 MB / 401.4 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.007926/0.2662, allocations: 7.047 MB / 408.5 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006132/0.2724, allocations: 3.133 MB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001214/0.2736, allocations: 31.94 kB / 411.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.2755, allocations: 0.8952 MB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003132/0.2787, allocations: 1.378 MB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.2798, allocations: 0.5147 MB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003265/0.2831, allocations: 2.731 MB / 417.1 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.2846, allocations: 1.326 MB / 418.5 MB, free: 7.734 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.2858, allocations: 0.8603 MB / 419.3 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002213/0.2881, allocations: 2.018 MB / 421.3 MB, free: 4.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004389/0.2885, allocations: 176 kB / 421.5 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001739/0.2903, allocations: 0.9828 MB / 422.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001029/0.2913, allocations: 1.122 MB / 423.6 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001379/0.2927, allocations: 1.309 MB / 424.9 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004862/0.2976, allocations: 4.427 MB / 429.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.2976, allocations: 0 / 429.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.2976, allocations: 0 / 429.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001091/0.2977, allocations: 0 / 429.4 MB, free: 12.81 MB / 350.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.007932/0.3057, allocations: 3.269 MB / 432.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.3057, allocations: 8.031 kB / 432.6 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006102/0.3118, allocations: 1.655 MB / 434.3 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003446/0.3153, allocations: 1.522 MB / 435.8 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.698e-05/0.3154, allocations: 123.2 kB / 435.9 MB, free: 6.129 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003994/0.3159, allocations: 167.9 kB / 436.1 MB, free: 5.965 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009764/0.3256, allocations: 6.6 MB / 442.7 MB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.614e-05/0.3258, allocations: 39.69 kB / 442.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002667/0.326, allocations: 79.91 kB / 442.8 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001934/0.328, allocations: 1.331 MB / 444.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009772/0.3378, allocations: 5.839 MB / 450 MB, free: 7.539 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03265/0.3704, allocations: 27.97 MB / 477.9 MB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006007/0.3765, allocations: 2.782 MB / 480.7 MB, free: 7.781 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001515/0.378, allocations: 1.314 MB / 482 MB, free: 6.453 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000646/0.3787, allocations: 0.6278 MB / 482.7 MB, free: 5.711 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.185e-05/0.3788, allocations: 55.06 kB / 482.7 MB, free: 5.648 MB / 398.1 MB Notification: Performance of pre-optimization done (n=129): time 3.858e-06/0.3788, allocations: 0 / 482.7 MB, free: 5.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=163): time 0.07295/0.4517, allocations: 21 MB / 0.4919 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.4519, allocations: 171.7 kB / 0.4921 GB, free: 328 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004465/0.4564, allocations: 2.792 MB / 0.4948 GB, free: 13.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003378/0.4568, allocations: 49.64 kB / 0.4949 GB, free: 13.46 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001476/0.4583, allocations: 2.079 MB / 0.4969 GB, free: 11.34 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008303/0.4591, allocations: 0.6247 MB / 0.4975 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001951/0.4611, allocations: 1.007 MB / 0.4985 GB, free: 9.691 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4612, allocations: 305.1 kB / 0.4988 GB, free: 9.391 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/0.4645, allocations: 2.227 MB / 0.5009 GB, free: 7.156 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00579/0.4703, allocations: 5.158 MB / 0.506 GB, free: 0.543 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009102/0.4794, allocations: 7.96 MB / 0.5138 GB, free: 7.141 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.501e-05/0.4796, allocations: 32 kB / 0.5138 GB, free: 7.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=645) (initialization): time 0.02412/0.5037, allocations: 10.29 MB / 0.5238 GB, free: 12.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001479/0.5039, allocations: 51.98 kB / 0.5239 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002096/0.5041, allocations: 107.9 kB / 0.524 GB, free: 12.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01221/0.5164, allocations: 3.431 MB / 0.5273 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00352/0.5199, allocations: 1.088 MB / 0.5284 GB, free: 8.082 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2355/0.7555, allocations: 12.84 MB / 0.5409 GB, free: 125.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003888/0.7594, allocations: 333.4 kB / 0.5413 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000623/0.76, allocations: 302 kB / 0.5415 GB, free: 125.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 469 * 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 (577): * Single equations (assignments): 566 * Array equations: 4 * 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.00211/0.7622, allocations: 1.471 MB / 0.543 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006757/0.7628, allocations: 250.1 kB / 0.5432 GB, free: 124.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01443/0.7773, allocations: 5.997 MB / 0.5491 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.905e-05/0.7774, allocations: 37.44 kB / 0.5491 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/0.7774, allocations: 7.625 kB / 0.5491 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.673e-05/0.7775, allocations: 5.234 kB / 0.5491 GB, free: 122.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02529/0.8028, allocations: 13.22 MB / 0.562 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.617e-05/0.8028, allocations: 3.625 kB / 0.562 GB, free: 114.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001074/0.8039, allocations: 232.7 kB / 0.5623 GB, free: 114.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01132/0.8152, allocations: 4.009 MB / 0.5662 GB, free: 110.7 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002881/0.8156, allocations: 51.47 kB / 0.5662 GB, free: 110.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01534/0.8309, allocations: 12.83 MB / 0.5787 GB, free: 97.73 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.8309, allocations: 0 / 0.5787 GB, free: 97.73 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01757/0.8485, allocations: 10.08 MB / 0.5886 GB, free: 87.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/0.8492, allocations: 307 kB / 0.5889 GB, free: 87.47 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004244/0.8496, allocations: 36.94 kB / 0.5889 GB, free: 87.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/0.8513, allocations: 191.4 kB / 0.5891 GB, free: 87.25 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004125/0.8517, allocations: 112.6 kB / 0.5892 GB, free: 87.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.8519, allocations: 55.97 kB / 0.5893 GB, free: 87.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002049/0.8539, allocations: 1.73 MB / 0.591 GB, free: 85.35 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.8539, allocations: 0 / 0.591 GB, free: 85.35 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00355/0.8575, allocations: 0.823 MB / 0.5918 GB, free: 84.53 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (105): * Single equations (assignments): 94 * Array equations: 4 * 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.0004554/0.8579, allocations: 169.9 kB / 0.5919 GB, free: 84.36 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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 4.0.0+maint.om/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.008633/0.8666, allocations: 6.273 MB / 0.598 GB, free: 77.97 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/0.8666, allocations: 0 / 0.598 GB, free: 77.97 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004528/0.8711, allocations: 2.9 MB / 0.6009 GB, free: 74.93 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/0.8736, allocations: 305.5 kB / 0.6012 GB, free: 74.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01577/0.8894, allocations: 7.602 MB / 0.6086 GB, free: 67.02 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002793/0.8922, allocations: 2.326 MB / 0.6109 GB, free: 64.67 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001031/0.8933, allocations: 227.4 kB / 0.6111 GB, free: 64.45 MB / 462.1 MB Notification: Performance of SimCode: time 1.112e-06/0.8933, allocations: 0 / 0.6111 GB, free: 64.45 MB / 462.1 MB Notification: Performance of Templates: time 0.3475/1.241, allocations: 129.8 MB / 0.7378 GB, free: 185.8 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches