Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_3_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.001197/0.001197, allocations: 113.3 kB / 17.28 MB, free: 6.301 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.001434/0.001434, allocations: 189.3 kB / 18.19 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.301/1.301, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 48.14 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09096/0.09224, allocations: 46.64 MB / 326.9 MB, free: 4.684 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.01353/0.1058, allocations: 14.02 MB / 340.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008128/0.114, allocations: 4.316 MB / 345.2 MB, free: 2.27 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002344/0.1164, allocations: 51.88 kB / 345.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002027/0.1184, allocations: 0.8451 MB / 346.1 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003332/0.1218, allocations: 1.289 MB / 347.4 MB, free: 80 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001206/0.123, allocations: 0.4954 MB / 347.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004339/0.1274, allocations: 3.547 MB / 351.4 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002136/0.1295, allocations: 1.388 MB / 352.8 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001421/0.131, allocations: 0.8446 MB / 353.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001881/0.1329, allocations: 1.383 MB / 355.1 MB, free: 8.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004675/0.1334, allocations: 180 kB / 355.2 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001573/0.1349, allocations: 0.9789 MB / 356.2 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009213/0.1359, allocations: 1.161 MB / 357.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001075/0.137, allocations: 1.332 MB / 358.7 MB, free: 4.73 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00373/0.1407, allocations: 4.315 MB / 363 MB, free: 412 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1407, allocations: 4 kB / 363 MB, free: 408 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1407, allocations: 0 / 363 MB, free: 408 kB / 302.1 MB Notification: Performance of Transformations before backend: time 4.457e-05/0.1408, allocations: 0 / 363 MB, free: 408 kB / 302.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.005999/0.1468, allocations: 3.288 MB / 366.3 MB, free: 13.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1468, allocations: 12.03 kB / 366.3 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000464/0.1473, allocations: 466.3 kB / 366.8 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005353/0.1527, allocations: 1.658 MB / 368.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002999/0.1557, allocations: 1.99 MB / 370.4 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.222e-05/0.1558, allocations: 131.2 kB / 370.6 MB, free: 8.742 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002846/0.1561, allocations: 167.9 kB / 370.7 MB, free: 8.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008159/0.1642, allocations: 6.588 MB / 377.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.349e-05/0.1643, allocations: 39.64 kB / 377.4 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002301/0.1646, allocations: 87.89 kB / 377.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001752/0.1663, allocations: 1.327 MB / 378.8 MB, free: 0 / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1521/0.3184, allocations: 5.828 MB / 384.6 MB, free: 49.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02642/0.3449, allocations: 28.09 MB / 412.7 MB, free: 27.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004747/0.3497, allocations: 2.743 MB / 415.4 MB, free: 25.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001055/0.3507, allocations: 1.266 MB / 416.7 MB, free: 24.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004572/0.3512, allocations: 0.6387 MB / 417.3 MB, free: 23.31 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.3512, allocations: 51.11 kB / 417.4 MB, free: 23.25 MB / 318.1 MB Notification: Performance of pre-optimization done (n=120): time 3.897e-06/0.3513, allocations: 0 / 417.4 MB, free: 23.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=154): time 0.06178/0.413, allocations: 20.58 MB / 438 MB, free: 2.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.086e-05/0.4131, allocations: 145.5 kB / 438.1 MB, free: 2.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003052/0.4162, allocations: 2.865 MB / 441 MB, free: 15.53 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004079/0.4166, allocations: 45.7 kB / 441 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001459/0.4181, allocations: 2.105 MB / 443.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007404/0.4188, allocations: 0.6059 MB / 443.7 MB, free: 12.77 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001263/0.4201, allocations: 0.9957 MB / 444.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.4202, allocations: 309.1 kB / 445 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002962/0.4232, allocations: 2.218 MB / 447.2 MB, free: 9.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005131/0.4283, allocations: 5.173 MB / 452.4 MB, free: 2.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008247/0.4366, allocations: 7.974 MB / 460.4 MB, free: 9.145 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.609e-05/0.4367, allocations: 32 kB / 460.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.02186/0.4585, allocations: 10.28 MB / 470.7 MB, free: 14.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.636e-05/0.4587, allocations: 48 kB / 470.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/0.4588, allocations: 104 kB / 470.8 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01182/0.4706, allocations: 3.435 MB / 474.3 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00384/0.4745, allocations: 1.103 MB / 475.4 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01898/0.4935, allocations: 12.86 MB / 488.2 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004024/0.4975, allocations: 331.4 kB / 488.6 MB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006161/0.4982, allocations: 312 kB / 488.9 MB, free: 12.46 MB / 382.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 (not torn): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (2,100.0%), (3,88.9%), (3,88.9%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,23,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002294/0.5005, allocations: 1.465 MB / 490.3 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005378/0.501, allocations: 248.8 kB / 490.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01555/0.5166, allocations: 6.002 MB / 496.6 MB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-05/0.5167, allocations: 20 kB / 496.6 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.437e-05/0.5167, allocations: 8 kB / 496.6 MB, free: 4.66 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.943e-05/0.5167, allocations: 7.984 kB / 496.6 MB, free: 4.652 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02787/0.5446, allocations: 13.2 MB / 0.4979 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-05/0.5447, allocations: 0 / 0.4979 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.5458, allocations: 227.7 kB / 0.4981 GB, free: 7.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01222/0.558, allocations: 4.027 MB / 0.502 GB, free: 3.102 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002943/0.5584, allocations: 47.95 kB / 0.5021 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01776/0.5761, allocations: 12.83 MB / 0.5146 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.5762, allocations: 0 / 0.5146 GB, free: 6.082 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1738/0.75, allocations: 9.888 MB / 0.5242 GB, free: 131.9 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006784/0.7507, allocations: 306.9 kB / 0.5245 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003654/0.7511, allocations: 37.05 kB / 0.5246 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001592/0.7527, allocations: 179.1 kB / 0.5247 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004383/0.7531, allocations: 113.1 kB / 0.5249 GB, free: 131.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/0.7533, allocations: 47.69 kB / 0.5249 GB, free: 131.8 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002667/0.7559, allocations: 1.778 MB / 0.5266 GB, free: 131.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.756, allocations: 0 / 0.5266 GB, free: 131.7 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00389/0.7599, allocations: 0.8262 MB / 0.5274 GB, free: 131.6 MB / 414.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 (not torn): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 6 systems {(2,100.0%), (2,100.0%), (3,88.9%), (2,100.0%), (3,88.9%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,19,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01971/0.7796, allocations: 10.52 MB / 0.5377 GB, free: 128.1 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74: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 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74: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.009371/0.789, allocations: 6.764 MB / 0.5443 GB, free: 125.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.02e-06/0.789, allocations: 0 / 0.5443 GB, free: 125.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004023/0.793, allocations: 2.863 MB / 0.5471 GB, free: 123.9 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/0.7949, allocations: 299.7 kB / 0.5474 GB, free: 123.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06144/0.8564, allocations: 46.13 MB / 0.5925 GB, free: 73.9 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001802/0.8583, allocations: 2.325 MB / 0.5947 GB, free: 71.55 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003164/0.8614, allocations: 1.531 MB / 0.5962 GB, free: 70.01 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/0.8626, allocations: 1.128 MB / 0.5973 GB, free: 68.88 MB / 414.1 MB Notification: Performance of SimCode: time 2.214e-06/0.8626, allocations: 0 / 0.5973 GB, free: 68.88 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08/0.9426, allocations: 65.17 MB / 0.661 GB, free: 3.602 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001443/0.9428, allocations: 247.8 kB / 0.6612 GB, free: 3.336 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.684/4.626, allocations: 4 kB / 0.6612 GB, free: 3.332 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/RollingWheel/RollingWheel.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches