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/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 trunk/package.mo", uses=false) 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) 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_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/ModelicaServices trunk/package.mo): time 0.000807/0.0008072, allocations: 100.4 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00128/0.00128, allocations: 191.8 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 227.4 MB / 246 MB, free: 11.99 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002592/0.0002593, allocations: 8 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1246/0.1248, allocations: 51.48 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.01516/0.1401, allocations: 12.57 MB / 370.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2555/0.3957, allocations: 4.095 MB / 375 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002363/0.3981, allocations: 55.62 kB / 375 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.3999, allocations: 0.595 MB / 375.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006789/0.4067, allocations: 2.169 MB / 377.8 MB, free: 8.285 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001409/0.4081, allocations: 433.1 kB / 378.2 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.04016/0.4483, allocations: 31.37 MB / 409.6 MB, free: 8.469 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002725/0.451, allocations: 1.541 MB / 411.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001416/0.4525, allocations: 0.7278 MB / 411.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001561/0.454, allocations: 1.242 MB / 413.1 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002293/0.4543, allocations: 84 kB / 413.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.4559, allocations: 0.7722 MB / 414 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009996/0.4569, allocations: 1.036 MB / 415 MB, free: 3.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005703/0.4575, allocations: 0.5079 MB / 415.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003117/0.4606, allocations: 3.343 MB / 418.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.4606, allocations: 0 / 418.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.4606, allocations: 0 / 418.8 MB, free: 15.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.877e-05/0.4607, allocations: 0 / 418.8 MB, free: 15.18 MB / 334.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.006208/0.4669, allocations: 2.887 MB / 421.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.467, allocations: 12.03 kB / 421.7 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005252/0.4675, allocations: 458.1 kB / 422.2 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005491/0.473, allocations: 1.712 MB / 423.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003483/0.4765, allocations: 1.692 MB / 425.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-05/0.4766, allocations: 119.2 kB / 425.7 MB, free: 8.211 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000291/0.4769, allocations: 171.8 kB / 425.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008747/0.4857, allocations: 6.592 MB / 432.5 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.566e-05/0.4857, allocations: 39.66 kB / 432.5 MB, free: 0.875 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002171/0.486, allocations: 79.91 kB / 432.6 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001817/0.4878, allocations: 1.333 MB / 433.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009781/0.4976, allocations: 5.824 MB / 439.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03174/0.5294, allocations: 28.08 MB / 467.8 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005484/0.5349, allocations: 2.751 MB / 470.6 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001473/0.5364, allocations: 1.271 MB / 471.8 MB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006596/0.5371, allocations: 0.6356 MB / 472.5 MB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.5371, allocations: 43.12 kB / 472.5 MB, free: 7.762 MB / 382.1 MB Notification: Performance of pre-optimization done (n=120): time 3.877e-06/0.5371, allocations: 0 / 472.5 MB, free: 7.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=154): time 0.06585/0.603, allocations: 20.56 MB / 493.1 MB, free: 3.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001173/0.6032, allocations: 153.5 kB / 493.2 MB, free: 2.906 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004591/0.6078, allocations: 2.826 MB / 496.1 MB, free: 68 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004295/0.6082, allocations: 45.7 kB / 496.1 MB, free: 16 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001735/0.6099, allocations: 2.11 MB / 498.2 MB, free: 13.88 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008139/0.6108, allocations: 0.6016 MB / 498.8 MB, free: 13.27 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002348/0.611, allocations: 92 kB / 498.9 MB, free: 13.18 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0003645/0.6114, allocations: 0.5165 MB / 499.4 MB, free: 12.66 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003423/0.6148, allocations: 2.192 MB / 0.4899 GB, free: 10.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00578/0.6206, allocations: 5.165 MB / 0.4949 GB, free: 3.812 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005154/0.6258, allocations: 3.292 MB / 0.4981 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.71e-05/0.6259, allocations: 28 kB / 0.4981 GB, free: 0.4961 MB / 414.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02424/0.6501, allocations: 10.27 MB / 0.5082 GB, free: 6.191 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.503e-05/0.6503, allocations: 52 kB / 0.5082 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001281/0.6504, allocations: 104 kB / 0.5083 GB, free: 6.039 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01185/0.6623, allocations: 3.509 MB / 0.5118 GB, free: 2.504 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004475/0.6668, allocations: 1.099 MB / 0.5128 GB, free: 1.402 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01896/0.6858, allocations: 12.04 MB / 0.5246 GB, free: 5.219 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004825/0.6906, allocations: 339.5 kB / 0.5249 GB, free: 4.887 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000875/0.6915, allocations: 304 kB / 0.5252 GB, free: 4.59 MB / 446.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.003076/0.6946, allocations: 1.47 MB / 0.5266 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006052/0.6952, allocations: 249.1 kB / 0.5269 GB, free: 2.859 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.273/0.9682, allocations: 6.023 MB / 0.5327 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.94e-05/0.9683, allocations: 17.12 kB / 0.5328 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.948e-05/0.9684, allocations: 12.09 kB / 0.5328 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.776e-05/0.9684, allocations: 8.266 kB / 0.5328 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02919/0.9976, allocations: 13.21 MB / 0.5457 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.525e-05/0.9977, allocations: 4.875 kB / 0.5457 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.9988, allocations: 236.1 kB / 0.5459 GB, free: 140.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01208/1.011, allocations: 4.129 MB / 0.5499 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003945/1.011, allocations: 44.78 kB / 0.55 GB, free: 139.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01588/1.027, allocations: 12.09 MB / 0.5618 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.027, allocations: 0 / 0.5618 GB, free: 131.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/1.045, allocations: 9.934 MB / 0.5715 GB, free: 123.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007858/1.046, allocations: 309.7 kB / 0.5718 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005638/1.046, allocations: 35.98 kB / 0.5718 GB, free: 123.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/1.048, allocations: 183.7 kB / 0.572 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003914/1.048, allocations: 108.8 kB / 0.5721 GB, free: 123.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001459/1.049, allocations: 46.02 kB / 0.5722 GB, free: 123.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002814/1.051, allocations: 1.753 MB / 0.5739 GB, free: 121.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.9e-07/1.051, allocations: 0 / 0.5739 GB, free: 121.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004919/1.056, allocations: 0.8295 MB / 0.5747 GB, free: 120.6 MB / 446.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.01866/1.075, allocations: 10.57 MB / 0.585 GB, free: 110 MB / 446.1 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.009537/1.085, allocations: 6.184 MB / 0.591 GB, free: 103.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/1.085, allocations: 0 / 0.591 GB, free: 103.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00462/1.089, allocations: 2.863 MB / 0.5938 GB, free: 100.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001932/1.091, allocations: 287.1 kB / 0.5941 GB, free: 100.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04765/1.139, allocations: 28.93 MB / 0.6224 GB, free: 68.82 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/1.141, allocations: 2.314 MB / 0.6246 GB, free: 66.48 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003204/1.144, allocations: 1.527 MB / 0.6261 GB, free: 64.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001332/1.145, allocations: 1.128 MB / 0.6272 GB, free: 63.82 MB / 446.1 MB Notification: Performance of SimCode: time 1.162e-06/1.145, allocations: 0 / 0.6272 GB, free: 63.82 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09065/1.236, allocations: 67.67 MB / 0.6933 GB, free: 12.46 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002634/1.236, allocations: 225.8 kB / 0.6935 GB, free: 12.22 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.523/4.76, allocations: 4.062 kB / 0.6935 GB, free: 12.21 MB / 462.1 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