Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.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.CutForceAndTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutForceAndTorque1,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1",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.002211/0.002211, allocations: 184.6 kB / 16.41 MB, free: 5.703 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.085/2.085, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001127/0.001126, allocations: 81.89 kB / 270.9 MB, free: 8.391 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.518/0.518, allocations: 43.55 MB / 362.7 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005165/0.0005164, allocations: 8 kB / 431.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.1322, allocations: 58.85 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4985/0.6308, allocations: 107.1 MB / 0.5834 GB, free: 11.55 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003093/0.6312, allocations: 83.95 kB / 0.5835 GB, free: 11.47 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.315/1.946, allocations: 200.6 MB / 0.7794 GB, free: 65.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.377e-06/1.946, allocations: 0 / 0.7794 GB, free: 65.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005934/1.947, allocations: 195.8 kB / 0.7796 GB, free: 65.34 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.04043/1.988, allocations: 9.997 MB / 0.7894 GB, free: 58.35 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/1.988, allocations: 12.03 kB / 0.7894 GB, free: 58.34 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009153/1.997, allocations: 1.821 MB / 0.7911 GB, free: 56.5 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0355/2.032, allocations: 4.038 MB / 0.7951 GB, free: 52.44 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03514/2.068, allocations: 10.63 MB / 0.8055 GB, free: 41.74 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001057/2.069, allocations: 0.7864 MB / 0.8062 GB, free: 40.95 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006074/2.075, allocations: 1.043 MB / 0.8073 GB, free: 39.91 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0791/2.154, allocations: 24.42 MB / 0.8311 GB, free: 13.87 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00077/2.155, allocations: 91.16 kB / 0.8312 GB, free: 13.78 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005769/2.161, allocations: 499.7 kB / 0.8317 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005735/2.166, allocations: 2.283 MB / 0.8339 GB, free: 11 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06993/2.236, allocations: 19.54 MB / 0.853 GB, free: 7.434 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5983/2.835, allocations: 94.23 MB / 0.945 GB, free: 36.11 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03859/2.873, allocations: 7.652 MB / 0.9525 GB, free: 35.42 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04374/2.917, allocations: 13.31 MB / 0.9655 GB, free: 31.19 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.257e-05/2.917, allocations: 74.22 kB / 0.9655 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=336): time 8.035e-06/2.917, allocations: 0 / 0.9655 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of matching and sorting (n=360): time 0.0957/3.013, allocations: 20.85 MB / 0.9859 GB, free: 22.64 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/3.013, allocations: 167.9 kB / 0.9861 GB, free: 22.48 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01884/3.032, allocations: 6.618 MB / 0.9925 GB, free: 20.22 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000904/3.033, allocations: 84.78 kB / 0.9926 GB, free: 20.15 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005721/3.039, allocations: 6.555 MB / 0.999 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00216/3.041, allocations: 1.35 MB / 1 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001521/3.042, allocations: 218.9 kB / 1.001 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.001036/3.043, allocations: 0.7566 MB / 1.001 GB, free: 13.36 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01104/3.055, allocations: 3.22 MB / 1.004 GB, free: 12.38 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0168/3.071, allocations: 9.72 MB / 1.014 GB, free: 2.648 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01607/3.088, allocations: 5.408 MB / 1.019 GB, free: 0.6484 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002532/3.088, allocations: 67.88 kB / 1.019 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1393) (initialization): time 0.04084/3.129, allocations: 12.42 MB / 1.031 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002345/3.129, allocations: 104 kB / 1.031 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005428/3.13, allocations: 235.9 kB / 1.032 GB, free: 10.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005128/3.13, allocations: 340 kB / 1.032 GB, free: 10.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01838/3.148, allocations: 2.622 MB / 1.035 GB, free: 8.184 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006923/3.149, allocations: 455.7 kB / 1.035 GB, free: 7.785 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01422/3.163, allocations: 0.682 MB / 1.036 GB, free: 7.203 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002918/3.166, allocations: 0.6429 MB / 1.036 GB, free: 6.574 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 (body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutForce2b.torqueColor[3],cutForce2b.torqueColor[2],cutForce2b.torqueColor[1],cutForce2b.forceColor[3],cutForce2b.forceColor[2],cutForce2b.forceColor[1],cutForce2a.torqueColor[3],cutForce2a.torqueColor[2],cutForce2a.torqueColor[1],cutForce2a.forceColor[3],cutForce2a.forceColor[2],cutForce2a.forceColor[1],cutForce1b.torqueColor[3],cutForce1b.torqueColor[2],cutForce1b.torqueColor[1],cutForce1b.forceColor[3],cutForce1b.forceColor[2],cutForce1b.forceColor[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.01492/3.181, allocations: 4.52 MB / 1.041 GB, free: 2.625 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001996/3.183, allocations: 0.6672 MB / 1.041 GB, free: 1.949 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01645/3.2, allocations: 4.118 MB / 1.045 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9e-05/3.2, allocations: 41.02 kB / 1.045 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.696e-05/3.2, allocations: 0 / 1.045 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.363e-05/3.2, allocations: 14.86 kB / 1.045 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5406/3.741, allocations: 50.15 MB / 1.094 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003424/3.741, allocations: 72.28 kB / 1.095 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006074/3.747, allocations: 0.743 MB / 1.095 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/3.748, allocations: 108.3 kB / 1.095 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009776/3.748, allocations: 163.6 kB / 1.095 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002077/3.749, allocations: 143.3 kB / 1.096 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001194/3.749, allocations: 112.6 kB / 1.096 GB, free: 112.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01977/3.769, allocations: 21.54 MB / 1.117 GB, free: 92.98 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003144/3.772, allocations: 0.7961 MB / 1.118 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002814/3.775, allocations: 166.5 kB / 1.118 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00796/3.783, allocations: 275.6 kB / 1.118 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001532/3.784, allocations: 486.6 kB / 1.118 GB, free: 92.82 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007098/3.785, allocations: 209 kB / 1.119 GB, free: 92.82 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01514/3.8, allocations: 4.663 MB / 1.123 GB, free: 92.61 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.002e-06/3.8, allocations: 0 / 1.123 GB, free: 92.61 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01553/3.816, allocations: 1.881 MB / 1.125 GB, free: 92.61 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 330 * 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 (376): * Single equations (assignments): 373 * 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.02237/3.838, allocations: 34.51 MB / 1.159 GB, free: 60.72 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.02142/3.86, allocations: 7.584 MB / 1.166 GB, free: 58.31 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 8.09e-05/3.86, allocations: 10.34 kB / 1.166 GB, free: 58.31 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.005976/3.866, allocations: 2.127 MB / 1.168 GB, free: 57.59 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009452/3.875, allocations: 1.034 MB / 1.169 GB, free: 57.23 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6736/4.549, allocations: 237.2 MB / 1.401 GB, free: 23.64 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02181/4.571, allocations: 7.138 MB / 1.408 GB, free: 22.7 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01257/4.583, allocations: 4.861 MB / 1.413 GB, free: 22.69 MB / 0.573 GB Notification: Performance of SimCode: time 1.342e-06/4.583, allocations: 0 / 1.413 GB, free: 22.69 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.233/10.82, allocations: 172.9 MB / 1.581 GB, free: 116.2 MB / 0.573 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutForceAndTorque1.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutForceAndTorque1_res.mat does not exist to compare? outputFormat=mat