Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002359/0.002359, allocations: 181.3 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.438/2.438, allocations: 205.2 MB / 219.4 MB, free: 14.21 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00114/0.00114, allocations: 86.66 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.387e-05/3.404e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4788/0.5829, allocations: 97.92 MB / 467.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004687/0.5834, allocations: 93.69 kB / 467.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8285/1.412, allocations: 115.3 MB / 0.5688 GB, free: 89.23 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.412, allocations: 0 / 0.5688 GB, free: 89.23 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004513/1.412, allocations: 117.2 kB / 0.5689 GB, free: 89.22 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.0296/1.442, allocations: 5.985 MB / 0.5748 GB, free: 87.03 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.211e-05/1.442, allocations: 15.09 kB / 0.5748 GB, free: 87.03 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005415/1.448, allocations: 0.9823 MB / 0.5758 GB, free: 86.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02306/1.471, allocations: 2.732 MB / 0.5784 GB, free: 86.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02747/1.498, allocations: 7.555 MB / 0.5858 GB, free: 84.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006319/1.499, allocations: 425 kB / 0.5862 GB, free: 84.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003992/1.503, allocations: 0.5647 MB / 0.5868 GB, free: 84.11 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05039/1.553, allocations: 14.96 MB / 0.6014 GB, free: 76.73 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000551/1.554, allocations: 77.95 kB / 0.6014 GB, free: 76.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003814/1.558, allocations: 265.3 kB / 0.6017 GB, free: 76.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003739/1.562, allocations: 1.433 MB / 0.6031 GB, free: 75.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04209/1.604, allocations: 13.02 MB / 0.6158 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1207/1.725, allocations: 65.77 MB / 0.6801 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03589/1.761, allocations: 7.343 MB / 0.6872 GB, free: 6.223 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01194/1.773, allocations: 4.837 MB / 0.6919 GB, free: 1.379 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3723/2.145, allocations: 13.98 MB / 0.7056 GB, free: 96.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.779e-05/2.145, allocations: 68.38 kB / 0.7057 GB, free: 96.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=282): time 7.755e-06/2.145, allocations: 1 kB / 0.7057 GB, free: 96.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=373): time 0.2467/2.392, allocations: 41.17 MB / 0.7459 GB, free: 88.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/2.392, allocations: 195.4 kB / 0.7461 GB, free: 88.38 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01122/2.403, allocations: 4.257 MB / 0.7502 GB, free: 86.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001427/2.405, allocations: 82.67 kB / 0.7503 GB, free: 86.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003488/2.408, allocations: 3.614 MB / 0.7538 GB, free: 83.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002833/2.411, allocations: 1.351 MB / 0.7551 GB, free: 82.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001876/2.413, allocations: 156.7 kB / 0.7553 GB, free: 82.79 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007731/2.414, allocations: 0.6422 MB / 0.7559 GB, free: 82.33 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01204/2.426, allocations: 4.366 MB / 0.7602 GB, free: 80.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01575/2.442, allocations: 8.399 MB / 0.7684 GB, free: 72.36 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01456/2.456, allocations: 6.036 MB / 0.7743 GB, free: 67.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001759/2.457, allocations: 40 kB / 0.7743 GB, free: 67.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=1019) (initialization): time 0.06264/2.519, allocations: 18.36 MB / 0.7922 GB, free: 52.38 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001006/2.519, allocations: 64 kB / 0.7923 GB, free: 52.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000164/2.52, allocations: 143.6 kB / 0.7924 GB, free: 52.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03353/2.553, allocations: 6.658 MB / 0.7989 GB, free: 46.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01145/2.565, allocations: 1.719 MB / 0.8006 GB, free: 45.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08267/2.647, allocations: 35.31 MB / 0.8351 GB, free: 9.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01172/2.659, allocations: 0.5694 MB / 0.8357 GB, free: 9.035 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00253/2.662, allocations: 481.2 kB / 0.8361 GB, free: 8.566 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 640 * Number of states: 0 () * Number of discrete variables: 51 (shape.color[3],shape.color[2],shape.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],wheelSet.wheelSetJoint.revolute2.cylinderColor[3],wheelSet.wheelSetJoint.revolute2.cylinderColor[2],wheelSet.wheelSetJoint.revolute2.cylinderColor[1],wheelSet.wheelSetJoint.revolute1.cylinderColor[3],wheelSet.wheelSetJoint.revolute1.cylinderColor[2],wheelSet.wheelSetJoint.revolute1.cylinderColor[1],wheelSet.wheelSetJoint.rod2.color[3],wheelSet.wheelSetJoint.rod2.color[2],wheelSet.wheelSetJoint.rod2.color[1],wheelSet.wheelSetJoint.revolute.cylinderColor[3],wheelSet.wheelSetJoint.revolute.cylinderColor[2],wheelSet.wheelSetJoint.revolute.cylinderColor[1],wheelSet.wheelSetJoint.prismatic2.boxColor[3],wheelSet.wheelSetJoint.prismatic2.boxColor[2],wheelSet.wheelSetJoint.prismatic2.boxColor[1],wheelSet.wheelSetJoint.prismatic1.boxColor[3],wheelSet.wheelSetJoint.prismatic1.boxColor[2],wheelSet.wheelSetJoint.prismatic1.boxColor[1],wheelSet.wheelSetJoint.rod1.color[3],wheelSet.wheelSetJoint.rod1.color[2],wheelSet.wheelSetJoint.rod1.color[1],wheelSet.wheelSetJoint.fixed.color[3],wheelSet.wheelSetJoint.fixed.color[2],wheelSet.wheelSetJoint.fixed.color[1],wheelSet.body1.sphereColor[3],wheelSet.body1.sphereColor[2],wheelSet.body1.sphereColor[1],wheelSet.body2.sphereColor[3],wheelSet.body2.sphereColor[2],wheelSet.body2.sphereColor[1],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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (860): * Single equations (assignments): 852 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,67.9%) 100,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002923/2.665, allocations: 0.6754 MB / 0.8368 GB, free: 7.895 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001695/2.666, allocations: 477.9 kB / 0.8372 GB, free: 7.422 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05434/2.721, allocations: 13.57 MB / 0.8505 GB, free: 9.781 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.653e-05/2.721, allocations: 36 kB / 0.8505 GB, free: 9.746 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.916e-05/2.721, allocations: 28 kB / 0.8505 GB, free: 9.719 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.361e-05/2.721, allocations: 19.92 kB / 0.8506 GB, free: 9.699 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4306/3.152, allocations: 25.77 MB / 0.8757 GB, free: 98.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.57e-05/3.152, allocations: 3.938 kB / 0.8757 GB, free: 98.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005174/3.157, allocations: 0.5196 MB / 0.8762 GB, free: 98.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0345/3.191, allocations: 6.275 MB / 0.8824 GB, free: 97.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001379/3.193, allocations: 74.59 kB / 0.8824 GB, free: 97.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1067/3.3, allocations: 32.56 MB / 0.9142 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.907e-06/3.3, allocations: 9.891 kB / 0.9142 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0625/3.362, allocations: 20.06 MB / 0.9338 GB, free: 73.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006465/3.369, allocations: 1.327 MB / 0.9351 GB, free: 72.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00197/3.371, allocations: 61.12 kB / 0.9352 GB, free: 72.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006763/3.378, allocations: 350.5 kB / 0.9355 GB, free: 72.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001926/3.38, allocations: 278 kB / 0.9358 GB, free: 72.18 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005153/3.38, allocations: 90.86 kB / 0.9359 GB, free: 72.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007139/3.387, allocations: 3.054 MB / 0.9389 GB, free: 69.39 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.002e-06/3.387, allocations: 0 / 0.9389 GB, free: 69.39 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01194/3.399, allocations: 1.834 MB / 0.9406 GB, free: 67.57 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (wheelSet.x,wheelSet.y,wheelSet.phi,wheelSet.theta1,wheelSet.theta2,wheelSet.der_theta1,wheelSet.der_theta2) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 218 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(8,70.3%) 98,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06228/3.462, allocations: 21.47 MB / 0.9616 GB, free: 49.51 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02903/3.491, allocations: 11.66 MB / 0.973 GB, free: 38.88 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/3.491, allocations: 0 / 0.973 GB, free: 38.88 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01446/3.505, allocations: 5.589 MB / 0.9785 GB, free: 33.2 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005268/3.511, allocations: 0.5693 MB / 0.979 GB, free: 32.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06167/3.572, allocations: 16.61 MB / 0.9952 GB, free: 16.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01033/3.583, allocations: 4.518 MB / 0.9996 GB, free: 11.57 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007348/3.59, allocations: 2.698 MB / 1.002 GB, free: 8.879 MB / 442.7 MB Notification: Performance of SimCode: time 1.493e-06/3.59, allocations: 0 / 1.002 GB, free: 8.879 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.417/10.01, allocations: 247.7 MB / 1.244 GB, free: 108.2 MB / 474.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving_res.mat does not exist to compare? outputFormat=mat