Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002239/0.002239, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.106/2.106, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001112/0.001112, allocations: 93.5 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005258/0.0005259, allocations: 12 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3496/0.3501, allocations: 47.57 MB / 374.6 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.0214/0.3716, allocations: 11.92 MB / 386.6 MB, free: 36.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01492/0.3865, allocations: 4.151 MB / 390.7 MB, free: 32.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.3899, allocations: 55.81 kB / 390.8 MB, free: 32.68 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002661/0.3926, allocations: 0.5405 MB / 391.3 MB, free: 32.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01058/0.4032, allocations: 1.939 MB / 393.2 MB, free: 30.19 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00246/0.4057, allocations: 435.2 kB / 393.7 MB, free: 29.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.04783/0.4536, allocations: 13.68 MB / 407.3 MB, free: 16.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004207/0.4578, allocations: 1.538 MB / 408.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001648/0.4596, allocations: 0.6229 MB / 409.5 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002272/0.4619, allocations: 0.9112 MB / 410.4 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006532/0.4626, allocations: 84 kB / 410.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002933/0.4655, allocations: 0.7528 MB / 411.2 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002054/0.4677, allocations: 0.9702 MB / 412.2 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00107/0.4689, allocations: 0.5079 MB / 412.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004509/0.4734, allocations: 3.36 MB / 416.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.4734, allocations: 0 / 416.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.327e-06/0.4735, allocations: 0 / 416.1 MB, free: 7.277 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.4736, allocations: 0 / 416.1 MB, free: 7.277 MB / 298.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.009194/0.4828, allocations: 2.797 MB / 418.9 MB, free: 4.422 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.4828, allocations: 8.031 kB / 418.9 MB, free: 4.414 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001158/0.484, allocations: 458.1 kB / 419.3 MB, free: 3.957 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01174/0.4958, allocations: 1.989 MB / 421.3 MB, free: 1.961 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004501/0.5003, allocations: 1.752 MB / 423.1 MB, free: 164 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.541e-05/0.5004, allocations: 127.2 kB / 423.2 MB, free: 36 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006566/0.5011, allocations: 171.8 kB / 423.4 MB, free: 15.87 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01587/0.517, allocations: 6.624 MB / 430 MB, free: 8.707 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001244/0.5172, allocations: 39.59 kB / 430 MB, free: 8.668 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004358/0.5176, allocations: 87.89 kB / 430.1 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003583/0.5212, allocations: 1.335 MB / 431.5 MB, free: 7.25 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/0.5385, allocations: 5.867 MB / 437.3 MB, free: 1.383 MB / 314.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0495/0.5881, allocations: 28.23 MB / 465.6 MB, free: 4.285 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01075/0.5989, allocations: 2.756 MB / 468.3 MB, free: 1.383 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00108/0.6, allocations: 0.6278 MB / 468.9 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.104e-05/0.6, allocations: 51.05 kB / 469 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=120): time 3.727e-06/0.6001, allocations: 0 / 469 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of matching and sorting (n=154): time 0.1328/0.7329, allocations: 20.93 MB / 489.9 MB, free: 11.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001179/0.733, allocations: 141.5 kB / 490.1 MB, free: 11.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005829/0.7389, allocations: 2.962 MB / 493 MB, free: 8.332 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004125/0.7393, allocations: 45.7 kB / 493.1 MB, free: 8.281 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002193/0.7415, allocations: 2.101 MB / 495.2 MB, free: 6.148 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001082/0.7426, allocations: 0.5978 MB / 495.8 MB, free: 5.543 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005039/0.7432, allocations: 96 kB / 495.9 MB, free: 5.449 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004188/0.7436, allocations: 0.5213 MB / 496.4 MB, free: 4.918 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005664/0.7493, allocations: 2.196 MB / 498.6 MB, free: 2.715 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2653/1.015, allocations: 5.139 MB / 0.4919 GB, free: 105.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007298/1.022, allocations: 3.285 MB / 0.4951 GB, free: 104.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/1.022, allocations: 30.09 kB / 0.4951 GB, free: 104.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.03918/1.061, allocations: 10.21 MB / 0.5051 GB, free: 101.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.995e-05/1.062, allocations: 46.88 kB / 0.5052 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/1.062, allocations: 112.3 kB / 0.5053 GB, free: 101.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02149/1.083, allocations: 3.509 MB / 0.5087 GB, free: 99.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006329/1.09, allocations: 1.098 MB / 0.5098 GB, free: 99.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02927/1.119, allocations: 12.46 MB / 0.5219 GB, free: 87.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005557/1.124, allocations: 331.5 kB / 0.5222 GB, free: 87.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008068/1.125, allocations: 304 kB / 0.5225 GB, free: 86.8 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 (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.003018/1.128, allocations: 1.478 MB / 0.524 GB, free: 85.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006259/1.129, allocations: 246.1 kB / 0.5242 GB, free: 85.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/1.156, allocations: 6.029 MB / 0.5301 GB, free: 79.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-05/1.156, allocations: 16 kB / 0.5301 GB, free: 79.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.289e-05/1.156, allocations: 8 kB / 0.5301 GB, free: 79.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.515e-05/1.156, allocations: 16.5 kB / 0.5301 GB, free: 79.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04649/1.203, allocations: 13.22 MB / 0.5431 GB, free: 65.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.073e-05/1.203, allocations: 4 kB / 0.5431 GB, free: 65.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002024/1.205, allocations: 235.6 kB / 0.5433 GB, free: 65.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02332/1.228, allocations: 4.139 MB / 0.5473 GB, free: 61.54 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003892/1.228, allocations: 41.06 kB / 0.5474 GB, free: 61.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02967/1.258, allocations: 12.52 MB / 0.5596 GB, free: 48.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.258, allocations: 7.375 kB / 0.5596 GB, free: 48.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03545/1.294, allocations: 9.99 MB / 0.5694 GB, free: 38.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007846/1.294, allocations: 313.7 kB / 0.5697 GB, free: 38.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000738/1.295, allocations: 32.23 kB / 0.5697 GB, free: 38.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003221/1.298, allocations: 191.7 kB / 0.5699 GB, free: 38.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007544/1.299, allocations: 116.8 kB / 0.57 GB, free: 38.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002429/1.299, allocations: 55.8 kB / 0.57 GB, free: 38.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003805/1.303, allocations: 1.853 MB / 0.5718 GB, free: 36.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.42e-07/1.303, allocations: 0 / 0.5718 GB, free: 36.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005798/1.309, allocations: 0.845 MB / 0.5727 GB, free: 35.41 MB / 378.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.03662/1.346, allocations: 10.82 MB / 0.5832 GB, free: 24.52 MB / 378.7 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.01566/1.361, allocations: 6.195 MB / 0.5893 GB, free: 18.21 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/1.362, allocations: 0 / 0.5893 GB, free: 18.21 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008217/1.37, allocations: 2.865 MB / 0.5921 GB, free: 15.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002198/1.372, allocations: 275.3 kB / 0.5923 GB, free: 14.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4219/1.794, allocations: 101.3 MB / 0.6913 GB, free: 118.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003329/1.797, allocations: 2.378 MB / 0.6936 GB, free: 117.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00247/1.8, allocations: 1.158 MB / 0.6947 GB, free: 116.8 MB / 426.7 MB Notification: Performance of SimCode: time 8.02e-07/1.8, allocations: 7.906 kB / 0.6947 GB, free: 116.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.219/7.019, allocations: 139 MB / 0.8304 GB, free: 136.1 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat