Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.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.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque",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.00145/0.00145, allocations: 178.3 kB / 8.359 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 2.209/2.209, 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.001121/0.00112, allocations: 90.41 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.544e-05/3.568e-05, allocations: 7.984 kB / 314.9 MB, free: 9.039 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3497/0.3498, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.171/0.5208, allocations: 99.52 MB / 462 MB, free: 2.637 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003327/0.5212, allocations: 91.84 kB / 462 MB, free: 2.551 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.6746/1.196, allocations: 95.53 MB / 0.5445 GB, free: 93.66 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.795e-06/1.196, allocations: 0 / 0.5445 GB, free: 93.66 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0002923/1.196, allocations: 94.22 kB / 0.5446 GB, free: 93.66 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: 1737 * Number of variables: 1737 Notification: Performance of Generate backend data structure: time 0.01948/1.216, allocations: 4.681 MB / 0.5492 GB, free: 90.51 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.898e-05/1.216, allocations: 10.09 kB / 0.5492 GB, free: 90.51 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03308/1.249, allocations: 4.497 MB / 0.5536 GB, free: 88.26 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01934/1.268, allocations: 5.06 MB / 0.5585 GB, free: 83.7 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/1.269, allocations: 156 kB / 0.5587 GB, free: 83.55 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002557/1.271, allocations: 276 kB / 0.5589 GB, free: 83.28 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01695/1.288, allocations: 6.981 MB / 0.5657 GB, free: 76.29 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02822/1.316, allocations: 10.59 MB / 0.5761 GB, free: 64.66 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002845/1.317, allocations: 67.39 kB / 0.5761 GB, free: 64.6 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002309/1.319, allocations: 32 kB / 0.5762 GB, free: 64.57 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002499/1.322, allocations: 1.191 MB / 0.5773 GB, free: 63.38 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07647/1.398, allocations: 50.63 MB / 0.6268 GB, free: 11.55 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007014/1.405, allocations: 4.055 MB / 0.6307 GB, free: 7.293 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004394/1.41, allocations: 2.399 MB / 0.6331 GB, free: 4.883 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001342/1.411, allocations: 0.6873 MB / 0.6338 GB, free: 4.094 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.085e-05/1.411, allocations: 55.88 kB / 0.6338 GB, free: 4.031 MB / 395.1 MB Notification: Performance of pre-optimization done (n=207): time 5.1e-06/1.411, allocations: 3.938 kB / 0.6338 GB, free: 4.027 MB / 395.1 MB Notification: Performance of matching and sorting (n=229): time 0.06165/1.473, allocations: 17.08 MB / 0.6505 GB, free: 2.863 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001242/1.473, allocations: 180.3 kB / 0.6507 GB, free: 2.652 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3015/1.774, allocations: 3.39 MB / 0.654 GB, free: 100.1 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006066/1.775, allocations: 25.7 kB / 0.654 GB, free: 100.1 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003126/1.778, allocations: 3.49 MB / 0.6574 GB, free: 98.67 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001469/1.78, allocations: 0.8423 MB / 0.6582 GB, free: 98.18 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008275/1.781, allocations: 0 / 0.6582 GB, free: 98.18 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0004781/1.781, allocations: 0.6015 MB / 0.6588 GB, free: 97.86 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006369/1.787, allocations: 2.4 MB / 0.6612 GB, free: 97.84 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01028/1.798, allocations: 6.425 MB / 0.6674 GB, free: 92.62 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0101/1.808, allocations: 3.903 MB / 0.6712 GB, free: 92.59 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002989/1.808, allocations: 41.66 kB / 0.6713 GB, free: 92.59 MB / 411.1 MB Notification: Performance of matching and sorting (n=904) (initialization): time 0.0281/1.836, allocations: 8.611 MB / 0.6797 GB, free: 91.74 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001562/1.837, allocations: 72.23 kB / 0.6798 GB, free: 91.74 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002477/1.837, allocations: 142.8 kB / 0.6799 GB, free: 91.74 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003772/1.841, allocations: 0.9274 MB / 0.6808 GB, free: 91.59 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01072/1.851, allocations: 1.674 MB / 0.6824 GB, free: 91.39 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01095/1.862, allocations: 5.488 MB / 0.6878 GB, free: 88.51 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00813/1.871, allocations: 259.1 kB / 0.688 GB, free: 88.49 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001922/1.873, allocations: 419.8 kB / 0.6884 GB, free: 88.43 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 657 * Number of states: 0 () * Number of discrete variables: 42 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * 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): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 21} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002383/1.875, allocations: 478.7 kB / 0.6889 GB, free: 88.04 MB / 411.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01128/1.886, allocations: 4.175 MB / 0.693 GB, free: 86.57 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001405/1.888, allocations: 361.9 kB / 0.6933 GB, free: 86.38 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01123/1.899, allocations: 3.952 MB / 0.6972 GB, free: 84.95 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.552e-05/1.899, allocations: 26.23 kB / 0.6972 GB, free: 84.95 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/1.899, allocations: 7.375 kB / 0.6972 GB, free: 84.95 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.598e-05/1.899, allocations: 10.12 kB / 0.6972 GB, free: 84.95 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02684/1.926, allocations: 9.07 MB / 0.7061 GB, free: 81.61 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.457e-05/1.926, allocations: 0.75 kB / 0.7061 GB, free: 81.61 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004131/1.93, allocations: 438.8 kB / 0.7065 GB, free: 81.57 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003143/1.933, allocations: 0.7104 MB / 0.7072 GB, free: 81.43 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004956/1.934, allocations: 12.75 kB / 0.7072 GB, free: 81.43 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009825/1.944, allocations: 4.989 MB / 0.7121 GB, free: 78.71 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.045e-05/1.944, allocations: 6.938 kB / 0.7121 GB, free: 78.71 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01563/1.959, allocations: 7.317 MB / 0.7192 GB, free: 72.64 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003019/1.963, allocations: 0.7429 MB / 0.72 GB, free: 71.93 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009987/1.964, allocations: 4 kB / 0.72 GB, free: 71.93 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003273/1.967, allocations: 110.7 kB / 0.7201 GB, free: 71.88 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006321/1.968, allocations: 138.1 kB / 0.7202 GB, free: 71.79 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002599/1.968, allocations: 56 kB / 0.7203 GB, free: 71.73 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005725/1.974, allocations: 2.259 MB / 0.7225 GB, free: 69.76 MB / 411.1 MB Notification: Performance of sort global known variables: time 6.61e-07/1.974, allocations: 0.75 kB / 0.7225 GB, free: 69.76 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.008846/1.982, allocations: 0.9963 MB / 0.7234 GB, free: 68.77 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (190): * Single equations (assignments): 186 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01763/2, allocations: 8.446 MB / 0.7317 GB, free: 61.16 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01412/2.014, allocations: 5.922 MB / 0.7375 GB, free: 55.82 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 1.042e-05/2.014, allocations: 4 kB / 0.7375 GB, free: 55.82 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005454/2.02, allocations: 2.147 MB / 0.7396 GB, free: 53.89 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003505/2.023, allocations: 360.6 kB / 0.7399 GB, free: 53.59 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03625/2.06, allocations: 10.93 MB / 0.7506 GB, free: 44.12 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008901/2.069, allocations: 3.781 MB / 0.7543 GB, free: 41.26 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006181/2.075, allocations: 2.273 MB / 0.7565 GB, free: 39.16 MB / 411.1 MB Notification: Performance of SimCode: time 1.854e-06/2.075, allocations: 0 / 0.7565 GB, free: 39.16 MB / 411.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.739/6.814, allocations: 111.3 MB / 0.8651 GB, free: 79.82 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_ForceAndTorque.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque_res.mat does not exist to compare? outputFormat=mat