Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.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.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.CutTorque2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2",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.001979/0.001979, allocations: 181.9 kB / 8.367 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.103/2.103, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001095/0.001095, allocations: 92.12 kB / 262.1 MB, free: 13.86 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.3731/0.3731, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.081e-05/2.09e-05, allocations: 224 / 418.3 MB, free: 40.94 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4257/0.4257, allocations: 58.86 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1878/0.6136, allocations: 101.4 MB / 0.565 GB, free: 13.76 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.6139, allocations: 71.97 kB / 0.5651 GB, free: 13.69 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2342/0.8482, allocations: 55.75 MB / 0.6195 GB, free: 5.5 MB / 459.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.8482, allocations: 4 kB / 0.6195 GB, free: 5.496 MB / 459.1 MB Notification: Performance of Transformations before backend: time 0.0001632/0.8484, allocations: 52 kB / 0.6196 GB, free: 5.445 MB / 459.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1095 * Number of variables: 1095 Notification: Performance of Generate backend data structure: time 0.01037/0.8588, allocations: 2.677 MB / 0.6222 GB, free: 2.711 MB / 459.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.977e-05/0.8589, allocations: 12.02 kB / 0.6222 GB, free: 2.699 MB / 459.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01489/0.8738, allocations: 1.844 MB / 0.624 GB, free: 0.8477 MB / 459.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00696/0.8808, allocations: 1.754 MB / 0.6257 GB, free: 15.05 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/0.8811, allocations: 96 kB / 0.6258 GB, free: 14.95 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001633/0.8828, allocations: 172 kB / 0.626 GB, free: 14.79 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01256/0.8953, allocations: 4.481 MB / 0.6304 GB, free: 10.3 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01918/0.9146, allocations: 6.236 MB / 0.6364 GB, free: 3.672 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001091/0.9147, allocations: 15.88 kB / 0.6365 GB, free: 3.656 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009739/0.9157, allocations: 12 kB / 0.6365 GB, free: 3.645 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001713/0.9175, allocations: 0.7124 MB / 0.6372 GB, free: 2.93 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3749/1.292, allocations: 23.59 MB / 0.6602 GB, free: 108.6 MB / 475.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003134/1.296, allocations: 1.521 MB / 0.6617 GB, free: 108 MB / 475.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001431/1.297, allocations: 0.5862 MB / 0.6623 GB, free: 108 MB / 475.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.386e-05/1.297, allocations: 16.06 kB / 0.6623 GB, free: 108 MB / 475.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/1.297, allocations: 40.22 kB / 0.6623 GB, free: 107.9 MB / 475.1 MB Notification: Performance of pre-optimization done (n=108): time 3.918e-06/1.297, allocations: 0 / 0.6623 GB, free: 107.9 MB / 475.1 MB Notification: Performance of matching and sorting (n=108): time 0.005935/1.303, allocations: 1.495 MB / 0.6638 GB, free: 107.8 MB / 475.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.858e-05/1.303, allocations: 61.94 kB / 0.6638 GB, free: 107.7 MB / 475.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004003/1.307, allocations: 1.656 MB / 0.6655 GB, free: 107.5 MB / 475.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002221/1.308, allocations: 25.7 kB / 0.6655 GB, free: 107.5 MB / 475.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001889/1.31, allocations: 2.08 MB / 0.6675 GB, free: 106.4 MB / 475.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006786/1.31, allocations: 404.9 kB / 0.6679 GB, free: 106.2 MB / 475.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003045/1.311, allocations: 1.375 kB / 0.6679 GB, free: 106.2 MB / 475.1 MB Notification: Performance of setup shared object (initialization): time 0.0002695/1.311, allocations: 471.3 kB / 0.6684 GB, free: 105.9 MB / 475.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002321/1.313, allocations: 0.9333 MB / 0.6693 GB, free: 105.9 MB / 475.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003977/1.317, allocations: 3.083 MB / 0.6723 GB, free: 102.9 MB / 475.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003992/1.321, allocations: 1.732 MB / 0.674 GB, free: 102.5 MB / 475.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/1.321, allocations: 26.88 kB / 0.674 GB, free: 102.5 MB / 475.1 MB Notification: Performance of matching and sorting (n=459) (initialization): time 0.01017/1.332, allocations: 3.508 MB / 0.6774 GB, free: 101.4 MB / 475.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.05e-05/1.332, allocations: 41.69 kB / 0.6775 GB, free: 101.4 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.985e-05/1.332, allocations: 78.19 kB / 0.6775 GB, free: 101.4 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001437/1.332, allocations: 117.9 kB / 0.6776 GB, free: 101.4 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004528/1.336, allocations: 0.7905 MB / 0.6784 GB, free: 101.3 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001173/1.337, allocations: 150.6 kB / 0.6786 GB, free: 101.2 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003854/1.341, allocations: 394.1 kB / 0.6789 GB, free: 101 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008492/1.341, allocations: 212.9 kB / 0.6791 GB, free: 101 MB / 475.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 353 * Number of states: 0 () * Number of discrete variables: 24 (worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (435): * Single equations (assignments): 432 * 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.0007172/1.342, allocations: 308.9 kB / 0.6794 GB, free: 100.7 MB / 475.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002547/1.345, allocations: 1.19 MB / 0.6806 GB, free: 100.3 MB / 475.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003318/1.345, allocations: 171.8 kB / 0.6808 GB, free: 100.2 MB / 475.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003071/1.348, allocations: 1.35 MB / 0.6821 GB, free: 99.73 MB / 475.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-05/1.348, allocations: 14.95 kB / 0.6821 GB, free: 99.73 MB / 475.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/1.348, allocations: 0 / 0.6821 GB, free: 99.73 MB / 475.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/1.348, allocations: 7.844 kB / 0.6821 GB, free: 99.73 MB / 475.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01168/1.36, allocations: 4.74 MB / 0.6867 GB, free: 97.8 MB / 475.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.791e-05/1.36, allocations: 8.969 kB / 0.6867 GB, free: 97.8 MB / 475.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001235/1.361, allocations: 157.2 kB / 0.6869 GB, free: 97.79 MB / 475.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.458e-05/1.361, allocations: 21.81 kB / 0.6869 GB, free: 97.79 MB / 475.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/1.361, allocations: 19.16 kB / 0.6869 GB, free: 97.79 MB / 475.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.747e-05/1.361, allocations: 22.94 kB / 0.6869 GB, free: 97.78 MB / 475.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-05/1.361, allocations: 15.03 kB / 0.687 GB, free: 97.77 MB / 475.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/1.364, allocations: 2.353 MB / 0.6893 GB, free: 95.86 MB / 475.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005175/1.365, allocations: 255.4 kB / 0.6895 GB, free: 95.64 MB / 475.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002727/1.365, allocations: 17.78 kB / 0.6895 GB, free: 95.64 MB / 475.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001083/1.366, allocations: 23.69 kB / 0.6895 GB, free: 95.64 MB / 475.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/1.366, allocations: 85.16 kB / 0.6896 GB, free: 95.62 MB / 475.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001074/1.367, allocations: 49.48 kB / 0.6897 GB, free: 95.61 MB / 475.1 MB Notification: Performance of sorting global known variables: time 0.002056/1.369, allocations: 1.101 MB / 0.6907 GB, free: 95.18 MB / 475.1 MB Notification: Performance of sort global known variables: time 8.32e-07/1.369, allocations: 0 / 0.6907 GB, free: 95.18 MB / 475.1 MB Notification: Performance of remove unused functions: time 0.004261/1.373, allocations: 0.7258 MB / 0.6915 GB, free: 94.99 MB / 475.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * 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.003972/1.377, allocations: 5.801 MB / 0.6971 GB, free: 89.76 MB / 475.1 MB Notification: Performance of simCode: created initialization part: time 0.004854/1.382, allocations: 2.223 MB / 0.6993 GB, free: 89.04 MB / 475.1 MB Notification: Performance of simCode: created event and clocks part: time 1.562e-05/1.382, allocations: 0 / 0.6993 GB, free: 89.04 MB / 475.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001222/1.383, allocations: 0.5957 MB / 0.6999 GB, free: 88.86 MB / 475.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001411/1.385, allocations: 181.3 kB / 0.7 GB, free: 88.79 MB / 475.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01723/1.402, allocations: 6.002 MB / 0.7059 GB, free: 86.33 MB / 475.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003841/1.406, allocations: 2.526 MB / 0.7084 GB, free: 85.22 MB / 475.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002437/1.408, allocations: 1.223 MB / 0.7096 GB, free: 84.23 MB / 475.1 MB Notification: Performance of SimCode: time 1.483e-06/1.408, allocations: 6.5 kB / 0.7096 GB, free: 84.22 MB / 475.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.323/4.732, allocations: 48.44 MB / 0.7569 GB, free: 45.13 MB / 475.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Sensors_CutTorque2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat does not exist to compare? outputFormat=mat