Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.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.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque",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.002388/0.002388, allocations: 181.7 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.406/2.406, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001123/0.001122, allocations: 82.66 kB / 267.5 MB, free: 14.05 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.2894/0.2894, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.454e-05/3.459e-05, allocations: 8 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.525/0.643, allocations: 105 MB / 0.5754 GB, free: 14.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002753/0.6433, allocations: 81.67 kB / 0.5755 GB, free: 14.39 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.183/1.826, allocations: 166.4 MB / 0.738 GB, free: 92.96 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.355e-06/1.826, allocations: 0 / 0.738 GB, free: 92.96 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004896/1.827, allocations: 158.1 kB / 0.7382 GB, free: 92.96 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: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.03185/1.859, allocations: 7.985 MB / 0.746 GB, free: 89.87 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/1.859, allocations: 10.66 kB / 0.746 GB, free: 89.87 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007048/1.866, allocations: 1.454 MB / 0.7474 GB, free: 89.76 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.032/1.898, allocations: 3.675 MB / 0.751 GB, free: 89.19 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0339/1.932, allocations: 9.703 MB / 0.7604 GB, free: 88.18 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008757/1.933, allocations: 0.6315 MB / 0.7611 GB, free: 88.16 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004779/1.937, allocations: 0.8308 MB / 0.7619 GB, free: 88.16 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06075/1.998, allocations: 19.39 MB / 0.7808 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005974/1.999, allocations: 88.81 kB / 0.7809 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004556/2.003, allocations: 402.5 kB / 0.7813 GB, free: 83.84 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00527/2.009, allocations: 1.867 MB / 0.7831 GB, free: 83.8 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04804/2.057, allocations: 15.05 MB / 0.7978 GB, free: 79.32 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1729/2.23, allocations: 81.65 MB / 0.8775 GB, free: 6.449 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03808/2.268, allocations: 5.928 MB / 0.8833 GB, free: 1.473 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009473/2.277, allocations: 2.486 MB / 0.8858 GB, free: 15.09 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04767/2.325, allocations: 11.33 MB / 0.8968 GB, free: 3.363 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.214e-05/2.325, allocations: 60.56 kB / 0.8969 GB, free: 3.297 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=250): time 7.564e-06/2.325, allocations: 0 / 0.8969 GB, free: 3.297 MB / 0.5105 GB Notification: Performance of matching and sorting (n=274): time 0.5453/2.871, allocations: 15 MB / 0.9115 GB, free: 97.21 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/2.871, allocations: 158 kB / 0.9117 GB, free: 97.05 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02749/2.898, allocations: 5.863 MB / 0.9174 GB, free: 96.53 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007996/2.899, allocations: 65.64 kB / 0.9175 GB, free: 96.5 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.007629/2.907, allocations: 5.582 MB / 0.9229 GB, free: 93.76 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.00239/2.909, allocations: 1.053 MB / 0.9239 GB, free: 93.17 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001823/2.911, allocations: 183 kB / 0.9241 GB, free: 93.17 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0014/2.913, allocations: 0.6979 MB / 0.9248 GB, free: 92.84 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01052/2.923, allocations: 2.486 MB / 0.9272 GB, free: 92.81 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01597/2.939, allocations: 8.269 MB / 0.9353 GB, free: 85.31 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01522/2.955, allocations: 4.475 MB / 0.9397 GB, free: 85.27 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003222/2.955, allocations: 61.16 kB / 0.9397 GB, free: 85.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.0394/2.994, allocations: 10.21 MB / 0.9497 GB, free: 84.54 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002539/2.995, allocations: 93.09 kB / 0.9498 GB, free: 84.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004395/2.995, allocations: 206.2 kB / 0.95 GB, free: 84.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005094/2.996, allocations: 300.2 kB / 0.9503 GB, free: 84.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01904/3.015, allocations: 2.259 MB / 0.9525 GB, free: 84.34 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007743/3.016, allocations: 398.8 kB / 0.9529 GB, free: 84.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02011/3.036, allocations: 0.6241 MB / 0.9535 GB, free: 84.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002921/3.039, allocations: 0.5514 MB / 0.954 GB, free: 84.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 943 * Number of states: 0 () * Number of discrete variables: 60 (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],cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[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],cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[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],cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1171): * Single equations (assignments): 1168 * 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.005043/3.044, allocations: 0.8414 MB / 0.9548 GB, free: 83.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002625/3.047, allocations: 0.5903 MB / 0.9554 GB, free: 83.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/3.06, allocations: 2.922 MB / 0.9583 GB, free: 83.31 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.999e-05/3.06, allocations: 31.42 kB / 0.9583 GB, free: 83.31 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.447e-05/3.06, allocations: 3.375 kB / 0.9583 GB, free: 83.31 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-05/3.06, allocations: 14.16 kB / 0.9583 GB, free: 83.31 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06193/3.122, allocations: 24.78 MB / 0.9825 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001105/3.122, allocations: 63.5 kB / 0.9826 GB, free: 75.66 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003949/3.126, allocations: 0.5903 MB / 0.9831 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001077/3.126, allocations: 93 kB / 0.9832 GB, free: 75.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004225/3.127, allocations: 135.8 kB / 0.9834 GB, free: 75.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.946e-05/3.127, allocations: 119.5 kB / 0.9835 GB, free: 75.53 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.299e-05/3.127, allocations: 98.67 kB / 0.9836 GB, free: 75.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01276/3.14, allocations: 16.9 MB / 1 GB, free: 58.45 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003001/3.143, allocations: 0.7189 MB / 1.001 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002399/3.145, allocations: 143 kB / 1.001 GB, free: 57.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006241/3.152, allocations: 214.3 kB / 1.001 GB, free: 57.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/3.153, allocations: 412.5 kB / 1.002 GB, free: 57.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003836/3.153, allocations: 172.6 kB / 1.002 GB, free: 57.68 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01148/3.165, allocations: 4.107 MB / 1.006 GB, free: 56.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.022e-06/3.165, allocations: 0 / 1.006 GB, free: 56.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01327/3.178, allocations: 1.554 MB / 1.007 GB, free: 56.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (318): * Single equations (assignments): 315 * 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.01602/3.194, allocations: 28.87 MB / 1.035 GB, free: 27.41 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01488/3.209, allocations: 6.025 MB / 1.041 GB, free: 24.91 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.735e-05/3.209, allocations: 8 kB / 1.041 GB, free: 24.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003789/3.213, allocations: 1.591 MB / 1.043 GB, free: 23.47 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008732/3.222, allocations: 0.903 MB / 1.044 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06044/3.282, allocations: 18.42 MB / 1.062 GB, free: 5.715 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01521/3.297, allocations: 5.964 MB / 1.068 GB, free: 1.367 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01928/3.317, allocations: 4.507 MB / 1.072 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of SimCode: time 1.713e-06/3.317, allocations: 6.406 kB / 1.072 GB, free: 15.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.547/8.864, allocations: 144.6 MB / 1.213 GB, free: 54.26 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat does not exist to compare? outputFormat=mat