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.002064/0.002063, allocations: 181.1 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.315/2.315, 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.001647/0.001647, allocations: 94.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2865/0.2865, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.704e-05/3.731e-05, allocations: 11.97 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1315, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5157/0.6473, allocations: 107 MB / 0.5774 GB, free: 12.78 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002877/0.6477, allocations: 82.36 kB / 0.5775 GB, free: 12.74 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.195/1.843, allocations: 199.6 MB / 0.7724 GB, free: 90.93 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.816e-06/1.843, allocations: 7 kB / 0.7724 GB, free: 90.92 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005659/1.844, allocations: 192.9 kB / 0.7726 GB, free: 90.92 MB / 0.4948 GB 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.03767/1.881, allocations: 9.436 MB / 0.7818 GB, free: 87.21 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/1.881, allocations: 10.77 kB / 0.7818 GB, free: 87.21 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008301/1.89, allocations: 1.812 MB / 0.7836 GB, free: 87.08 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03599/1.926, allocations: 4.036 MB / 0.7875 GB, free: 86.37 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03646/1.962, allocations: 10.57 MB / 0.7979 GB, free: 85.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001112/1.963, allocations: 0.7951 MB / 0.7986 GB, free: 85.15 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006278/1.97, allocations: 1.04 MB / 0.7997 GB, free: 84.86 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07899/2.049, allocations: 24.09 MB / 0.8232 GB, free: 67.03 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007482/2.05, allocations: 99 kB / 0.8233 GB, free: 66.93 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005782/2.055, allocations: 492.4 kB / 0.8237 GB, free: 66.52 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005744/2.061, allocations: 2.28 MB / 0.826 GB, free: 64.23 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06339/2.125, allocations: 18.98 MB / 0.8445 GB, free: 45.25 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6/2.725, allocations: 94.25 MB / 0.9365 GB, free: 54.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03653/2.761, allocations: 7.608 MB / 0.944 GB, free: 53.58 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008036/2.769, allocations: 3.04 MB / 0.9469 GB, free: 53.52 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04232/2.812, allocations: 13.3 MB / 0.9599 GB, free: 50.28 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.022e-05/2.812, allocations: 73.05 kB / 0.96 GB, free: 50.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=336): time 7.234e-06/2.812, allocations: 0 / 0.96 GB, free: 50.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=360): time 0.08669/2.899, allocations: 18.79 MB / 0.9784 GB, free: 44.52 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.59e-05/2.899, allocations: 169.9 kB / 0.9785 GB, free: 44.36 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0169/2.916, allocations: 6.422 MB / 0.9848 GB, free: 43.8 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007976/2.917, allocations: 86.83 kB / 0.9849 GB, free: 43.77 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005623/2.922, allocations: 6.561 MB / 0.9913 GB, free: 39.94 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002064/2.924, allocations: 1.354 MB / 0.9926 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001453/2.926, allocations: 216.8 kB / 0.9928 GB, free: 39.16 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0009802/2.927, allocations: 0.764 MB / 0.9935 GB, free: 38.83 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008247/2.935, allocations: 2.988 MB / 0.9965 GB, free: 38.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01283/2.948, allocations: 9.49 MB / 1.006 GB, free: 30.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01266/2.961, allocations: 5.246 MB / 1.011 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003077/2.961, allocations: 65.66 kB / 1.011 GB, free: 29.11 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1393) (initialization): time 0.03223/2.993, allocations: 11.94 MB / 1.023 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001935/2.994, allocations: 101.6 kB / 1.023 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004142/2.994, allocations: 232.9 kB / 1.023 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004193/2.994, allocations: 341.8 kB / 1.023 GB, free: 25.73 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01723/3.012, allocations: 2.624 MB / 1.026 GB, free: 25.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005202/3.012, allocations: 456.5 kB / 1.026 GB, free: 25.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01411/3.026, allocations: 0.6839 MB / 1.027 GB, free: 25.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002718/3.029, allocations: 0.6357 MB / 1.028 GB, free: 25.04 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 () * 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.004603/3.034, allocations: 0.948 MB / 1.028 GB, free: 24.27 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001883/3.036, allocations: 0.6643 MB / 1.029 GB, free: 23.91 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01258/3.048, allocations: 3.995 MB / 1.033 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.907e-05/3.048, allocations: 37.81 kB / 1.033 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/3.048, allocations: 2.75 kB / 1.033 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.93e-05/3.049, allocations: 26.2 kB / 1.033 GB, free: 22.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1007/3.149, allocations: 41.71 MB / 1.074 GB, free: 6.844 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003265/3.15, allocations: 91.44 kB / 1.074 GB, free: 6.758 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006213/3.156, allocations: 0.8427 MB / 1.075 GB, free: 6.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002217/3.156, allocations: 128 kB / 1.075 GB, free: 5.895 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009728/3.157, allocations: 196.2 kB / 1.075 GB, free: 5.711 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001952/3.157, allocations: 176.5 kB / 1.075 GB, free: 5.555 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00014/3.158, allocations: 135.4 kB / 1.075 GB, free: 5.422 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02529/3.183, allocations: 25.15 MB / 1.1 GB, free: 9.008 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003469/3.186, allocations: 0.8394 MB / 1.101 GB, free: 8.184 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002842/3.189, allocations: 212 kB / 1.101 GB, free: 8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007534/3.197, allocations: 270.2 kB / 1.101 GB, free: 7.781 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001697/3.199, allocations: 0.5618 MB / 1.102 GB, free: 7.32 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0011/3.2, allocations: 246.8 kB / 1.102 GB, free: 7.086 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01456/3.214, allocations: 4.476 MB / 1.106 GB, free: 3.172 MB / 0.573 GB Notification: Performance of sort global known variables: time 1.002e-06/3.214, allocations: 0 / 1.106 GB, free: 3.172 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.01602/3.23, allocations: 1.88 MB / 1.108 GB, free: 1.301 MB / 0.573 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 () * 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.4387/3.669, allocations: 40.81 MB / 1.148 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.01989/3.689, allocations: 7.28 MB / 1.155 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 7.8e-05/3.689, allocations: 13.5 kB / 1.155 GB, free: 137.9 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.005673/3.695, allocations: 2.122 MB / 1.157 GB, free: 137.8 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009833/3.705, allocations: 1.084 MB / 1.158 GB, free: 137.8 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07697/3.782, allocations: 22.91 MB / 1.181 GB, free: 130.9 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01947/3.801, allocations: 7.169 MB / 1.188 GB, free: 130 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01164/3.813, allocations: 4.855 MB / 1.192 GB, free: 130 MB / 0.5886 GB Notification: Performance of SimCode: time 3.096e-06/3.813, allocations: 0 / 1.192 GB, free: 130 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.319/10.13, allocations: 173.2 MB / 1.361 GB, free: 150.5 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