Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2",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.002184/0.002183, allocations: 188.4 kB / 16.41 MB, free: 5.723 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.107/2.107, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001174/0.001174, allocations: 87.25 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5476/0.5476, allocations: 43.55 MB / 362.7 MB, free: 52.26 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005084/0.0005085, allocations: 16 kB / 431.5 MB, free: 6.078 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1304, allocations: 58.84 MB / 490.3 MB, free: 11.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5023/0.6328, allocations: 107.1 MB / 0.5834 GB, free: 11.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003794/0.6332, allocations: 83.95 kB / 0.5835 GB, free: 11.33 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.206/1.839, allocations: 199.4 MB / 0.7782 GB, free: 67.22 MB / 490.7 MB Notification: Performance of FrontEnd: time 4.108e-06/1.839, allocations: 3.719 kB / 0.7782 GB, free: 67.22 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005348/1.84, allocations: 193.4 kB / 0.7784 GB, free: 67.22 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3665 * Number of variables: 3665 Notification: Performance of Generate backend data structure: time 0.041/1.881, allocations: 10 MB / 0.7882 GB, free: 60.52 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/1.881, allocations: 12.03 kB / 0.7882 GB, free: 60.51 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0096/1.89, allocations: 1.821 MB / 0.79 GB, free: 58.68 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03592/1.926, allocations: 4.034 MB / 0.7939 GB, free: 54.62 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03663/1.963, allocations: 10.63 MB / 0.8043 GB, free: 43.91 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001076/1.964, allocations: 0.7981 MB / 0.8051 GB, free: 43.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006491/1.971, allocations: 1.043 MB / 0.8061 GB, free: 42.07 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08233/2.053, allocations: 24.41 MB / 0.8299 GB, free: 16.03 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007741/2.054, allocations: 95.16 kB / 0.83 GB, free: 15.94 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006059/2.06, allocations: 0.4918 MB / 0.8305 GB, free: 15.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005838/2.066, allocations: 2.275 MB / 0.8327 GB, free: 13.17 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0691/2.135, allocations: 19.52 MB / 0.8518 GB, free: 9.617 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5846/2.72, allocations: 94.25 MB / 0.9438 GB, free: 37.03 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03811/2.758, allocations: 7.729 MB / 0.9514 GB, free: 36.34 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04187/2.8, allocations: 13.31 MB / 0.9644 GB, free: 32.7 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.275e-05/2.8, allocations: 63.38 kB / 0.9644 GB, free: 32.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=336): time 8.195e-06/2.8, allocations: 0 / 0.9644 GB, free: 32.64 MB / 0.5105 GB Notification: Performance of matching and sorting (n=360): time 0.09908/2.899, allocations: 20.87 MB / 0.9848 GB, free: 24.14 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001038/2.899, allocations: 168.6 kB / 0.985 GB, free: 23.98 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02193/2.921, allocations: 6.611 MB / 0.9914 GB, free: 21.78 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008804/2.922, allocations: 78.45 kB / 0.9915 GB, free: 21.71 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005583/2.928, allocations: 6.564 MB / 0.9979 GB, free: 16.57 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002108/2.93, allocations: 1.357 MB / 0.9992 GB, free: 15.58 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001952/2.932, allocations: 220 kB / 0.9994 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001393/2.933, allocations: 0.7536 MB / 1 GB, free: 14.91 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01064/2.944, allocations: 3.224 MB / 1.003 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01507/2.959, allocations: 9.718 MB / 1.013 GB, free: 4.195 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01502/2.974, allocations: 5.407 MB / 1.018 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002197/2.974, allocations: 64.78 kB / 1.018 GB, free: 2.207 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1393) (initialization): time 0.03739/3.012, allocations: 12.4 MB / 1.03 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002014/3.012, allocations: 105 kB / 1.03 GB, free: 12.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004236/3.013, allocations: 232 kB / 1.031 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000489/3.013, allocations: 348 kB / 1.031 GB, free: 12.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01739/3.03, allocations: 2.622 MB / 1.033 GB, free: 10.08 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006175/3.031, allocations: 456.7 kB / 1.034 GB, free: 9.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0136/3.045, allocations: 0.6866 MB / 1.035 GB, free: 9.094 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00252/3.047, allocations: 0.6414 MB / 1.035 GB, free: 8.469 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1055 * Number of states: 0 () * Number of discrete variables: 72 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce1a.torqueColor[3],cutForce1a.torqueColor[2],cutForce1a.torqueColor[1],cutForce1a.forceColor[3],cutForce1a.forceColor[2],cutForce1a.forceColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1369): * Single equations (assignments): 1366 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01378/3.061, allocations: 4.53 MB / 1.04 GB, free: 4.512 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001954/3.063, allocations: 0.6672 MB / 1.04 GB, free: 3.836 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01442/3.078, allocations: 4.101 MB / 1.044 GB, free: 356 kB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.844e-05/3.078, allocations: 43.95 kB / 1.044 GB, free: 312 kB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.816e-05/3.078, allocations: 6.469 kB / 1.044 GB, free: 312 kB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.826e-05/3.078, allocations: 13.59 kB / 1.044 GB, free: 312 kB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5061/3.584, allocations: 41.73 MB / 1.085 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002876/3.584, allocations: 86.72 kB / 1.085 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005809/3.59, allocations: 0.8421 MB / 1.086 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002104/3.59, allocations: 125.1 kB / 1.086 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001081/3.591, allocations: 199.1 kB / 1.086 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001863/3.592, allocations: 171 kB / 1.086 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001065/3.592, allocations: 142 kB / 1.087 GB, free: 113.5 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01864/3.61, allocations: 25.25 MB / 1.111 GB, free: 89.81 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003176/3.614, allocations: 0.8391 MB / 1.112 GB, free: 89.72 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002848/3.616, allocations: 207.2 kB / 1.112 GB, free: 89.71 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007569/3.624, allocations: 269.5 kB / 1.113 GB, free: 89.71 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001621/3.626, allocations: 0.5643 MB / 1.113 GB, free: 89.65 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009463/3.627, allocations: 243.8 kB / 1.113 GB, free: 89.65 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01598/3.643, allocations: 4.664 MB / 1.118 GB, free: 89.43 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.41e-07/3.643, allocations: 0 / 1.118 GB, free: 89.43 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01686/3.66, allocations: 1.878 MB / 1.12 GB, free: 89.43 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 402 * Number of states: 0 () * 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 (444): * Single equations (assignments): 441 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02249/3.682, allocations: 40.94 MB / 1.16 GB, free: 50.98 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02011/3.702, allocations: 7.558 MB / 1.167 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.777e-05/3.703, allocations: 13.25 kB / 1.167 GB, free: 50.11 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005514/3.708, allocations: 2.172 MB / 1.169 GB, free: 49.82 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01013/3.718, allocations: 1.077 MB / 1.17 GB, free: 49.78 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6807/4.399, allocations: 237.7 MB / 1.402 GB, free: 48.89 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02956/4.429, allocations: 7.166 MB / 1.409 GB, free: 47.95 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01237/4.441, allocations: 4.859 MB / 1.414 GB, free: 47.94 MB / 0.5886 GB Notification: Performance of SimCode: time 2.846e-06/4.441, allocations: 3.094 kB / 1.414 GB, free: 47.94 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.449/10.89, allocations: 171.9 MB / 1.582 GB, free: 137.6 MB / 0.5886 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque2_res.mat does not exist to compare? outputFormat=mat