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.002458/0.002457, allocations: 181.5 kB / 8.365 MB, free: 0.7109 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.12/2.12, allocations: 205.3 MB / 214.1 MB, free: 14.08 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.001083/0.001083, allocations: 78.56 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2928/0.2928, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.184e-05/2.186e-05, allocations: 4.219 kB / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4169/0.4169, allocations: 58.85 MB / 477.2 MB, free: 5.285 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.199/0.616, allocations: 106.4 MB / 0.5699 GB, free: 8.879 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002968/0.6164, allocations: 75.97 kB / 0.5699 GB, free: 8.805 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.138/1.754, allocations: 194.8 MB / 0.7602 GB, free: 47.13 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.705e-06/1.754, allocations: 0 / 0.7602 GB, free: 47.13 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0005323/1.755, allocations: 199.9 kB / 0.7604 GB, free: 46.94 MB / 475.1 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.03819/1.793, allocations: 9.428 MB / 0.7696 GB, free: 37.41 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/1.793, allocations: 8.031 kB / 0.7696 GB, free: 37.41 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03547/1.828, allocations: 4.039 MB / 0.7735 GB, free: 33.35 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03767/1.866, allocations: 10.56 MB / 0.7839 GB, free: 22.7 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007829/1.867, allocations: 352 kB / 0.7842 GB, free: 22.36 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005956/1.873, allocations: 0.6092 MB / 0.7848 GB, free: 21.75 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03892/1.912, allocations: 14.55 MB / 0.799 GB, free: 7.191 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06657/1.978, allocations: 20.74 MB / 0.8192 GB, free: 0.832 MB / 491.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008367/1.979, allocations: 99.14 kB / 0.8193 GB, free: 0.7344 MB / 491.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00566/1.985, allocations: 59.89 kB / 0.8194 GB, free: 0.6758 MB / 491.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00685/1.992, allocations: 2.271 MB / 0.8216 GB, free: 14.4 MB / 0.4952 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.579/2.571, allocations: 93.9 MB / 0.9133 GB, free: 35.22 MB / 0.4952 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009576/2.581, allocations: 4.139 MB / 0.9174 GB, free: 34.55 MB / 0.4952 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004717/2.585, allocations: 1.932 MB / 0.9192 GB, free: 34.5 MB / 0.4952 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002998/2.586, allocations: 60.28 kB / 0.9193 GB, free: 34.49 MB / 0.4952 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.279e-05/2.586, allocations: 77.88 kB / 0.9194 GB, free: 34.45 MB / 0.4952 GB Notification: Performance of pre-optimization done (n=330): time 8.265e-06/2.586, allocations: 0 / 0.9194 GB, free: 34.45 MB / 0.4952 GB Notification: Performance of matching and sorting (n=342): time 0.0522/2.638, allocations: 14.9 MB / 0.9339 GB, free: 28.79 MB / 0.4952 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.329e-05/2.638, allocations: 168 kB / 0.9341 GB, free: 28.62 MB / 0.4952 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01359/2.652, allocations: 5.681 MB / 0.9396 GB, free: 27.86 MB / 0.4952 GB Notification: Performance of collectPreVariables (initialization): time 0.000808/2.653, allocations: 29.83 kB / 0.9397 GB, free: 27.83 MB / 0.4952 GB Notification: Performance of collectInitialEqns (initialization): time 0.005571/2.658, allocations: 6.794 MB / 0.9463 GB, free: 22.76 MB / 0.4952 GB Notification: Performance of collectInitialBindings (initialization): time 0.002041/2.66, allocations: 1.259 MB / 0.9475 GB, free: 21.83 MB / 0.4952 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001211/2.662, allocations: 3.5 kB / 0.9475 GB, free: 21.83 MB / 0.4952 GB Notification: Performance of setup shared object (initialization): time 0.0007244/2.662, allocations: 0.7778 MB / 0.9483 GB, free: 21.32 MB / 0.4952 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007354/2.67, allocations: 2.869 MB / 0.9511 GB, free: 20.3 MB / 0.4952 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01263/2.682, allocations: 9.649 MB / 0.9605 GB, free: 10.09 MB / 0.4952 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01221/2.695, allocations: 5.154 MB / 0.9655 GB, free: 8.469 MB / 0.4952 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002963/2.695, allocations: 70.47 kB / 0.9656 GB, free: 8.469 MB / 0.4952 GB Notification: Performance of matching and sorting (n=1447) (initialization): time 0.03124/2.726, allocations: 10.87 MB / 0.9762 GB, free: 4.918 MB / 0.4952 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001906/2.727, allocations: 108.1 kB / 0.9763 GB, free: 4.918 MB / 0.4952 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003726/2.727, allocations: 245.3 kB / 0.9766 GB, free: 4.918 MB / 0.4952 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000438/2.727, allocations: 356.7 kB / 0.9769 GB, free: 4.918 MB / 0.4952 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01772/2.745, allocations: 2.719 MB / 0.9796 GB, free: 4.586 MB / 0.4952 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004472/2.746, allocations: 479.2 kB / 0.98 GB, free: 4.484 MB / 0.4952 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01391/2.759, allocations: 0.4889 MB / 0.9805 GB, free: 4.457 MB / 0.4952 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002805/2.762, allocations: 0.6637 MB / 0.9811 GB, free: 4.371 MB / 0.4952 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1115 * 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 (1423): * Single equations (assignments): 1420 * 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.004073/2.766, allocations: 0.7194 MB / 0.9818 GB, free: 3.781 MB / 0.4952 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01033/2.777, allocations: 3.706 MB / 0.9855 GB, free: 0.8359 MB / 0.4952 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002157/2.779, allocations: 0.6209 MB / 0.9861 GB, free: 212 kB / 0.4952 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/2.796, allocations: 3.743 MB / 0.9897 GB, free: 13.68 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001064/2.796, allocations: 36 kB / 0.9898 GB, free: 13.64 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.708e-05/2.796, allocations: 0 / 0.9898 GB, free: 13.64 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001108/2.796, allocations: 16.94 kB / 0.9898 GB, free: 13.64 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09392/2.89, allocations: 36.94 MB / 1.026 GB, free: 13.61 MB / 0.5421 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003334/2.89, allocations: 84 kB / 1.026 GB, free: 13.53 MB / 0.5421 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005871/2.896, allocations: 0.8081 MB / 1.027 GB, free: 12.82 MB / 0.5421 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002096/2.896, allocations: 122.7 kB / 1.027 GB, free: 12.7 MB / 0.5421 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009048/2.897, allocations: 131.2 kB / 1.027 GB, free: 12.58 MB / 0.5421 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001778/2.898, allocations: 160.7 kB / 1.027 GB, free: 12.44 MB / 0.5421 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001348/2.898, allocations: 131.4 kB / 1.027 GB, free: 12.31 MB / 0.5421 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4284/3.326, allocations: 22.49 MB / 1.049 GB, free: 108.2 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002656/3.329, allocations: 0.7609 MB / 1.05 GB, free: 108.1 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002524/3.331, allocations: 125.9 kB / 1.05 GB, free: 108.1 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006897/3.338, allocations: 194.9 kB / 1.05 GB, free: 108.1 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001461/3.34, allocations: 0.5456 MB / 1.051 GB, free: 108 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007037/3.341, allocations: 230.8 kB / 1.051 GB, free: 108 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01167/3.352, allocations: 3.789 MB / 1.055 GB, free: 107.8 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.082e-06/3.352, allocations: 0 / 1.055 GB, free: 107.8 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01689/3.369, allocations: 1.6 MB / 1.056 GB, free: 107.8 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 378 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (426): * Single equations (assignments): 423 * 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.02161/3.391, allocations: 38.24 MB / 1.094 GB, free: 71.72 MB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.01887/3.41, allocations: 6.742 MB / 1.1 GB, free: 71.68 MB / 0.5421 GB Notification: Performance of simCode: created event and clocks part: time 7.613e-05/3.41, allocations: 18.91 kB / 1.1 GB, free: 71.68 MB / 0.5421 GB Notification: Performance of simCode: created simulation system equations: time 0.00487/3.415, allocations: 1.889 MB / 1.102 GB, free: 71.68 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008847/3.424, allocations: 0.8477 MB / 1.103 GB, free: 71.65 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07097/3.495, allocations: 22.11 MB / 1.124 GB, free: 65.05 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01937/3.514, allocations: 7.131 MB / 1.131 GB, free: 64.1 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0112/3.525, allocations: 4.829 MB / 1.136 GB, free: 64.09 MB / 0.5421 GB Notification: Performance of SimCode: time 1.483e-06/3.526, allocations: 4.953 kB / 1.136 GB, free: 64.09 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.902/9.428, allocations: 167.8 MB / 1.3 GB, free: 105.9 MB / 0.5577 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