Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_trunk_cpp_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.00107/0.001069, allocations: 192.3 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.207/1.207, allocations: 226.5 MB / 244.7 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007856/0.0007856, allocations: 99.05 kB / 296.7 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002089/0.0002089, allocations: 8 kB / 356.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1884/0.1887, allocations: 51.29 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel): time 0.00792/0.1966, allocations: 12.57 MB / 420.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0059/0.2026, allocations: 4.096 MB / 424.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001545/0.2042, allocations: 55.81 kB / 424.9 MB, free: 10.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001301/0.2055, allocations: 0.5988 MB / 425.5 MB, free: 10.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00403/0.2095, allocations: 2.195 MB / 427.6 MB, free: 8.121 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008774/0.2104, allocations: 475.2 kB / 428.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03291/0.2433, allocations: 31.39 MB / 459.5 MB, free: 8.219 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002169/0.2455, allocations: 1.592 MB / 461.1 MB, free: 6.59 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009232/0.2465, allocations: 0.7355 MB / 461.8 MB, free: 5.852 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.2477, allocations: 1.235 MB / 463.1 MB, free: 4.613 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001955/0.2479, allocations: 88 kB / 463.1 MB, free: 4.527 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001341/0.2493, allocations: 0.9164 MB / 464.1 MB, free: 3.609 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007825/0.2501, allocations: 1.032 MB / 465.1 MB, free: 2.574 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008833/0.251, allocations: 1.163 MB / 466.3 MB, free: 1.398 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002647/0.2536, allocations: 3.345 MB / 469.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.2536, allocations: 0 / 469.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2536, allocations: 0 / 469.6 MB, free: 14.05 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.234e-05/0.2537, allocations: 4 kB / 469.6 MB, free: 14.04 MB / 346.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.005766/0.2595, allocations: 2.856 MB / 472.5 MB, free: 11.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.2595, allocations: 12.03 kB / 472.5 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004723/0.26, allocations: 458.3 kB / 472.9 MB, free: 10.66 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005399/0.2654, allocations: 1.713 MB / 474.6 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002572/0.268, allocations: 1.713 MB / 476.3 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-05/0.2681, allocations: 131.1 kB / 476.5 MB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002796/0.2684, allocations: 167.9 kB / 476.6 MB, free: 6.891 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007729/0.2761, allocations: 6.592 MB / 483.2 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.887e-05/0.2762, allocations: 39.66 kB / 483.3 MB, free: 15.71 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002107/0.2764, allocations: 83.89 kB / 483.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00182/0.2782, allocations: 1.331 MB / 484.7 MB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008336/0.2866, allocations: 5.812 MB / 490.5 MB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1804/0.467, allocations: 28.1 MB / 0.5064 GB, free: 75.74 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005423/0.4725, allocations: 2.748 MB / 0.5091 GB, free: 75.09 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00139/0.4739, allocations: 1.269 MB / 0.5104 GB, free: 75.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005872/0.4745, allocations: 0.6328 MB / 0.511 GB, free: 74.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.4745, allocations: 46.41 kB / 0.511 GB, free: 74.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=120): time 3.857e-06/0.4746, allocations: 0.9062 kB / 0.511 GB, free: 74.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=154): time 0.06095/0.5355, allocations: 20.58 MB / 0.5311 GB, free: 62.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.5356, allocations: 152.8 kB / 0.5313 GB, free: 62.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002628/0.5382, allocations: 2.819 MB / 0.534 GB, free: 59.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002007/0.5384, allocations: 49.7 kB / 0.5341 GB, free: 59.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007263/0.5392, allocations: 2.106 MB / 0.5361 GB, free: 57.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003633/0.5395, allocations: 0.6073 MB / 0.5367 GB, free: 56.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002062/0.5397, allocations: 96 kB / 0.5368 GB, free: 56.58 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.5399, allocations: 0.5126 MB / 0.5373 GB, free: 56.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002236/0.5422, allocations: 2.192 MB / 0.5395 GB, free: 53.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/0.5451, allocations: 5.159 MB / 0.5445 GB, free: 47.27 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006074/0.5512, allocations: 7.953 MB / 0.5523 GB, free: 37.97 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.287e-05/0.5513, allocations: 32 kB / 0.5523 GB, free: 37.94 MB / 378.7 MB Notification: Performance of matching and sorting (n=641) (initialization): time 0.01916/0.5704, allocations: 10.27 MB / 0.5623 GB, free: 27.64 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.001e-05/0.5705, allocations: 52 kB / 0.5624 GB, free: 27.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.158e-05/0.5706, allocations: 108 kB / 0.5625 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/0.5814, allocations: 3.497 MB / 0.5659 GB, free: 23.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002973/0.5844, allocations: 1.099 MB / 0.567 GB, free: 22.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/0.5993, allocations: 12.04 MB / 0.5787 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00322/0.6026, allocations: 331.5 kB / 0.579 GB, free: 10.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004022/0.603, allocations: 308.7 kB / 0.5793 GB, free: 10.06 MB / 378.7 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.001631/0.6046, allocations: 1.47 MB / 0.5808 GB, free: 8.582 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.605, allocations: 252 kB / 0.581 GB, free: 8.336 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01375/0.6187, allocations: 6.021 MB / 0.5869 GB, free: 2.281 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.334e-05/0.6188, allocations: 21.33 kB / 0.5869 GB, free: 2.262 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.6e-05/0.6188, allocations: 11.98 kB / 0.5869 GB, free: 2.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.229e-05/0.6188, allocations: 7.984 kB / 0.5869 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02716/0.646, allocations: 13.22 MB / 0.5998 GB, free: 5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.981e-05/0.6461, allocations: 0 / 0.5998 GB, free: 5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.6471, allocations: 228.9 kB / 0.6 GB, free: 4.777 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01259/0.6597, allocations: 4.136 MB / 0.6041 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002727/0.66, allocations: 43.95 kB / 0.6041 GB, free: 0.5742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01768/0.6777, allocations: 12.1 MB / 0.6159 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.6777, allocations: 0 / 0.6159 GB, free: 4.34 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02029/0.698, allocations: 9.927 MB / 0.6256 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006238/0.6987, allocations: 297.8 kB / 0.6259 GB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000501/0.6992, allocations: 35.98 kB / 0.626 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/0.7009, allocations: 183.7 kB / 0.6261 GB, free: 9.844 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005959/0.7015, allocations: 117.8 kB / 0.6262 GB, free: 9.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000154/0.7017, allocations: 51.97 kB / 0.6263 GB, free: 9.68 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002324/0.704, allocations: 1.743 MB / 0.628 GB, free: 7.93 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.704, allocations: 3.938 kB / 0.628 GB, free: 7.926 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003365/0.7074, allocations: 0.8323 MB / 0.6288 GB, free: 7.098 MB / 426.7 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.02023/0.7276, allocations: 10.57 MB / 0.6391 GB, free: 12.48 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.009866/0.7375, allocations: 6.194 MB / 0.6452 GB, free: 6.164 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.671e-06/0.7376, allocations: 0 / 0.6452 GB, free: 6.164 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004884/0.7425, allocations: 2.861 MB / 0.648 GB, free: 3.164 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/0.7447, allocations: 282.1 kB / 0.6482 GB, free: 2.891 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05139/0.7961, allocations: 29.28 MB / 0.6768 GB, free: 2.875 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002495/0.7986, allocations: 2.321 MB / 0.6791 GB, free: 0.5312 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1512/0.9499, allocations: 1.159 MB / 0.6802 GB, free: 177.2 MB / 474.7 MB Notification: Performance of SimCode: time 7.62e-07/0.9499, allocations: 0 / 0.6802 GB, free: 177.2 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.912/7.862, allocations: 137.8 MB / 0.8148 GB, free: 53.45 MB / 474.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/RollingWheel/RollingWheel.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches