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.002227/0.002227, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001088/0.001088, allocations: 88.91 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.338e-05/2.348e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3762/0.3762, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2348/0.6111, allocations: 97.28 MB / 459.7 MB, free: 4.914 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004582/0.6116, allocations: 84.8 kB / 459.8 MB, free: 4.832 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8136/1.425, allocations: 112.9 MB / 0.5593 GB, free: 83.29 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.164e-06/1.425, allocations: 0 / 0.5593 GB, free: 83.29 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004161/1.426, allocations: 123.4 kB / 0.5594 GB, free: 83.18 MB / 395.1 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.02719/1.453, allocations: 5.977 MB / 0.5653 GB, free: 77.14 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.596e-05/1.453, allocations: 8.031 kB / 0.5653 GB, free: 77.14 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02156/1.475, allocations: 2.73 MB / 0.5679 GB, free: 74.39 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02648/1.501, allocations: 7.548 MB / 0.5753 GB, free: 66.86 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003573/1.502, allocations: 180 kB / 0.5755 GB, free: 66.68 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003392/1.505, allocations: 343.8 kB / 0.5758 GB, free: 66.34 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02476/1.53, allocations: 9.522 MB / 0.5851 GB, free: 56.82 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03514/1.565, allocations: 13.07 MB / 0.5979 GB, free: 42.67 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004821/1.565, allocations: 75.39 kB / 0.5979 GB, free: 42.59 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002969/1.568, allocations: 32 kB / 0.598 GB, free: 42.56 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003484/1.572, allocations: 1.437 MB / 0.5994 GB, free: 41.12 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4596/2.032, allocations: 63.68 MB / 0.6616 GB, free: 60.16 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01362/2.045, allocations: 6.214 MB / 0.6676 GB, free: 59.49 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01007/2.055, allocations: 4.739 MB / 0.6723 GB, free: 59.45 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00226/2.058, allocations: 1.284 MB / 0.6735 GB, free: 58.32 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.678e-05/2.058, allocations: 63.64 kB / 0.6736 GB, free: 58.28 MB / 411.1 MB Notification: Performance of pre-optimization done (n=287): time 7.785e-06/2.058, allocations: 0 / 0.6736 GB, free: 58.28 MB / 411.1 MB Notification: Performance of matching and sorting (n=378): time 0.1553/2.213, allocations: 37.1 MB / 0.7098 GB, free: 51.22 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.796e-05/2.213, allocations: 164.1 kB / 0.71 GB, free: 51.06 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007902/2.221, allocations: 3.634 MB / 0.7135 GB, free: 49.27 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001296/2.223, allocations: 25.7 kB / 0.7135 GB, free: 49.24 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003022/2.226, allocations: 3.714 MB / 0.7172 GB, free: 45.86 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002543/2.228, allocations: 1.331 MB / 0.7185 GB, free: 44.65 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001137/2.229, allocations: 0 / 0.7185 GB, free: 44.65 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0005165/2.23, allocations: 0.6528 MB / 0.7191 GB, free: 44.09 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009563/2.239, allocations: 4.297 MB / 0.7233 GB, free: 40.23 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01264/2.252, allocations: 8.42 MB / 0.7315 GB, free: 30.52 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01351/2.266, allocations: 5.979 MB / 0.7374 GB, free: 25.66 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001735/2.266, allocations: 46.62 kB / 0.7374 GB, free: 25.62 MB / 411.1 MB Notification: Performance of matching and sorting (n=1049) (initialization): time 0.06169/2.328, allocations: 17.62 MB / 0.7546 GB, free: 11.71 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001182/2.328, allocations: 68 kB / 0.7547 GB, free: 11.65 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002285/2.328, allocations: 144.5 kB / 0.7548 GB, free: 11.51 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03265/2.361, allocations: 6.459 MB / 0.7611 GB, free: 6.957 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01139/2.372, allocations: 1.772 MB / 0.7628 GB, free: 5.461 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09154/2.464, allocations: 33.75 MB / 0.7958 GB, free: 4.016 MB / 443.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01162/2.475, allocations: 427.2 kB / 0.7962 GB, free: 3.598 MB / 443.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002851/2.478, allocations: 493.1 kB / 0.7967 GB, free: 3.117 MB / 443.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 662 * 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 (890): * Single equations (assignments): 882 * 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 {(6,80.6%) 103,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004111/2.483, allocations: 494 kB / 0.7972 GB, free: 2.629 MB / 443.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.05414/2.537, allocations: 13.17 MB / 0.81 GB, free: 5.398 MB / 459.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002519/2.539, allocations: 446.3 kB / 0.8104 GB, free: 4.961 MB / 459.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05345/2.593, allocations: 13.31 MB / 0.8234 GB, free: 7.57 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001074/2.593, allocations: 40 kB / 0.8235 GB, free: 7.531 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.479e-05/2.593, allocations: 24 kB / 0.8235 GB, free: 7.508 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.628e-05/2.593, allocations: 25.09 kB / 0.8235 GB, free: 7.484 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4121/3.005, allocations: 24.77 MB / 0.8477 GB, free: 139.3 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.386e-05/3.005, allocations: 3.719 kB / 0.8477 GB, free: 139.3 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00504/3.01, allocations: 0.5276 MB / 0.8482 GB, free: 139.3 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03291/3.043, allocations: 6.242 MB / 0.8543 GB, free: 139.3 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001326/3.045, allocations: 18.78 kB / 0.8543 GB, free: 139.3 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07388/3.119, allocations: 30.6 MB / 0.8842 GB, free: 129.7 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.089e-05/3.119, allocations: 6.656 kB / 0.8842 GB, free: 129.7 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06135/3.18, allocations: 19.68 MB / 0.9034 GB, free: 120.3 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005426/3.186, allocations: 1.274 MB / 0.9047 GB, free: 119.4 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002038/3.188, allocations: 11.48 kB / 0.9047 GB, free: 119.4 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006858/3.194, allocations: 294.2 kB / 0.905 GB, free: 119.3 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002343/3.197, allocations: 268.5 kB / 0.9052 GB, free: 119.1 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00135/3.198, allocations: 106.9 kB / 0.9053 GB, free: 119 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.006916/3.205, allocations: 2.462 MB / 0.9077 GB, free: 116.8 MB / 475.1 MB Notification: Performance of sort global known variables: time 1.062e-06/3.205, allocations: 0.5625 kB / 0.9077 GB, free: 116.8 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.01233/3.218, allocations: 1.601 MB / 0.9093 GB, free: 115.3 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (231): * Single equations (assignments): 223 * 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,66.7%) 97,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06176/3.279, allocations: 21.06 MB / 0.9299 GB, free: 97.6 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.02667/3.306, allocations: 11.25 MB / 0.9409 GB, free: 87.01 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/3.306, allocations: 2.438 kB / 0.9409 GB, free: 87.01 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01446/3.321, allocations: 5.47 MB / 0.9462 GB, free: 81.46 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004986/3.326, allocations: 437 kB / 0.9466 GB, free: 81.05 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05889/3.385, allocations: 16.27 MB / 0.9625 GB, free: 64.96 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008676/3.393, allocations: 4.514 MB / 0.9669 GB, free: 60.45 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006438/3.4, allocations: 2.69 MB / 0.9695 GB, free: 57.76 MB / 475.1 MB Notification: Performance of SimCode: time 1.533e-06/3.4, allocations: 0 / 0.9695 GB, free: 57.76 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.069/9.469, allocations: 244.3 MB / 1.208 GB, free: 127.5 MB / 475.1 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