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.002442/0.002447, allocations: 182.8 kB / 16.4 MB, free: 5.75 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.093/2.093, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.001214/0.001213, allocations: 101.5 kB / 270.9 MB, free: 8.355 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.5498/0.5498, allocations: 43.56 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007489/0.0007492, allocations: 12 kB / 431.5 MB, free: 6.066 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.134, allocations: 58.84 MB / 490.3 MB, free: 11.13 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque): time 0.44/0.5741, allocations: 87.39 MB / 0.5642 GB, free: 4.34 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.06239/0.6365, allocations: 19.32 MB / 0.583 GB, free: 7.199 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02256/0.6592, allocations: 445.7 kB / 0.5834 GB, free: 7.133 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01884/0.6781, allocations: 4.419 MB / 0.5878 GB, free: 5.445 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.05688/0.735, allocations: 12.48 MB / 0.6 GB, free: 10.08 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008829/0.7439, allocations: 1.245 MB / 0.6012 GB, free: 8.84 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.01352/0.7574, allocations: 4.675 MB / 0.6057 GB, free: 4.168 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02079/0.7783, allocations: 9.223 MB / 0.6147 GB, free: 10.89 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00613/0.7844, allocations: 2.138 MB / 0.6168 GB, free: 8.75 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006678/0.7912, allocations: 2.765 MB / 0.6195 GB, free: 5.977 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0022/0.7934, allocations: 296 kB / 0.6198 GB, free: 5.688 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004517/0.798, allocations: 0.952 MB / 0.6207 GB, free: 4.734 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.006388/0.8044, allocations: 3.23 MB / 0.6239 GB, free: 1.496 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003672/0.8082, allocations: 1.606 MB / 0.6255 GB, free: 15.88 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01858/0.8268, allocations: 10.45 MB / 0.6357 GB, free: 5.398 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.8269, allocations: 7.938 kB / 0.6357 GB, free: 5.391 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.895e-06/0.8269, allocations: 0 / 0.6357 GB, free: 5.391 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005389/0.8274, allocations: 0 / 0.6357 GB, free: 5.391 MB / 458.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.02946/0.8569, allocations: 8.168 MB / 0.6437 GB, free: 13.13 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.598e-05/0.857, allocations: 16.03 kB / 0.6437 GB, free: 13.12 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006299/0.8633, allocations: 1.369 MB / 0.645 GB, free: 11.73 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0236/0.887, allocations: 3.128 MB / 0.6481 GB, free: 8.59 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0183/0.9053, allocations: 5.744 MB / 0.6537 GB, free: 2.77 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007407/0.9061, allocations: 488 kB / 0.6541 GB, free: 2.289 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002948/0.9091, allocations: 0.6051 MB / 0.6547 GB, free: 1.684 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6924/1.602, allocations: 19.62 MB / 0.6739 GB, free: 128.1 MB / 490.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000487/1.602, allocations: 75.59 kB / 0.674 GB, free: 128.1 MB / 490.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002664/1.605, allocations: 297.5 kB / 0.6742 GB, free: 128.1 MB / 490.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01005/1.615, allocations: 3.641 MB / 0.6778 GB, free: 128.1 MB / 490.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05073/1.666, allocations: 15.31 MB / 0.6928 GB, free: 124.3 MB / 490.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1397/1.805, allocations: 73.32 MB / 0.7644 GB, free: 72.55 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02774/1.833, allocations: 6.115 MB / 0.7703 GB, free: 67.98 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03434/1.868, allocations: 11.32 MB / 0.7814 GB, free: 56.28 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.036e-05/1.868, allocations: 67.78 kB / 0.7815 GB, free: 56.21 MB / 490.8 MB Notification: Performance of pre-optimization done (n=250): time 6.923e-06/1.868, allocations: 0 / 0.7815 GB, free: 56.21 MB / 490.8 MB Notification: Performance of matching and sorting (n=274): time 0.07317/1.941, allocations: 16.89 MB / 0.7979 GB, free: 39.3 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/1.941, allocations: 154.5 kB / 0.7981 GB, free: 39.12 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01486/1.956, allocations: 7.224 MB / 0.8051 GB, free: 31.91 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006053/1.957, allocations: 67.73 kB / 0.8052 GB, free: 31.84 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004358/1.961, allocations: 5.525 MB / 0.8106 GB, free: 26.32 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00145/1.963, allocations: 1.063 MB / 0.8116 GB, free: 25.26 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009948/1.964, allocations: 180 kB / 0.8118 GB, free: 25.09 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0008018/1.964, allocations: 0.7079 MB / 0.8125 GB, free: 24.37 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007669/1.972, allocations: 2.708 MB / 0.8152 GB, free: 21.65 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01128/1.983, allocations: 8.551 MB / 0.8235 GB, free: 10.18 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.997, allocations: 4.645 MB / 0.828 GB, free: 5.531 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002538/1.998, allocations: 60 kB / 0.8281 GB, free: 5.473 MB / 490.8 MB Notification: Performance of matching and sorting (n=1243) (initialization): time 0.03618/2.034, allocations: 10.72 MB / 0.8386 GB, free: 10.76 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001985/2.034, allocations: 96 kB / 0.8387 GB, free: 10.66 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004014/2.034, allocations: 208 kB / 0.8389 GB, free: 10.46 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004351/2.035, allocations: 311.9 kB / 0.8392 GB, free: 10.16 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01434/2.049, allocations: 2.183 MB / 0.8413 GB, free: 7.969 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005668/2.05, allocations: 406.5 kB / 0.8417 GB, free: 7.57 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01015/2.06, allocations: 474.1 kB / 0.8421 GB, free: 7.109 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001951/2.062, allocations: 0.5733 MB / 0.8427 GB, free: 6.539 MB / 0.4949 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 951 * 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 (1179): * Single equations (assignments): 1168 * Array equations: 11 * 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.01071/2.073, allocations: 3.76 MB / 0.8464 GB, free: 2.77 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001567/2.074, allocations: 0.5861 MB / 0.8469 GB, free: 2.176 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01004/2.084, allocations: 2.98 MB / 0.8498 GB, free: 15.18 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.347e-05/2.085, allocations: 31.95 kB / 0.8499 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.425e-05/2.085, allocations: 0 / 0.8499 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-05/2.085, allocations: 15.95 kB / 0.8499 GB, free: 15.13 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4143/2.499, allocations: 25.15 MB / 0.8744 GB, free: 142.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002081/2.499, allocations: 62.53 kB / 0.8745 GB, free: 142.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004148/2.503, allocations: 0.6142 MB / 0.8751 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001151/2.504, allocations: 92.25 kB / 0.8752 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005707/2.504, allocations: 139.3 kB / 0.8753 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000101/2.504, allocations: 123.4 kB / 0.8754 GB, free: 142.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.517e-05/2.504, allocations: 101.3 kB / 0.8755 GB, free: 142 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01263/2.517, allocations: 17.41 MB / 0.8925 GB, free: 125.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002435/2.519, allocations: 0.738 MB / 0.8933 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001893/2.521, allocations: 145.5 kB / 0.8934 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005234/2.527, allocations: 158.6 kB / 0.8936 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001071/2.528, allocations: 422.5 kB / 0.894 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006353/2.528, allocations: 175.9 kB / 0.8941 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.012/2.54, allocations: 4.573 MB / 0.8986 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.112e-06/2.541, allocations: 0 / 0.8986 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01184/2.552, allocations: 1.579 MB / 0.9001 GB, free: 123.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 288 * 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 (326): * Single equations (assignments): 323 * 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.02124/2.574, allocations: 29.74 MB / 0.9292 GB, free: 94.37 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02304/2.597, allocations: 6.336 MB / 0.9354 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.762e-05/2.597, allocations: 16.5 kB / 0.9354 GB, free: 92.21 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.006644/2.604, allocations: 1.636 MB / 0.937 GB, free: 91.65 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01072/2.614, allocations: 0.9125 MB / 0.9379 GB, free: 91.32 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4673/3.082, allocations: 181.5 MB / 1.115 GB, free: 121.4 MB / 0.5418 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01522/3.097, allocations: 5.979 MB / 1.121 GB, free: 120.5 MB / 0.5418 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008273/3.105, allocations: 3.892 MB / 1.125 GB, free: 120.3 MB / 0.5418 GB Notification: Performance of SimCode: time 1.633e-06/3.105, allocations: 0 / 1.125 GB, free: 120.3 MB / 0.5418 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.651/8.756, allocations: 142.1 MB / 1.264 GB, free: 144.3 MB / 0.5418 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