Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001145/0.001145, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009087/0.0009087, allocations: 102 kB / 297.3 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002478/0.0002478, allocations: 4 kB / 358 MB, free: 9.434 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2302/0.2305, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1169/0.3474, allocations: 91.5 MB / 0.4893 GB, free: 15.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002244/0.3477, allocations: 91.95 kB / 0.4894 GB, free: 15 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3942/0.7419, allocations: 62.42 MB / 0.5503 GB, free: 60.64 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.641e-06/0.742, allocations: 3.938 kB / 0.5503 GB, free: 60.64 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001888/0.7422, allocations: 55.94 kB / 0.5504 GB, free: 60.59 MB / 378.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.01335/0.7555, allocations: 3.141 MB / 0.5534 GB, free: 57.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.168e-05/0.7556, allocations: 8.031 kB / 0.5534 GB, free: 57.38 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002032/0.7576, allocations: 498.1 kB / 0.5539 GB, free: 56.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007832/0.7655, allocations: 1.935 MB / 0.5558 GB, free: 54.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007857/0.7734, allocations: 2.812 MB / 0.5586 GB, free: 52.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001616/0.7736, allocations: 184.8 kB / 0.5587 GB, free: 51.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/0.7748, allocations: 239.8 kB / 0.559 GB, free: 51.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01203/0.7868, allocations: 7.332 MB / 0.5661 GB, free: 43.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001394/0.787, allocations: 47.56 kB / 0.5662 GB, free: 43.42 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007635/0.7878, allocations: 123.9 kB / 0.5663 GB, free: 43.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001008/0.7888, allocations: 0.7377 MB / 0.567 GB, free: 42.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/0.7994, allocations: 6.283 MB / 0.5731 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03863/0.8381, allocations: 36.87 MB / 0.6091 GB, free: 14.18 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007446/0.8456, allocations: 3.01 MB / 0.6121 GB, free: 11.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008149/0.8538, allocations: 4.198 MB / 0.6162 GB, free: 6.668 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.796e-05/0.8539, allocations: 55.06 kB / 0.6162 GB, free: 6.605 MB / 394.7 MB Notification: Performance of pre-optimization done (n=116): time 3.407e-06/0.8539, allocations: 4 kB / 0.6162 GB, free: 6.602 MB / 394.7 MB Notification: Performance of matching and sorting (n=150): time 0.07883/0.9327, allocations: 23.19 MB / 0.6389 GB, free: 15.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.728e-05/0.9328, allocations: 171.4 kB / 0.6391 GB, free: 15.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004232/0.9371, allocations: 2.585 MB / 0.6416 GB, free: 12.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004416/0.9375, allocations: 45.7 kB / 0.6416 GB, free: 12.37 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.9388, allocations: 2.121 MB / 0.6437 GB, free: 10.21 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006375/0.9395, allocations: 0.5824 MB / 0.6443 GB, free: 9.621 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00025/0.9397, allocations: 100 kB / 0.6444 GB, free: 9.523 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002851/0.94, allocations: 0.5047 MB / 0.6448 GB, free: 9.012 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003084/0.9431, allocations: 2.348 MB / 0.6471 GB, free: 6.656 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005112/0.9483, allocations: 5.283 MB / 0.6523 GB, free: 15.89 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004523/0.9528, allocations: 3.447 MB / 0.6557 GB, free: 12.45 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.347e-05/0.9529, allocations: 28 kB / 0.6557 GB, free: 12.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.02482/0.9777, allocations: 11.22 MB / 0.6667 GB, free: 1.164 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.927e-05/0.9778, allocations: 52 kB / 0.6667 GB, free: 1.113 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001351/0.978, allocations: 104 kB / 0.6668 GB, free: 1.012 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2295/1.207, allocations: 4.179 MB / 0.6709 GB, free: 119.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003722/1.211, allocations: 1.122 MB / 0.672 GB, free: 119.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02061/1.232, allocations: 14.25 MB / 0.6859 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004566/1.236, allocations: 352 kB / 0.6862 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007993/1.237, allocations: 336.4 kB / 0.6865 GB, free: 117.6 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * 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 (575): * Single equations (assignments): 565 * 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.002504/1.24, allocations: 1.471 MB / 0.688 GB, free: 117.1 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004929/1.24, allocations: 245.6 kB / 0.6882 GB, free: 117.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01666/1.257, allocations: 6.956 MB / 0.695 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.302e-05/1.257, allocations: 18.55 kB / 0.695 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.038e-05/1.257, allocations: 7.594 kB / 0.695 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/1.257, allocations: 14.48 kB / 0.6951 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0296/1.287, allocations: 14.28 MB / 0.709 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.8e-05/1.287, allocations: 6.891 kB / 0.709 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001053/1.288, allocations: 218.4 kB / 0.7092 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01361/1.301, allocations: 4.806 MB / 0.7139 GB, free: 109 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003789/1.302, allocations: 45.98 kB / 0.7139 GB, free: 109 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01806/1.32, allocations: 14.39 MB / 0.728 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/1.32, allocations: 0 / 0.728 GB, free: 95.42 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02059/1.341, allocations: 11.13 MB / 0.7389 GB, free: 84.36 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/1.342, allocations: 338 kB / 0.7392 GB, free: 84.02 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004808/1.342, allocations: 40.59 kB / 0.7392 GB, free: 83.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/1.344, allocations: 203.7 kB / 0.7394 GB, free: 83.79 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003916/1.344, allocations: 109.9 kB / 0.7395 GB, free: 83.69 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/1.344, allocations: 47.97 kB / 0.7396 GB, free: 83.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002301/1.347, allocations: 1.794 MB / 0.7413 GB, free: 81.84 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.347, allocations: 3.844 kB / 0.7413 GB, free: 81.84 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003527/1.35, allocations: 0.8609 MB / 0.7422 GB, free: 80.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (100): * Single equations (assignments): 90 * 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.02104/1.371, allocations: 12.15 MB / 0.754 GB, free: 68.84 MB / 442.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.01099/1.382, allocations: 6.711 MB / 0.7606 GB, free: 62.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.382, allocations: 3.172 kB / 0.7606 GB, free: 62.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005156/1.388, allocations: 3.174 MB / 0.7637 GB, free: 58.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001528/1.389, allocations: 267.4 kB / 0.7639 GB, free: 58.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2213/1.61, allocations: 102 MB / 0.8635 GB, free: 116.7 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001712/1.612, allocations: 2.366 MB / 0.8658 GB, free: 116 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003373/1.616, allocations: 1.559 MB / 0.8674 GB, free: 115.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/1.617, allocations: 1.146 MB / 0.8685 GB, free: 115.9 MB / 458.7 MB Notification: Performance of SimCode: time 1.883e-06/1.617, allocations: 3.906 kB / 0.8685 GB, free: 115.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.081/1.698, allocations: 70.71 MB / 0.9375 GB, free: 62.21 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000135/1.698, allocations: 222 kB / 0.9377 GB, free: 61.96 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.523/5.221, allocations: 0 / 0.9377 GB, free: 61.96 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat