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.002176/0.002176, allocations: 185.4 kB / 16.41 MB, free: 5.727 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.175/2.175, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001153/0.001153, allocations: 93.28 kB / 270.9 MB, free: 8.375 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.6859/0.6859, allocations: 43.55 MB / 362.7 MB, free: 52.17 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004677/0.0004676, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1278, allocations: 58.84 MB / 490.3 MB, free: 11.14 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4992/0.6271, allocations: 105.1 MB / 0.5815 GB, free: 13.41 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.6275, allocations: 83.94 kB / 0.5815 GB, free: 13.32 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.039/1.666, allocations: 166.2 MB / 0.7439 GB, free: 82.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.666, allocations: 4 kB / 0.7439 GB, free: 82.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005191/1.667, allocations: 160.1 kB / 0.744 GB, free: 82.45 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: 2935 * Number of variables: 2935 Notification: Performance of Generate backend data structure: time 0.0357/1.703, allocations: 8.535 MB / 0.7524 GB, free: 78.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/1.703, allocations: 10.72 kB / 0.7524 GB, free: 78.3 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007635/1.71, allocations: 1.463 MB / 0.7538 GB, free: 77.61 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/1.743, allocations: 3.671 MB / 0.7574 GB, free: 76.96 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03424/1.777, allocations: 9.753 MB / 0.7669 GB, free: 73.52 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009484/1.778, allocations: 0.6265 MB / 0.7675 GB, free: 73.27 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005152/1.783, allocations: 0.83 MB / 0.7683 GB, free: 73.04 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0658/1.849, allocations: 19.68 MB / 0.7875 GB, free: 59.15 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006705/1.85, allocations: 99.44 kB / 0.7876 GB, free: 59.05 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004738/1.855, allocations: 403.8 kB / 0.788 GB, free: 58.71 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004878/1.859, allocations: 1.875 MB / 0.7898 GB, free: 56.84 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05189/1.911, allocations: 15.52 MB / 0.805 GB, free: 41.3 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5682/2.48, allocations: 81.63 MB / 0.8847 GB, free: 53.06 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.028/2.508, allocations: 5.986 MB / 0.8906 GB, free: 52.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03455/2.542, allocations: 11.33 MB / 0.9016 GB, free: 49.23 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.846e-05/2.543, allocations: 63.98 kB / 0.9017 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=250): time 6.532e-06/2.543, allocations: 0 / 0.9017 GB, free: 49.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=274): time 0.09336/2.636, allocations: 16.61 MB / 0.9179 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.54e-05/2.636, allocations: 155.9 kB / 0.9181 GB, free: 44 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02051/2.657, allocations: 6.047 MB / 0.924 GB, free: 43.39 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0006715/2.657, allocations: 64.02 kB / 0.924 GB, free: 43.36 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.005929/2.663, allocations: 5.585 MB / 0.9295 GB, free: 40.12 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001792/2.665, allocations: 1.061 MB / 0.9305 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001322/2.666, allocations: 180.2 kB / 0.9307 GB, free: 39.52 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0009529/2.667, allocations: 0.692 MB / 0.9314 GB, free: 39.19 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009596/2.677, allocations: 2.69 MB / 0.934 GB, free: 39.17 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01334/2.69, allocations: 8.473 MB / 0.9423 GB, free: 31.32 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01255/2.703, allocations: 4.611 MB / 0.9468 GB, free: 29.89 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002376/2.703, allocations: 59.97 kB / 0.9468 GB, free: 29.89 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1195) (initialization): time 0.0321/2.735, allocations: 10.62 MB / 0.9572 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001688/2.736, allocations: 92.94 kB / 0.9573 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004386/2.736, allocations: 206.7 kB / 0.9575 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003462/2.736, allocations: 302.2 kB / 0.9578 GB, free: 26.79 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01455/2.751, allocations: 2.252 MB / 0.96 GB, free: 26.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000443/2.752, allocations: 408.4 kB / 0.9604 GB, free: 26.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01259/2.764, allocations: 0.6178 MB / 0.961 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002275/2.766, allocations: 0.5554 MB / 0.9615 GB, free: 26.18 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 () * Number of clocked 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.01123/2.778, allocations: 3.754 MB / 0.9652 GB, free: 24.49 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001631/2.779, allocations: 0.5979 MB / 0.9658 GB, free: 24.16 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009555/2.789, allocations: 2.998 MB / 0.9687 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.274e-05/2.789, allocations: 29.66 kB / 0.9687 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.677e-05/2.789, allocations: 0 / 0.9687 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.001e-05/2.789, allocations: 13.92 kB / 0.9687 GB, free: 22.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0601/2.849, allocations: 24.83 MB / 0.993 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000179/2.849, allocations: 62.59 kB / 0.993 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004204/2.854, allocations: 0.5988 MB / 0.9936 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001098/2.854, allocations: 92.27 kB / 0.9937 GB, free: 13.26 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006568/2.855, allocations: 136 kB / 0.9938 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001055/2.855, allocations: 115.6 kB / 0.9939 GB, free: 13.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.362e-05/2.855, allocations: 103.5 kB / 0.994 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01872/2.873, allocations: 16.96 MB / 1.011 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00302/2.877, allocations: 0.7167 MB / 1.011 GB, free: 10.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002412/2.879, allocations: 150.5 kB / 1.011 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01006/2.889, allocations: 208.5 kB / 1.012 GB, free: 9.98 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001673/2.891, allocations: 410.3 kB / 1.012 GB, free: 9.652 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001333/2.892, allocations: 171.8 kB / 1.012 GB, free: 9.488 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0156/2.908, allocations: 4.287 MB / 1.016 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.71e-07/2.908, allocations: 0 / 1.016 GB, free: 6.02 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01363/2.922, allocations: 1.56 MB / 1.018 GB, free: 4.469 MB / 0.5261 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 () * Number of clocked 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.02432/2.946, allocations: 28.95 MB / 1.046 GB, free: 5.824 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.01961/2.966, allocations: 6.253 MB / 1.052 GB, free: 372 kB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 5.66e-05/2.966, allocations: 11 kB / 1.052 GB, free: 364 kB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.005307/2.971, allocations: 1.636 MB / 1.054 GB, free: 15.02 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008573/2.98, allocations: 0.9077 MB / 1.055 GB, free: 14.27 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6232/3.603, allocations: 207.7 MB / 1.258 GB, free: 28.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03133/3.634, allocations: 5.969 MB / 1.263 GB, free: 27.68 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01499/3.65, allocations: 3.933 MB / 1.267 GB, free: 27.67 MB / 0.6042 GB Notification: Performance of SimCode: time 1.222e-06/3.65, allocations: 0 / 1.267 GB, free: 27.67 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.703/9.353, allocations: 143.9 MB / 1.408 GB, free: 166.7 MB / 0.6042 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