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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 221.5 MB / 230.3 MB, free: 7.559 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009335/0.0009339, allocations: 94.05 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.286e-05/2.284e-05, allocations: 4 kB / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1383, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4171/0.5554, allocations: 90.1 MB / 477.7 MB, free: 4.562 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003207/0.5558, allocations: 91.94 kB / 477.8 MB, free: 4.473 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1581/0.714, allocations: 59.3 MB / 0.5245 GB, free: 8.727 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.714, allocations: 3.938 kB / 0.5245 GB, free: 8.723 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.552e-05/0.7141, allocations: 44 kB / 0.5245 GB, free: 8.68 MB / 410.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.009653/0.7238, allocations: 2.92 MB / 0.5274 GB, free: 5.703 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/0.7239, allocations: 8.031 kB / 0.5274 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008888/0.7328, allocations: 1.935 MB / 0.5293 GB, free: 3.754 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009304/0.7421, allocations: 3.306 MB / 0.5325 GB, free: 404 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.7423, allocations: 76 kB / 0.5326 GB, free: 328 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00096/0.7433, allocations: 144.2 kB / 0.5327 GB, free: 184 kB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00789/0.7512, allocations: 4.291 MB / 0.5369 GB, free: 11.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.7621, allocations: 6.585 MB / 0.5433 GB, free: 4.445 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001338/0.7623, allocations: 51.61 kB / 0.5434 GB, free: 4.395 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000408/0.7627, allocations: 24 kB / 0.5434 GB, free: 4.371 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001093/0.7638, allocations: 0.7416 MB / 0.5441 GB, free: 3.633 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3283/1.092, allocations: 35.6 MB / 0.5789 GB, free: 85.57 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003595/1.096, allocations: 2.321 MB / 0.5811 GB, free: 84.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002133/1.098, allocations: 1.362 MB / 0.5825 GB, free: 84.89 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007055/1.099, allocations: 0.6326 MB / 0.5831 GB, free: 84.32 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.572e-05/1.099, allocations: 48.38 kB / 0.5831 GB, free: 84.28 MB / 426.7 MB Notification: Performance of pre-optimization done (n=120): time 4.268e-06/1.099, allocations: 0 / 0.5831 GB, free: 84.28 MB / 426.7 MB Notification: Performance of matching and sorting (n=152): time 0.04002/1.139, allocations: 15.78 MB / 0.5986 GB, free: 80.3 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/1.139, allocations: 144.5 kB / 0.5987 GB, free: 80.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003608/1.142, allocations: 2.283 MB / 0.6009 GB, free: 79.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005236/1.143, allocations: 29.27 kB / 0.6009 GB, free: 79.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001308/1.144, allocations: 2.164 MB / 0.6031 GB, free: 77.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008582/1.145, allocations: 0.5888 MB / 0.6036 GB, free: 77.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/1.145, allocations: 0 / 0.6036 GB, free: 77.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003433/1.146, allocations: 0.5636 MB / 0.6042 GB, free: 76.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002948/1.149, allocations: 2.258 MB / 0.6064 GB, free: 76.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004329/1.153, allocations: 5.322 MB / 0.6116 GB, free: 71.04 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004508/1.158, allocations: 3.418 MB / 0.6149 GB, free: 69.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.135e-05/1.158, allocations: 30.72 kB / 0.615 GB, free: 69.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=664) (initialization): time 0.02635/1.184, allocations: 10.62 MB / 0.6253 GB, free: 66.79 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/1.184, allocations: 52.97 kB / 0.6254 GB, free: 66.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002176/1.185, allocations: 110.5 kB / 0.6255 GB, free: 66.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01425/1.199, allocations: 4.102 MB / 0.6295 GB, free: 66.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004268/1.203, allocations: 1.177 MB / 0.6306 GB, free: 65.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01931/1.222, allocations: 12.7 MB / 0.643 GB, free: 54.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005104/1.228, allocations: 268.8 kB / 0.6433 GB, free: 54.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001015/1.229, allocations: 349.4 kB / 0.6436 GB, free: 54.43 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (604): * Single equations (assignments): 594 * 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 {(10,60.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008894/1.23, allocations: 377.1 kB / 0.644 GB, free: 54.05 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01699/1.247, allocations: 6.995 MB / 0.6508 GB, free: 47.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001167/1.248, allocations: 240.8 kB / 0.651 GB, free: 47.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01706/1.265, allocations: 6.722 MB / 0.6576 GB, free: 40.94 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.366e-05/1.265, allocations: 18.19 kB / 0.6576 GB, free: 40.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.868e-05/1.265, allocations: 8 kB / 0.6576 GB, free: 40.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.076e-05/1.265, allocations: 13.17 kB / 0.6577 GB, free: 40.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02921/1.294, allocations: 13.79 MB / 0.6711 GB, free: 27.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.157e-05/1.294, allocations: 3.953 kB / 0.6711 GB, free: 27.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/1.295, allocations: 223.7 kB / 0.6713 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01388/1.309, allocations: 4.67 MB / 0.6759 GB, free: 22.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004519/1.31, allocations: 19.97 kB / 0.6759 GB, free: 22.15 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01736/1.327, allocations: 12.69 MB / 0.6883 GB, free: 9.34 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.327, allocations: 3.984 kB / 0.6883 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02164/1.349, allocations: 10.82 MB / 0.6989 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001049/1.35, allocations: 325.7 kB / 0.6992 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006042/1.351, allocations: 19.98 kB / 0.6992 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/1.353, allocations: 175.7 kB / 0.6994 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004019/1.353, allocations: 104.2 kB / 0.6995 GB, free: 13.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001648/1.353, allocations: 53.22 kB / 0.6995 GB, free: 13.77 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002717/1.356, allocations: 1.516 MB / 0.701 GB, free: 12.25 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.356, allocations: 0 / 0.701 GB, free: 12.25 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00534/1.361, allocations: 0.7401 MB / 0.7017 GB, free: 11.51 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 92 * 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 {(8,65.6%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3181/1.679, allocations: 11.64 MB / 0.7131 GB, free: 116.1 MB / 442.7 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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01443/1.694, allocations: 6.51 MB / 0.7195 GB, free: 115.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.695e-06/1.694, allocations: 0 / 0.7195 GB, free: 115.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007384/1.701, allocations: 3.147 MB / 0.7225 GB, free: 114.6 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/1.704, allocations: 211 kB / 0.7227 GB, free: 114.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01892/1.723, allocations: 7.043 MB / 0.7296 GB, free: 113.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003829/1.726, allocations: 2.369 MB / 0.7319 GB, free: 112.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.005282/1.732, allocations: 1.64 MB / 0.7335 GB, free: 112.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00243/1.734, allocations: 1.138 MB / 0.7346 GB, free: 112.7 MB / 442.7 MB Notification: Performance of SimCode: time 1.433e-06/1.734, allocations: 0 / 0.7346 GB, free: 112.7 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/1.842, allocations: 67.23 MB / 0.8003 GB, free: 76.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001496/1.842, allocations: 159.9 kB / 0.8004 GB, free: 76.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.821/5.663, allocations: 0 / 0.8004 GB, free: 76.6 MB / 442.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat