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.001081/0.001081, allocations: 95.92 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 207.7 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.375/1.375, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002619/0.0002622, allocations: 4 kB / 306.7 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1182, allocations: 51.5 MB / 358.2 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.01392/0.1321, allocations: 11.92 MB / 370.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2229/0.3551, allocations: 4.175 MB / 374.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.3574, allocations: 53.59 kB / 374.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.359, allocations: 0.5432 MB / 374.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008876/0.3679, allocations: 1.935 MB / 376.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001984/0.3699, allocations: 430.8 kB / 377.3 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.03649/0.4064, allocations: 24.66 MB / 401.9 MB, free: 15.74 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00342/0.4099, allocations: 1.519 MB / 403.4 MB, free: 14.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.4113, allocations: 0.6229 MB / 404.1 MB, free: 13.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001277/0.4126, allocations: 0.9073 MB / 405 MB, free: 12.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002638/0.4129, allocations: 87.94 kB / 405 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001642/0.4145, allocations: 0.7428 MB / 405.8 MB, free: 11.84 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009874/0.4155, allocations: 0.9663 MB / 406.8 MB, free: 10.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005972/0.4161, allocations: 0.5117 MB / 407.3 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003959/0.4201, allocations: 3.343 MB / 410.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.4201, allocations: 0 / 410.6 MB, free: 7.012 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4201, allocations: 8 kB / 410.6 MB, free: 7.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001155/0.4203, allocations: 0 / 410.6 MB, free: 7.004 MB / 318.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.00748/0.4277, allocations: 2.879 MB / 413.5 MB, free: 4.082 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.813e-05/0.4278, allocations: 12.03 kB / 413.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001025/0.4288, allocations: 458.1 kB / 414 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007005/0.4358, allocations: 1.987 MB / 415.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004084/0.44, allocations: 1.602 MB / 417.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001405/0.4401, allocations: 123.2 kB / 417.7 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006804/0.4408, allocations: 167.9 kB / 417.8 MB, free: 15.69 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01034/0.4512, allocations: 6.623 MB / 424.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.197e-05/0.4513, allocations: 39.66 kB / 424.5 MB, free: 8.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.4516, allocations: 83.89 kB / 424.6 MB, free: 8.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001898/0.4535, allocations: 1.335 MB / 425.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009879/0.4634, allocations: 5.872 MB / 431.8 MB, free: 1.207 MB / 334.1 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.03447/0.4979, allocations: 28.21 MB / 460 MB, free: 4.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006179/0.5041, allocations: 2.759 MB / 462.8 MB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007644/0.5049, allocations: 0.6317 MB / 463.4 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.733e-05/0.505, allocations: 47.06 kB / 463.4 MB, free: 472 kB / 366.1 MB Notification: Performance of pre-optimization done (n=120): time 4.478e-06/0.505, allocations: 0 / 463.4 MB, free: 472 kB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.06857/0.5735, allocations: 20.86 MB / 484.3 MB, free: 11.42 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.5737, allocations: 145.5 kB / 484.4 MB, free: 11.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004024/0.5777, allocations: 2.95 MB / 487.4 MB, free: 8.281 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004004/0.5781, allocations: 45.7 kB / 487.4 MB, free: 8.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001572/0.5797, allocations: 2.114 MB / 489.5 MB, free: 6.082 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008485/0.5805, allocations: 0.5978 MB / 490.1 MB, free: 5.477 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002365/0.5808, allocations: 96 kB / 490.2 MB, free: 5.383 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003181/0.5811, allocations: 0.5165 MB / 490.8 MB, free: 4.859 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003144/0.5843, allocations: 2.196 MB / 492.9 MB, free: 2.656 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00537/0.5896, allocations: 5.134 MB / 498.1 MB, free: 12.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004954/0.5946, allocations: 3.29 MB / 0.4896 GB, free: 8.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.356e-05/0.5947, allocations: 32 kB / 0.4897 GB, free: 8.719 MB / 414.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02396/0.6187, allocations: 10.27 MB / 0.4997 GB, free: 14.42 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.486e-05/0.6188, allocations: 48 kB / 0.4997 GB, free: 14.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001248/0.619, allocations: 108 kB / 0.4998 GB, free: 14.27 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/0.6309, allocations: 3.513 MB / 0.5033 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003641/0.6346, allocations: 1.096 MB / 0.5043 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01903/0.6537, allocations: 12.46 MB / 0.5165 GB, free: 13.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004776/0.6585, allocations: 339.4 kB / 0.5168 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008017/0.6593, allocations: 304 kB / 0.5171 GB, free: 12.39 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.002685/0.662, allocations: 1.473 MB / 0.5186 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005682/0.6626, allocations: 252.7 kB / 0.5188 GB, free: 10.66 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01551/0.6781, allocations: 6.014 MB / 0.5247 GB, free: 4.605 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.745e-05/0.6782, allocations: 20 kB / 0.5247 GB, free: 4.586 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.488e-05/0.6782, allocations: 19.92 kB / 0.5247 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/0.6783, allocations: 3.984 kB / 0.5247 GB, free: 4.562 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.26/0.9383, allocations: 13.21 MB / 0.5376 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.226e-05/0.9384, allocations: 1.062 kB / 0.5376 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001368/0.9398, allocations: 231.5 kB / 0.5378 GB, free: 140.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01276/0.9525, allocations: 4.138 MB / 0.5419 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003043/0.9529, allocations: 47.28 kB / 0.5419 GB, free: 140 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01631/0.9692, allocations: 12.52 MB / 0.5541 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.9692, allocations: 0 / 0.5541 GB, free: 134.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01805/0.9873, allocations: 9.99 MB / 0.5639 GB, free: 129.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008425/0.9882, allocations: 314 kB / 0.5642 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003865/0.9886, allocations: 39.73 kB / 0.5642 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001462/0.99, allocations: 182.3 kB / 0.5644 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004193/0.9905, allocations: 113.7 kB / 0.5645 GB, free: 129.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.9906, allocations: 50.75 kB / 0.5646 GB, free: 129.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002425/0.993, allocations: 1.848 MB / 0.5664 GB, free: 128.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.9931, allocations: 0 / 0.5664 GB, free: 128.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003683/0.9967, allocations: 0.8415 MB / 0.5672 GB, free: 127.2 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.01801/1.015, allocations: 10.82 MB / 0.5778 GB, free: 116.5 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.009086/1.024, allocations: 6.193 MB / 0.5838 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/1.024, allocations: 4 kB / 0.5838 GB, free: 110.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004414/1.028, allocations: 2.863 MB / 0.5866 GB, free: 107.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001482/1.03, allocations: 255.3 kB / 0.5868 GB, free: 106.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06426/1.094, allocations: 101 MB / 0.6854 GB, free: 2.652 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002119/1.096, allocations: 2.365 MB / 0.6877 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003756/1.1, allocations: 1.531 MB / 0.6892 GB, free: 14.71 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001615/1.102, allocations: 1.124 MB / 0.6903 GB, free: 13.59 MB / 462.1 MB Notification: Performance of SimCode: time 6.92e-07/1.102, allocations: 4 kB / 0.6903 GB, free: 13.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3814/1.483, allocations: 68.26 MB / 0.757 GB, free: 122.3 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001994/1.483, allocations: 223.9 kB / 0.7572 GB, free: 122.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.232/4.716, allocations: 0 / 0.7572 GB, free: 122.1 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