Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.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.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques",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.002365/0.002371, allocations: 182.4 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.199/2.199, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.00112/0.00112, allocations: 90.64 kB / 267.5 MB, free: 14.12 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.2857/0.2857, allocations: 43.48 MB / 359.1 MB, free: 12.26 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.133e-05/4.144e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1203, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5146/0.635, allocations: 106.9 MB / 0.5773 GB, free: 12.85 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003015/0.6353, allocations: 77.23 kB / 0.5774 GB, free: 12.81 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4954/1.131, allocations: 115.1 MB / 0.6898 GB, free: 1.426 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.044e-06/1.131, allocations: 0 / 0.6898 GB, free: 1.426 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000442/1.131, allocations: 108 kB / 0.6899 GB, free: 1.32 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: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.02401/1.155, allocations: 5.471 MB / 0.6952 GB, free: 11.78 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.691e-05/1.155, allocations: 12.03 kB / 0.6952 GB, free: 11.77 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005182/1.161, allocations: 0.9807 MB / 0.6962 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05438/1.215, allocations: 6.958 MB / 0.703 GB, free: 3.797 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3783/1.593, allocations: 6.871 MB / 0.7097 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006525/1.594, allocations: 417.3 kB / 0.7101 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003343/1.597, allocations: 0.539 MB / 0.7106 GB, free: 104.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04571/1.643, allocations: 13.28 MB / 0.7236 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006508/1.644, allocations: 79.05 kB / 0.7236 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003051/1.647, allocations: 268.9 kB / 0.7239 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00345/1.65, allocations: 1.256 MB / 0.7251 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03327/1.684, allocations: 10.51 MB / 0.7354 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08997/1.774, allocations: 59.77 MB / 0.7938 GB, free: 60.72 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01869/1.793, allocations: 4.61 MB / 0.7983 GB, free: 58.98 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004813/1.797, allocations: 2.214 MB / 0.8004 GB, free: 58.03 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01823/1.816, allocations: 6.485 MB / 0.8068 GB, free: 54.97 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/1.816, allocations: 50.31 kB / 0.8068 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=183): time 6.954e-06/1.816, allocations: 0 / 0.8068 GB, free: 54.92 MB / 0.4948 GB Notification: Performance of matching and sorting (n=195): time 0.06291/1.879, allocations: 14.57 MB / 0.821 GB, free: 48.58 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.614e-05/1.879, allocations: 228.3 kB / 0.8213 GB, free: 48.33 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01417/1.893, allocations: 5.17 MB / 0.8263 GB, free: 46.48 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0005041/1.894, allocations: 52.77 kB / 0.8264 GB, free: 46.43 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003734/1.897, allocations: 3.949 MB / 0.8302 GB, free: 43.27 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001334/1.899, allocations: 0.7644 MB / 0.831 GB, free: 42.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/1.9, allocations: 146.9 kB / 0.8311 GB, free: 42.61 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000593/1.901, allocations: 0.6164 MB / 0.8317 GB, free: 42.17 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006333/1.907, allocations: 2.248 MB / 0.8339 GB, free: 40.64 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008906/1.916, allocations: 6.751 MB / 0.8405 GB, free: 32.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009161/1.925, allocations: 3.879 MB / 0.8443 GB, free: 28.85 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002088/1.925, allocations: 51.95 kB / 0.8443 GB, free: 28.8 MB / 0.4948 GB Notification: Performance of matching and sorting (n=937) (initialization): time 0.02821/1.954, allocations: 8.95 MB / 0.8531 GB, free: 20.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001214/1.954, allocations: 76 kB / 0.8531 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002283/1.954, allocations: 163.8 kB / 0.8533 GB, free: 20.68 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002268/1.956, allocations: 0.6084 MB / 0.8539 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01005/1.966, allocations: 1.648 MB / 0.8555 GB, free: 18.71 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008805/1.975, allocations: 5.73 MB / 0.8611 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008529/1.984, allocations: 383.9 kB / 0.8615 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001592/1.986, allocations: 443.7 kB / 0.8619 GB, free: 12.49 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 731 * Number of states: 0 () * Number of discrete variables: 45 (Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],frameTorque2.color[3],frameTorque2.color[2],frameTorque2.color[1],frameTorque1.color[3],frameTorque1.color[2],frameTorque1.color[1],FixedRotation1.color[3],FixedRotation1.color[2],FixedRotation1.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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 (885): * Single equations (assignments): 880 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001899/1.987, allocations: 0.6621 MB / 0.8625 GB, free: 11.82 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00127/1.989, allocations: 497.5 kB / 0.863 GB, free: 11.33 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00844/1.997, allocations: 3.029 MB / 0.866 GB, free: 8.793 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.353e-05/1.997, allocations: 23.89 kB / 0.866 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.582e-05/1.997, allocations: 4 kB / 0.866 GB, free: 8.77 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-05/1.997, allocations: 14.36 kB / 0.866 GB, free: 8.766 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02474/2.022, allocations: 8.441 MB / 0.8742 GB, free: 1.855 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-05/2.022, allocations: 4.281 kB / 0.8742 GB, free: 1.852 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003228/2.025, allocations: 335.4 kB / 0.8746 GB, free: 1.59 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001743/2.027, allocations: 356 kB / 0.8749 GB, free: 1.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004064/2.028, allocations: 39.75 kB / 0.8749 GB, free: 1.285 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009006/2.037, allocations: 5.08 MB / 0.8799 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/2.037, allocations: 4 kB / 0.8799 GB, free: 12.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/2.052, allocations: 6.088 MB / 0.8859 GB, free: 6.719 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003445/2.055, allocations: 0.8046 MB / 0.8866 GB, free: 5.953 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001538/2.057, allocations: 28 kB / 0.8867 GB, free: 5.926 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003925/2.061, allocations: 95.42 kB / 0.8868 GB, free: 5.859 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006434/2.061, allocations: 112.4 kB / 0.8869 GB, free: 5.789 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002223/2.062, allocations: 59.33 kB / 0.8869 GB, free: 5.734 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01135/2.073, allocations: 3.69 MB / 0.8905 GB, free: 2.508 MB / 0.5105 GB Notification: Performance of sort global known variables: time 3.327e-06/2.073, allocations: 112 / 0.8905 GB, free: 2.508 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009308/2.082, allocations: 1.233 MB / 0.8917 GB, free: 1.285 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 4 (Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (154): * Single equations (assignments): 149 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01624/2.099, allocations: 7.277 MB / 0.8988 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01513/2.114, allocations: 5.646 MB / 0.9044 GB, free: 5.348 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 9.037e-06/2.114, allocations: 0 / 0.9044 GB, free: 5.348 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004196/2.118, allocations: 1.688 MB / 0.906 GB, free: 3.785 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00543/2.124, allocations: 0.6046 MB / 0.9066 GB, free: 3.273 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4062/2.53, allocations: 12.08 MB / 0.9184 GB, free: 122.8 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01262/2.543, allocations: 4.249 MB / 0.9225 GB, free: 122 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006591/2.549, allocations: 2.639 MB / 0.9251 GB, free: 122 MB / 0.5261 GB Notification: Performance of SimCode: time 1.894e-06/2.549, allocations: 0 / 0.9251 GB, free: 122 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.026/7.576, allocations: 152.9 MB / 1.074 GB, free: 30.22 MB / 0.5261 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques_res.mat does not exist to compare? outputFormat=mat