Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_1_0-beta_om_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 trunk/package.mo): time 0.001349/0.001349, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001428/0.001428, allocations: 204.7 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.429/1.429, allocations: 227.7 MB / 247.2 MB, free: 10.2 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001993, allocations: 63.88 kB / 358.5 MB, free: 13.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.289, allocations: 50.54 MB / 409.1 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.008782/0.2979, allocations: 7.023 MB / 416.1 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006703/0.3046, allocations: 3.154 MB / 419.2 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001261/0.306, allocations: 31.94 kB / 419.3 MB, free: 7.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.3082, allocations: 0.9028 MB / 420.2 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004527/0.3128, allocations: 1.339 MB / 421.5 MB, free: 4.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.3143, allocations: 0.5264 MB / 422 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00467/0.319, allocations: 2.754 MB / 424.8 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001829/0.3209, allocations: 1.314 MB / 426.1 MB, free: 244 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001432/0.3224, allocations: 0.8563 MB / 427 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002929/0.3253, allocations: 2.132 MB / 429.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006125/0.3259, allocations: 180 kB / 429.3 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002002/0.328, allocations: 0.9594 MB / 430.2 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001273/0.3292, allocations: 1.11 MB / 431.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001585/0.3308, allocations: 1.293 MB / 432.6 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005572/0.3364, allocations: 4.415 MB / 437.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3365, allocations: 0 / 437.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.3365, allocations: 0 / 437.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001221/0.3366, allocations: 0 / 437.1 MB, free: 5.262 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.009291/0.3459, allocations: 3.448 MB / 440.5 MB, free: 1.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.346, allocations: 8.031 kB / 440.5 MB, free: 1.742 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008809/0.3469, allocations: 462.3 kB / 441 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00616/0.3531, allocations: 1.68 MB / 442.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003803/0.3569, allocations: 1.729 MB / 444.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001247/0.3571, allocations: 123.2 kB / 444.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006111/0.3577, allocations: 175.8 kB / 444.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01106/0.3688, allocations: 6.592 MB / 451.3 MB, free: 6.395 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001117/0.3689, allocations: 35.7 kB / 451.3 MB, free: 6.359 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004221/0.3693, allocations: 87.88 kB / 451.4 MB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002197/0.3716, allocations: 1.335 MB / 452.7 MB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01111/0.3827, allocations: 5.843 MB / 458.6 MB, free: 15.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03638/0.4191, allocations: 28 MB / 486.6 MB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006324/0.4255, allocations: 2.778 MB / 489.3 MB, free: 15.31 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001722/0.4273, allocations: 1.31 MB / 490.6 MB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007514/0.428, allocations: 0.6317 MB / 491.3 MB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.86e-05/0.4281, allocations: 47.06 kB / 491.3 MB, free: 13.19 MB / 414.1 MB Notification: Performance of pre-optimization done (n=129): time 3.917e-06/0.4281, allocations: 0 / 491.3 MB, free: 13.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=163): time 0.0729/0.501, allocations: 21.17 MB / 0.5005 GB, free: 7.906 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.5012, allocations: 167.2 kB / 0.5006 GB, free: 7.707 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00432/0.5055, allocations: 2.804 MB / 0.5034 GB, free: 4.887 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003884/0.5059, allocations: 49.7 kB / 0.5034 GB, free: 4.832 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001905/0.5078, allocations: 2.163 MB / 0.5055 GB, free: 2.645 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009711/0.5088, allocations: 0.659 MB / 0.5062 GB, free: 1.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001838/0.5107, allocations: 0.9965 MB / 0.5072 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001247/0.5108, allocations: 305.2 kB / 0.5074 GB, free: 0.6719 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003407/0.5143, allocations: 2.219 MB / 0.5096 GB, free: 14.45 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006426/0.5207, allocations: 5.142 MB / 0.5146 GB, free: 7.848 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01049/0.5312, allocations: 7.952 MB / 0.5224 GB, free: 14.45 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001007/0.5314, allocations: 32 kB / 0.5224 GB, free: 14.42 MB / 462.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02472/0.5561, allocations: 10.28 MB / 0.5325 GB, free: 4.109 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.302e-05/0.5563, allocations: 51.94 kB / 0.5325 GB, free: 4.059 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001521/0.5564, allocations: 108 kB / 0.5326 GB, free: 3.953 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01207/0.5685, allocations: 3.424 MB / 0.536 GB, free: 0.5039 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2288/0.7973, allocations: 1.08 MB / 0.537 GB, free: 122.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01682/0.8142, allocations: 12.84 MB / 0.5496 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003636/0.8179, allocations: 342.6 kB / 0.5499 GB, free: 117 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007106/0.8186, allocations: 304.3 kB / 0.5502 GB, free: 117 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 (573): * Single equations (assignments): 562 * 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.002173/0.8208, allocations: 1.46 MB / 0.5516 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000536/0.8213, allocations: 262.5 kB / 0.5519 GB, free: 116.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/0.8353, allocations: 5.999 MB / 0.5577 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.099e-05/0.8355, allocations: 24 kB / 0.5577 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.279e-05/0.8355, allocations: 11.61 kB / 0.5577 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.279e-05/0.8355, allocations: 11.91 kB / 0.5578 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02416/0.8597, allocations: 13.21 MB / 0.5707 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.881e-05/0.8598, allocations: 0 / 0.5707 GB, free: 100.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001062/0.8608, allocations: 231.6 kB / 0.5709 GB, free: 100.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01119/0.872, allocations: 4.016 MB / 0.5748 GB, free: 96.33 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003664/0.8725, allocations: 47.89 kB / 0.5749 GB, free: 96.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01533/0.8878, allocations: 12.84 MB / 0.5874 GB, free: 83.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.8879, allocations: 256 / 0.5874 GB, free: 83.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01767/0.9055, allocations: 10.1 MB / 0.5973 GB, free: 73.33 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000616/0.9062, allocations: 318.7 kB / 0.5976 GB, free: 73.01 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004872/0.9067, allocations: 39.98 kB / 0.5976 GB, free: 72.97 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00159/0.9083, allocations: 183.7 kB / 0.5978 GB, free: 72.79 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004324/0.9087, allocations: 116.7 kB / 0.5979 GB, free: 72.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001483/0.9089, allocations: 55.41 kB / 0.5979 GB, free: 72.62 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002039/0.9109, allocations: 1.738 MB / 0.5996 GB, free: 70.88 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.673e-06/0.911, allocations: 0 / 0.5996 GB, free: 70.88 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003915/0.9149, allocations: 0.8112 MB / 0.6004 GB, free: 70.07 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.01811/0.933, allocations: 10.73 MB / 0.6109 GB, free: 59.3 MB / 462.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.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.1.0-beta.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.009269/0.9423, allocations: 6.262 MB / 0.617 GB, free: 52.92 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.9424, allocations: 0 / 0.617 GB, free: 52.92 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004435/0.9468, allocations: 2.902 MB / 0.6198 GB, free: 49.89 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002006/0.9489, allocations: 298.8 kB / 0.6201 GB, free: 49.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06374/1.013, allocations: 42.37 MB / 0.6615 GB, free: 2.957 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002265/1.015, allocations: 2.322 MB / 0.6638 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003241/1.018, allocations: 1.51 MB / 0.6652 GB, free: 15.09 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001935/1.02, allocations: 1.124 MB / 0.6663 GB, free: 13.96 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/1.02, allocations: 3.938 kB / 0.6663 GB, free: 13.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3455/1.366, allocations: 61.82 MB / 0.7267 GB, free: 176.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.57/16.93, allocations: 9.125 kB / 0.7267 GB, free: 176.2 MB / 0.5137 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_4_1_0-beta_om_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1)