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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001222, allocations: 96.08 kB / 16.3 MB, free: 5.566 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00126/0.00126, allocations: 185.8 kB / 17.2 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.385/1.385, allocations: 223.2 MB / 241.1 MB, free: 376 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000331/0.0003309, allocations: 8.625 kB / 300.8 MB, free: 6.363 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1319, allocations: 50.42 MB / 351.2 MB, free: 3.93 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.01324/0.1452, allocations: 11.91 MB / 363.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.1561, allocations: 4.154 MB / 367.3 MB, free: 3.809 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003811/0.16, allocations: 55.81 kB / 367.4 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002161/0.1622, allocations: 0.5405 MB / 367.9 MB, free: 3.211 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007514/0.1697, allocations: 1.951 MB / 369.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.1711, allocations: 427.3 kB / 370.3 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2757/0.4468, allocations: 24.57 MB / 394.8 MB, free: 5.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002318/0.4492, allocations: 1.522 MB / 396.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008855/0.4501, allocations: 0.6215 MB / 397 MB, free: 4.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009187/0.451, allocations: 0.9017 MB / 397.9 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002035/0.4512, allocations: 88 kB / 398 MB, free: 3.457 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001197/0.4524, allocations: 0.763 MB / 398.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006608/0.4531, allocations: 0.964 MB / 399.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003972/0.4535, allocations: 0.514 MB / 400.2 MB, free: 1.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002624/0.4561, allocations: 3.351 MB / 403.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.4561, allocations: 0 / 403.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4562, allocations: 4 kB / 403.6 MB, free: 15.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.726e-05/0.4562, allocations: 0 / 403.6 MB, free: 15.08 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.005963/0.4622, allocations: 2.768 MB / 406.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.4623, allocations: 8.031 kB / 406.3 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000756/0.463, allocations: 461.7 kB / 406.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006728/0.4698, allocations: 1.986 MB / 408.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003576/0.4734, allocations: 1.59 MB / 410.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.078e-05/0.4735, allocations: 123.8 kB / 410.5 MB, free: 8.988 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003983/0.4739, allocations: 177.7 kB / 410.7 MB, free: 8.875 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.484, allocations: 6.642 MB / 417.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.378e-05/0.4841, allocations: 33.53 kB / 417.3 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002691/0.4844, allocations: 88.06 kB / 417.4 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002049/0.4864, allocations: 1.324 MB / 418.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01115/0.4976, allocations: 5.876 MB / 424.6 MB, free: 10.65 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.03364/0.5313, allocations: 28.19 MB / 452.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006027/0.5373, allocations: 2.753 MB / 455.6 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006951/0.5381, allocations: 0.6358 MB / 456.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.5381, allocations: 47.11 kB / 456.3 MB, free: 10.08 MB / 366.1 MB Notification: Performance of pre-optimization done (n=120): time 6.843e-06/0.5381, allocations: 3.984 kB / 456.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=154): time 0.0691/0.6072, allocations: 20.87 MB / 477.1 MB, free: 5.066 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.926e-05/0.6074, allocations: 153.4 kB / 477.3 MB, free: 4.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/0.6117, allocations: 2.948 MB / 480.2 MB, free: 1.926 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004071/0.6122, allocations: 49.7 kB / 480.3 MB, free: 1.871 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/0.6136, allocations: 2.108 MB / 482.4 MB, free: 15.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000811/0.6145, allocations: 0.606 MB / 483 MB, free: 15.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.6147, allocations: 96 kB / 483.1 MB, free: 15.08 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003428/0.615, allocations: 0.5103 MB / 483.6 MB, free: 14.56 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003253/0.6183, allocations: 2.188 MB / 485.8 MB, free: 12.37 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005358/0.6237, allocations: 5.14 MB / 490.9 MB, free: 5.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004747/0.6284, allocations: 3.289 MB / 494.2 MB, free: 2.469 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.527e-05/0.6285, allocations: 32 kB / 494.2 MB, free: 2.438 MB / 398.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02369/0.6522, allocations: 10.27 MB / 0.4927 GB, free: 8.145 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.582e-05/0.6524, allocations: 48 kB / 0.4927 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/0.6525, allocations: 108 kB / 0.4928 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01195/0.6645, allocations: 3.517 MB / 0.4963 GB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003682/0.6682, allocations: 1.103 MB / 0.4973 GB, free: 3.348 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01869/0.6869, allocations: 12.46 MB / 0.5095 GB, free: 6.754 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004215/0.6912, allocations: 331.8 kB / 0.5098 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008034/0.692, allocations: 311.5 kB / 0.5101 GB, free: 6.129 MB / 430.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.002574/0.6946, allocations: 1.472 MB / 0.5116 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005156/0.6951, allocations: 260.7 kB / 0.5118 GB, free: 4.391 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01529/0.7104, allocations: 6.015 MB / 0.5177 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-05/0.7105, allocations: 16 kB / 0.5177 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-05/0.7105, allocations: 8 kB / 0.5177 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.411e-05/0.7106, allocations: 7.969 kB / 0.5177 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02829/0.7389, allocations: 13.22 MB / 0.5306 GB, free: 1.059 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-05/0.7389, allocations: 4 kB / 0.5306 GB, free: 1.055 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.7401, allocations: 231.7 kB / 0.5308 GB, free: 0.8281 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2322/0.9723, allocations: 4.119 MB / 0.5349 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003959/0.9727, allocations: 50.64 kB / 0.5349 GB, free: 146.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02151/0.9942, allocations: 12.53 MB / 0.5471 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.9943, allocations: 2.031 kB / 0.5472 GB, free: 143 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01919/1.013, allocations: 9.988 MB / 0.5569 GB, free: 139.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000826/1.014, allocations: 312.1 kB / 0.5572 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004591/1.015, allocations: 42.97 kB / 0.5572 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001528/1.016, allocations: 186.2 kB / 0.5574 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000374/1.017, allocations: 106 kB / 0.5575 GB, free: 139.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001389/1.017, allocations: 46.88 kB / 0.5576 GB, free: 139.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002544/1.019, allocations: 1.847 MB / 0.5594 GB, free: 139 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.3e-07/1.019, allocations: 3.906 kB / 0.5594 GB, free: 139 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004087/1.024, allocations: 0.8447 MB / 0.5602 GB, free: 138.9 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.01854/1.042, allocations: 10.82 MB / 0.5708 GB, free: 131.1 MB / 446.1 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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.009738/1.052, allocations: 6.19 MB / 0.5768 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/1.052, allocations: 2.406 kB / 0.5768 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004387/1.056, allocations: 2.847 MB / 0.5796 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001558/1.058, allocations: 270.2 kB / 0.5799 GB, free: 121.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0602/1.118, allocations: 100.9 MB / 0.6784 GB, free: 17.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001744/1.12, allocations: 2.382 MB / 0.6808 GB, free: 15.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003075/1.123, allocations: 1.527 MB / 0.6823 GB, free: 13.48 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001163/1.124, allocations: 1.124 MB / 0.6833 GB, free: 12.36 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/1.124, allocations: 4 kB / 0.6834 GB, free: 12.36 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3056/1.43, allocations: 68.38 MB / 0.7501 GB, free: 110.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002087/1.43, allocations: 213 kB / 0.7503 GB, free: 110.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.601/5.031, allocations: 4.062 kB / 0.7503 GB, free: 110.1 MB / 446.1 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