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.0009539/0.0009539, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.283/1.283, allocations: 226.6 MB / 244.3 MB, free: 8.289 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008187/0.0008185, allocations: 99.72 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002143/0.0002143, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2243, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.008226/0.2326, allocations: 12.56 MB / 420.1 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006524/0.2392, allocations: 4.098 MB / 424.2 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.2408, allocations: 51.88 kB / 424.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001022/0.2418, allocations: 0.5949 MB / 424.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003949/0.2458, allocations: 2.172 MB / 427 MB, free: 8.316 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008208/0.2466, allocations: 431.3 kB / 427.4 MB, free: 7.895 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03172/0.2784, allocations: 31.38 MB / 458.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002864/0.2813, allocations: 1.529 MB / 460.3 MB, free: 6.902 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001349/0.2827, allocations: 0.7355 MB / 461 MB, free: 6.164 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.2845, allocations: 1.238 MB / 462.3 MB, free: 4.922 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005396/0.2851, allocations: 84 kB / 462.4 MB, free: 4.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001723/0.2868, allocations: 0.7645 MB / 463.1 MB, free: 4.074 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.288, allocations: 1.032 MB / 464.2 MB, free: 3.039 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005344/0.2885, allocations: 0.5079 MB / 464.7 MB, free: 2.523 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003312/0.2919, allocations: 3.341 MB / 468 MB, free: 15.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.195e-06/0.2919, allocations: 4 kB / 468 MB, free: 15.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.2919, allocations: 0 / 468 MB, free: 15.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.99e-05/0.292, allocations: 7.938 kB / 468 MB, free: 15.16 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.006514/0.2985, allocations: 2.867 MB / 470.9 MB, free: 12.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2985, allocations: 15.97 kB / 470.9 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005553/0.3041, allocations: 1.693 MB / 472.6 MB, free: 10.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002779/0.3069, allocations: 1.455 MB / 474.1 MB, free: 9.023 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.447e-05/0.307, allocations: 127.1 kB / 474.2 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002975/0.3073, allocations: 171.8 kB / 474.3 MB, free: 8.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008538/0.3159, allocations: 6.592 MB / 480.9 MB, free: 1.598 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.79e-05/0.316, allocations: 39.64 kB / 481 MB, free: 1.559 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002339/0.3162, allocations: 83.89 kB / 481.1 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001811/0.318, allocations: 1.335 MB / 482.4 MB, free: 148 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009779/0.3278, allocations: 5.812 MB / 488.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2242/0.552, allocations: 28.09 MB / 0.5042 GB, free: 76.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01103/0.5631, allocations: 2.746 MB / 0.5069 GB, free: 75.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002598/0.5658, allocations: 1.267 MB / 0.5081 GB, free: 75.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009207/0.5667, allocations: 0.6275 MB / 0.5087 GB, free: 75.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.812e-05/0.5668, allocations: 53.12 kB / 0.5088 GB, free: 75.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 6.863e-06/0.5668, allocations: 2.359 kB / 0.5088 GB, free: 75.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.09218/0.659, allocations: 20.55 MB / 0.5288 GB, free: 62.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.038e-05/0.6591, allocations: 153.2 kB / 0.529 GB, free: 62.82 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003099/0.6622, allocations: 2.819 MB / 0.5317 GB, free: 59.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.6625, allocations: 45.7 kB / 0.5318 GB, free: 59.93 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000838/0.6633, allocations: 2.109 MB / 0.5338 GB, free: 57.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004785/0.6638, allocations: 0.5992 MB / 0.5344 GB, free: 57.24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002536/0.6641, allocations: 100 kB / 0.5345 GB, free: 57.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.6643, allocations: 0.5166 MB / 0.535 GB, free: 56.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002507/0.6668, allocations: 2.202 MB / 0.5372 GB, free: 54.41 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003469/0.6703, allocations: 5.167 MB / 0.5422 GB, free: 47.82 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003565/0.6738, allocations: 3.313 MB / 0.5455 GB, free: 44.59 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.244e-05/0.6739, allocations: 28 kB / 0.5455 GB, free: 44.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=645) (initialization): time 0.0188/0.6927, allocations: 10.3 MB / 0.5555 GB, free: 34.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.591e-05/0.6928, allocations: 48 kB / 0.5556 GB, free: 34.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.47e-05/0.6929, allocations: 108 kB / 0.5557 GB, free: 34.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01058/0.7035, allocations: 3.51 MB / 0.5591 GB, free: 30.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002956/0.7065, allocations: 1.111 MB / 0.5602 GB, free: 29.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01474/0.7212, allocations: 12.04 MB / 0.572 GB, free: 17.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003279/0.7245, allocations: 331.4 kB / 0.5723 GB, free: 17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004075/0.725, allocations: 311.9 kB / 0.5726 GB, free: 16.7 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.001677/0.7266, allocations: 1.464 MB / 0.574 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003484/0.727, allocations: 260 kB / 0.5743 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0134/0.7404, allocations: 6.018 MB / 0.5801 GB, free: 8.918 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-05/0.7405, allocations: 16.55 kB / 0.5802 GB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.437e-05/0.7405, allocations: 8 kB / 0.5802 GB, free: 8.895 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.7405, allocations: 11.97 kB / 0.5802 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02485/0.7654, allocations: 13.21 MB / 0.5931 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.041e-05/0.7654, allocations: 0 / 0.5931 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001054/0.7665, allocations: 232.7 kB / 0.5933 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01223/0.7787, allocations: 4.139 MB / 0.5973 GB, free: 7.25 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002225/0.779, allocations: 43.95 kB / 0.5974 GB, free: 7.207 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01769/0.7967, allocations: 12.09 MB / 0.6092 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.7967, allocations: 0 / 0.6092 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01987/0.8166, allocations: 9.924 MB / 0.6189 GB, free: 1.008 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007397/0.8174, allocations: 305.8 kB / 0.6192 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003448/0.8177, allocations: 39.98 kB / 0.6192 GB, free: 0.6484 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/0.8192, allocations: 183.7 kB / 0.6194 GB, free: 480 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003143/0.8195, allocations: 106.4 kB / 0.6195 GB, free: 372 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/0.8197, allocations: 55.95 kB / 0.6195 GB, free: 316 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002473/0.8222, allocations: 1.738 MB / 0.6212 GB, free: 14.57 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8222, allocations: 3.938 kB / 0.6212 GB, free: 14.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003447/0.8256, allocations: 0.8303 MB / 0.6221 GB, free: 13.74 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.0004298/0.8261, allocations: 174.6 kB / 0.6222 GB, free: 13.57 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.009689/0.8358, allocations: 6.202 MB / 0.6283 GB, free: 7.246 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.8358, allocations: 4 kB / 0.6283 GB, free: 7.242 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004728/0.8405, allocations: 2.857 MB / 0.6311 GB, free: 4.242 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.8423, allocations: 285.4 kB / 0.6313 GB, free: 3.965 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.8535, allocations: 8.702 MB / 0.6398 GB, free: 11.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002145/0.8557, allocations: 2.314 MB / 0.6421 GB, free: 8.887 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006404/0.8564, allocations: 223.4 kB / 0.6423 GB, free: 8.668 MB / 442.7 MB Notification: Performance of SimCode: time 7.61e-07/0.8564, allocations: 4 kB / 0.6423 GB, free: 8.664 MB / 442.7 MB Notification: Performance of Templates: time 0.2642/1.121, allocations: 128.7 MB / 0.768 GB, free: 102.2 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