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.002678/0.002678, allocations: 180.6 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.158/2.158, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001149/0.001148, allocations: 90.64 kB / 267.5 MB, free: 14.11 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.2962/0.2962, allocations: 43.48 MB / 359.1 MB, free: 12.25 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.778e-05/3.794e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1171, allocations: 58.85 MB / 484.2 MB, free: 12.39 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5266/0.6438, allocations: 102.1 MB / 0.5725 GB, free: 1.695 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000279/0.6441, allocations: 82.55 kB / 0.5726 GB, free: 1.656 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.239/0.8831, allocations: 57.05 MB / 0.6283 GB, free: 252 kB / 426.7 MB Notification: Performance of FrontEnd: time 4.489e-06/0.8832, allocations: 0 / 0.6283 GB, free: 252 kB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001599/0.8834, allocations: 59.94 kB / 0.6284 GB, free: 192 kB / 426.7 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.009968/0.8934, allocations: 2.682 MB / 0.631 GB, free: 13.67 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.895e-05/0.8935, allocations: 8.031 kB / 0.631 GB, free: 13.66 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002809/0.8963, allocations: 0.5587 MB / 0.6316 GB, free: 13.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01825/0.9146, allocations: 1.85 MB / 0.6334 GB, free: 11.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009009/0.9237, allocations: 1.753 MB / 0.6351 GB, free: 9.664 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003253/0.924, allocations: 225.9 kB / 0.6353 GB, free: 9.441 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001473/0.9255, allocations: 295.9 kB / 0.6356 GB, free: 9.152 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0198/0.9453, allocations: 6.756 MB / 0.6422 GB, free: 2.012 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.539e-05/0.9455, allocations: 19.81 kB / 0.6422 GB, free: 1.992 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006565/0.9462, allocations: 135.9 kB / 0.6423 GB, free: 1.859 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001559/0.9477, allocations: 0.704 MB / 0.643 GB, free: 1.152 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0184/0.9661, allocations: 5.861 MB / 0.6487 GB, free: 11.28 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04799/1.014, allocations: 23.92 MB / 0.6721 GB, free: 2.672 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007488/1.022, allocations: 2.17 MB / 0.6742 GB, free: 384 kB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002014/1.024, allocations: 0.7971 MB / 0.675 GB, free: 15.57 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01245/1.036, allocations: 4.007 MB / 0.6789 GB, free: 11.42 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.93e-05/1.036, allocations: 39.34 kB / 0.679 GB, free: 11.38 MB / 490.7 MB Notification: Performance of pre-optimization done (n=96): time 4.829e-06/1.036, allocations: 0 / 0.679 GB, free: 11.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=96): time 0.009032/1.045, allocations: 1.766 MB / 0.6807 GB, free: 9.602 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.295e-05/1.046, allocations: 60.19 kB / 0.6807 GB, free: 9.527 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00433/1.05, allocations: 1.805 MB / 0.6825 GB, free: 7.672 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001953/1.05, allocations: 37.69 kB / 0.6825 GB, free: 7.629 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002128/1.052, allocations: 2.025 MB / 0.6845 GB, free: 5.574 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006405/1.053, allocations: 375.1 kB / 0.6849 GB, free: 5.203 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002862/1.053, allocations: 64 kB / 0.6849 GB, free: 5.141 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003639/1.054, allocations: 449.8 kB / 0.6854 GB, free: 4.691 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002469/1.056, allocations: 0.9317 MB / 0.6863 GB, free: 3.758 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004481/1.061, allocations: 2.903 MB / 0.6891 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004228/1.065, allocations: 1.669 MB / 0.6907 GB, free: 14.19 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.031e-05/1.065, allocations: 20 kB / 0.6908 GB, free: 14.17 MB / 0.4948 GB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01029/1.075, allocations: 3.683 MB / 0.6944 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 7.97e-05/1.075, allocations: 40.28 kB / 0.6944 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000106/1.076, allocations: 72 kB / 0.6945 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000161/1.076, allocations: 104 kB / 0.6946 GB, free: 10.27 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00455/1.08, allocations: 0.733 MB / 0.6953 GB, free: 9.539 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001796/1.081, allocations: 135.5 kB / 0.6954 GB, free: 9.406 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003417/1.084, allocations: 447.3 kB / 0.6958 GB, free: 8.965 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005195/1.085, allocations: 192 kB / 0.696 GB, free: 8.777 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 320 * 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 (398): * Single equations (assignments): 395 * 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.0006952/1.085, allocations: 370 kB / 0.6964 GB, free: 8.41 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004003/1.086, allocations: 173.7 kB / 0.6965 GB, free: 8.238 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003144/1.089, allocations: 1.218 MB / 0.6977 GB, free: 7.004 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.7e-05/1.089, allocations: 12 kB / 0.6977 GB, free: 6.992 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/1.089, allocations: 7.938 kB / 0.6977 GB, free: 6.984 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/1.089, allocations: 3.984 kB / 0.6977 GB, free: 6.98 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01395/1.103, allocations: 5.022 MB / 0.7027 GB, free: 1.758 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.952e-05/1.103, allocations: 12 kB / 0.7027 GB, free: 1.746 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/1.104, allocations: 139.7 kB / 0.7028 GB, free: 1.609 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.931e-05/1.104, allocations: 16 kB / 0.7028 GB, free: 1.594 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.875e-05/1.104, allocations: 31.98 kB / 0.7028 GB, free: 1.562 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.791e-05/1.104, allocations: 23.89 kB / 0.7029 GB, free: 1.539 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.509e-05/1.104, allocations: 11.94 kB / 0.7029 GB, free: 1.527 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3428/1.447, allocations: 2.297 MB / 0.7051 GB, free: 139.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006819/1.448, allocations: 281.2 kB / 0.7054 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003268/1.448, allocations: 28.47 kB / 0.7054 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001176/1.449, allocations: 35.34 kB / 0.7054 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/1.45, allocations: 83.94 kB / 0.7055 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001188/1.45, allocations: 40.88 kB / 0.7056 GB, free: 139.4 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003658/1.453, allocations: 1.313 MB / 0.7069 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.142e-06/1.453, allocations: 0 / 0.7069 GB, free: 139.3 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004287/1.458, allocations: 0.7688 MB / 0.7076 GB, free: 139.2 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 73 * 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.004579/1.462, allocations: 5.562 MB / 0.713 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005695/1.468, allocations: 2.204 MB / 0.7152 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.489e-05/1.468, allocations: 1.375 kB / 0.7152 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001341/1.47, allocations: 0.5602 MB / 0.7157 GB, free: 134.6 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002097/1.472, allocations: 240.9 kB / 0.716 GB, free: 134.5 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/1.492, allocations: 5.951 MB / 0.7218 GB, free: 133.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005958/1.498, allocations: 2.515 MB / 0.7242 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002908/1.501, allocations: 1.199 MB / 0.7254 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of SimCode: time 1.333e-06/1.501, allocations: 0 / 0.7254 GB, free: 132.4 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.522/5.024, allocations: 49.3 MB / 0.7735 GB, free: 117.8 MB / 0.4948 GB (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