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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009697/0.0009698, allocations: 96.22 kB / 16.95 MB, free: 6.453 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.00123/0.00123, allocations: 182.3 kB / 17.84 MB, free: 6.008 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.526/1.526, allocations: 205.4 MB / 224 MB, free: 13.06 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.0004557/0.0004559, allocations: 12 kB / 280.9 MB, free: 3.617 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09461, allocations: 47.57 MB / 328.4 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.01213/0.1068, allocations: 12.57 MB / 341 MB, free: 7.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008581/0.1154, allocations: 4.065 MB / 345.1 MB, free: 3.277 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002705/0.1182, allocations: 51.88 kB / 345.1 MB, free: 3.227 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002057/0.1202, allocations: 0.6026 MB / 345.7 MB, free: 2.621 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005912/0.1262, allocations: 2.172 MB / 347.9 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001235/0.1274, allocations: 439.3 kB / 348.3 MB, free: 12 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.02214/0.1496, allocations: 17.65 MB / 366 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003083/0.1527, allocations: 1.541 MB / 367.5 MB, free: 12.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.1544, allocations: 0.7472 MB / 368.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002062/0.1564, allocations: 1.238 MB / 369.5 MB, free: 10.77 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000555/0.157, allocations: 84 kB / 369.6 MB, free: 10.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001907/0.1589, allocations: 0.7722 MB / 370.4 MB, free: 9.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001549/0.1605, allocations: 1.048 MB / 371.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001087/0.1616, allocations: 0.5079 MB / 371.9 MB, free: 8.344 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004073/0.1657, allocations: 3.352 MB / 375.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.014e-06/0.1657, allocations: 4 kB / 375.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1657, allocations: 0 / 375.3 MB, free: 4.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001447/0.1659, allocations: 0 / 375.3 MB, free: 4.98 MB / 318.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.007192/0.1731, allocations: 2.781 MB / 378.1 MB, free: 2.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.1732, allocations: 12.03 kB / 378.1 MB, free: 2.129 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001303/0.1745, allocations: 462.1 kB / 378.5 MB, free: 1.668 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.187/0.3615, allocations: 1.707 MB / 380.2 MB, free: 34.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004242/0.3658, allocations: 1.959 MB / 382.2 MB, free: 33.67 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001741/0.366, allocations: 125 kB / 382.3 MB, free: 33.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000474/0.3665, allocations: 169.9 kB / 382.5 MB, free: 33.66 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/0.3766, allocations: 6.594 MB / 389.1 MB, free: 32.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.153e-05/0.3768, allocations: 31.22 kB / 389.1 MB, free: 32.21 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002715/0.3771, allocations: 87.3 kB / 389.2 MB, free: 32.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002059/0.3791, allocations: 1.332 MB / 390.5 MB, free: 32.2 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00971/0.3888, allocations: 5.818 MB / 396.3 MB, free: 32.18 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02644/0.4153, allocations: 28.1 MB / 424.4 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004784/0.4202, allocations: 2.737 MB / 427.2 MB, free: 6.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001173/0.4214, allocations: 1.271 MB / 428.4 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004741/0.4218, allocations: 0.6284 MB / 429.1 MB, free: 4.422 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.4219, allocations: 56.86 kB / 429.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of pre-optimization done (n=120): time 3.597e-06/0.4219, allocations: 0 / 429.1 MB, free: 4.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=154): time 0.06357/0.4855, allocations: 20.63 MB / 449.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.626e-05/0.4856, allocations: 149.4 kB / 449.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003701/0.4893, allocations: 2.839 MB / 452.7 MB, free: 12.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003103/0.4896, allocations: 49.7 kB / 452.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001446/0.4911, allocations: 2.103 MB / 454.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00065/0.4918, allocations: 0.5983 MB / 455.5 MB, free: 9.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002428/0.492, allocations: 102.8 kB / 455.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0003055/0.4923, allocations: 0.5182 MB / 456.1 MB, free: 9.309 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003006/0.4953, allocations: 2.196 MB / 458.3 MB, free: 7.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004655/0.5, allocations: 5.15 MB / 463.5 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004332/0.5043, allocations: 3.298 MB / 466.8 MB, free: 13.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-05/0.5044, allocations: 32 kB / 466.8 MB, free: 13.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02112/0.5255, allocations: 10.26 MB / 477 MB, free: 3.219 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001444/0.5257, allocations: 52 kB / 477.1 MB, free: 3.168 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001942/0.5259, allocations: 109.6 kB / 477.2 MB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01087/0.5368, allocations: 3.505 MB / 480.7 MB, free: 15.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003717/0.5406, allocations: 1.103 MB / 481.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01818/0.5588, allocations: 12.05 MB / 493.9 MB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003746/0.5626, allocations: 335.5 kB / 494.2 MB, free: 1.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009016/0.5635, allocations: 311.8 kB / 494.5 MB, free: 1.617 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 (581): * Single equations (assignments): 571 * 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.003054/0.5666, allocations: 1.465 MB / 496 MB, free: 140 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007078/0.5673, allocations: 248.9 kB / 496.2 MB, free: 15.89 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01516/0.5825, allocations: 6.035 MB / 0.4905 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.376e-05/0.5826, allocations: 20 kB / 0.4905 GB, free: 9.801 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.434e-05/0.5826, allocations: 8 kB / 0.4905 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-05/0.5827, allocations: 3.984 kB / 0.4905 GB, free: 9.789 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0297/0.6124, allocations: 13.22 MB / 0.5034 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.065e-05/0.6125, allocations: 0 / 0.5034 GB, free: 12.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.6137, allocations: 228.7 kB / 0.5036 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01196/0.6257, allocations: 4.136 MB / 0.5077 GB, free: 8.168 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003673/0.6261, allocations: 43.95 kB / 0.5077 GB, free: 8.125 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01872/0.6448, allocations: 12.1 MB / 0.5195 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.314e-06/0.6449, allocations: 3.984 kB / 0.5195 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02034/0.6652, allocations: 9.93 MB / 0.5292 GB, free: 1.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009783/0.6662, allocations: 313.6 kB / 0.5295 GB, free: 1.582 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008761/0.6671, allocations: 31.98 kB / 0.5296 GB, free: 1.551 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001932/0.6691, allocations: 191.7 kB / 0.5297 GB, free: 1.363 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004846/0.6696, allocations: 104.8 kB / 0.5298 GB, free: 1.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002413/0.6698, allocations: 51.97 kB / 0.5299 GB, free: 1.211 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.1872/0.8571, allocations: 1.758 MB / 0.5316 GB, free: 146.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.8571, allocations: 0 / 0.5316 GB, free: 146.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005839/0.863, allocations: 0.8223 MB / 0.5324 GB, free: 146.8 MB / 430.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 (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.02334/0.8863, allocations: 10.56 MB / 0.5427 GB, free: 144.8 MB / 430.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.01221/0.8986, allocations: 6.191 MB / 0.5488 GB, free: 142.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.8986, allocations: 3.75 kB / 0.5488 GB, free: 142.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006488/0.9051, allocations: 2.853 MB / 0.5516 GB, free: 140.7 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003379/0.9085, allocations: 286.2 kB / 0.5518 GB, free: 140.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07235/0.9809, allocations: 29.02 MB / 0.5802 GB, free: 115.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003423/0.9844, allocations: 2.314 MB / 0.5824 GB, free: 113.1 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.005069/0.9895, allocations: 1.531 MB / 0.5839 GB, free: 111.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001902/0.9914, allocations: 1.132 MB / 0.585 GB, free: 110.4 MB / 430.1 MB Notification: Performance of SimCode: time 1.232e-06/0.9914, allocations: 0 / 0.585 GB, free: 110.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1547/1.146, allocations: 67.8 MB / 0.6512 GB, free: 42.5 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001861/1.146, allocations: 222.6 kB / 0.6515 GB, free: 42.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.892/5.038, allocations: 0 / 0.6515 GB, free: 42.25 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat