Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.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.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.ForcesAndTorques,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques",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.002138/0.002138, allocations: 185.9 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.067/2.067, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.00117/0.001169, allocations: 92.42 kB / 270.9 MB, free: 8.391 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.5316/0.5316, allocations: 43.54 MB / 362.7 MB, free: 51.86 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006387/0.0006386, allocations: 19.98 kB / 431.5 MB, free: 5.859 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.137/0.1377, allocations: 58.84 MB / 490.3 MB, free: 10.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5693/0.7071, allocations: 110.2 MB / 0.5865 GB, free: 8.148 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004214/0.7076, allocations: 83.94 kB / 0.5865 GB, free: 8.066 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9677/1.675, allocations: 149.2 MB / 0.7323 GB, free: 83.76 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.095e-06/1.675, allocations: 3.938 kB / 0.7323 GB, free: 83.76 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0005001/1.676, allocations: 148.7 kB / 0.7324 GB, free: 83.75 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: 2763 * Number of variables: 2763 Notification: Performance of Generate backend data structure: time 0.03463/1.711, allocations: 7.934 MB / 0.7402 GB, free: 80.58 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/1.711, allocations: 11.55 kB / 0.7402 GB, free: 80.58 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007004/1.718, allocations: 1.372 MB / 0.7415 GB, free: 79.95 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05433/1.772, allocations: 7.32 MB / 0.7487 GB, free: 78.77 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02891/1.801, allocations: 7.938 MB / 0.7564 GB, free: 75.75 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007779/1.802, allocations: 0.5823 MB / 0.757 GB, free: 75.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004556/1.806, allocations: 0.7696 MB / 0.7577 GB, free: 75.31 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06088/1.867, allocations: 19.01 MB / 0.7763 GB, free: 65.95 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005869/1.868, allocations: 105.8 kB / 0.7764 GB, free: 65.89 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004025/1.872, allocations: 369.9 kB / 0.7767 GB, free: 65.68 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00427/1.876, allocations: 1.83 MB / 0.7785 GB, free: 65.34 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05956/1.936, allocations: 15.6 MB / 0.7938 GB, free: 52.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.562/2.498, allocations: 81.81 MB / 0.8737 GB, free: 42.91 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04025/2.538, allocations: 8.752 MB / 0.8822 GB, free: 42.21 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03765/2.576, allocations: 11.71 MB / 0.8936 GB, free: 40.43 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.326e-05/2.576, allocations: 72.47 kB / 0.8937 GB, free: 40.39 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=347): time 8.796e-06/2.576, allocations: 0 / 0.8937 GB, free: 40.39 MB / 0.4949 GB Notification: Performance of matching and sorting (n=389): time 0.1637/2.74, allocations: 36.51 MB / 0.9294 GB, free: 33 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/2.74, allocations: 251 kB / 0.9296 GB, free: 32.75 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01655/2.757, allocations: 6.577 MB / 0.936 GB, free: 30.47 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001127/2.758, allocations: 86.28 kB / 0.9361 GB, free: 30.39 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.0046/2.762, allocations: 5.019 MB / 0.941 GB, free: 26.41 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002563/2.765, allocations: 1.444 MB / 0.9424 GB, free: 25.34 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001819/2.767, allocations: 204 kB / 0.9426 GB, free: 25.19 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0008626/2.768, allocations: 0.7312 MB / 0.9433 GB, free: 24.7 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01103/2.779, allocations: 4.117 MB / 0.9473 GB, free: 23.3 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01494/2.794, allocations: 9.708 MB / 0.9568 GB, free: 14.46 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01518/2.809, allocations: 6.187 MB / 0.9629 GB, free: 12.31 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002225/2.809, allocations: 59.66 kB / 0.9629 GB, free: 12.31 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1300) (initialization): time 0.04536/2.855, allocations: 14.89 MB / 0.9775 GB, free: 7.664 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001716/2.855, allocations: 86.34 kB / 0.9776 GB, free: 7.664 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003906/2.855, allocations: 198.2 kB / 0.9777 GB, free: 7.664 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007488/2.863, allocations: 1.733 MB / 0.9794 GB, free: 7.359 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01631/2.879, allocations: 2.426 MB / 0.9818 GB, free: 7.09 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02624/2.905, allocations: 11.89 MB / 0.9934 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01242/2.918, allocations: 0.58 MB / 0.994 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002759/2.921, allocations: 0.5826 MB / 0.9945 GB, free: 12.34 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 69 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],forceAndTorque2.connectionLineColor[3],forceAndTorque2.connectionLineColor[2],forceAndTorque2.connectionLineColor[1],forceAndTorque2.torqueColor[3],forceAndTorque2.torqueColor[2],forceAndTorque2.torqueColor[1],forceAndTorque2.forceColor[3],forceAndTorque2.forceColor[2],forceAndTorque2.forceColor[1],forceAndTorque1.connectionLineColor[3],forceAndTorque1.connectionLineColor[2],forceAndTorque1.connectionLineColor[1],forceAndTorque1.torqueColor[3],forceAndTorque1.torqueColor[2],forceAndTorque1.torqueColor[1],forceAndTorque1.forceColor[3],forceAndTorque1.forceColor[2],forceAndTorque1.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1228): * Single equations (assignments): 1223 * 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 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01177/2.933, allocations: 3.626 MB / 0.9981 GB, free: 9.152 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002273/2.935, allocations: 0.644 MB / 0.9987 GB, free: 8.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02869/2.964, allocations: 8.226 MB / 1.007 GB, free: 1.789 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-05/2.964, allocations: 40 kB / 1.007 GB, free: 1.75 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.583e-05/2.964, allocations: 15.94 kB / 1.007 GB, free: 1.734 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001083/2.964, allocations: 24.44 kB / 1.007 GB, free: 1.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06447/3.028, allocations: 18.31 MB / 1.025 GB, free: 2.906 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.347e-05/3.029, allocations: 4 kB / 1.025 GB, free: 2.902 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008263/3.037, allocations: 0.7695 MB / 1.025 GB, free: 2.312 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007586/3.044, allocations: 1.42 MB / 1.027 GB, free: 1.32 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001292/3.046, allocations: 79.94 kB / 1.027 GB, free: 1.246 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0291/3.075, allocations: 11.03 MB / 1.038 GB, free: 6.543 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.496e-05/3.075, allocations: 11.94 kB / 1.038 GB, free: 6.531 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04077/3.116, allocations: 14.52 MB / 1.052 GB, free: 7.539 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005893/3.122, allocations: 1.316 MB / 1.053 GB, free: 6.195 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002657/3.124, allocations: 71.98 kB / 1.053 GB, free: 6.125 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007082/3.131, allocations: 255.6 kB / 1.053 GB, free: 5.875 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001652/3.133, allocations: 242.8 kB / 1.054 GB, free: 5.641 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006011/3.134, allocations: 108 kB / 1.054 GB, free: 5.535 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.01471/3.149, allocations: 4.726 MB / 1.058 GB, free: 0.8398 MB / 0.5574 GB Notification: Performance of sort global known variables: time 6.81e-07/3.149, allocations: 4 kB / 1.058 GB, free: 0.8359 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.01408/3.163, allocations: 1.874 MB / 1.06 GB, free: 14.96 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w) * 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 (329): * Single equations (assignments): 324 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4483/3.611, allocations: 16.26 MB / 1.076 GB, free: 157.1 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.0277/3.639, allocations: 10.11 MB / 1.086 GB, free: 156.8 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.316e-05/3.639, allocations: 2.969 kB / 1.086 GB, free: 156.8 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.01219/3.651, allocations: 4.036 MB / 1.09 GB, free: 156.5 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00748/3.659, allocations: 0.7674 MB / 1.091 GB, free: 156.5 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2748/3.933, allocations: 210.9 MB / 1.297 GB, free: 7.316 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01719/3.951, allocations: 5.654 MB / 1.302 GB, free: 5.488 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01245/3.963, allocations: 3.765 MB / 1.306 GB, free: 2.465 MB / 0.6042 GB Notification: Performance of SimCode: time 1.753e-06/3.963, allocations: 0 / 1.306 GB, free: 2.465 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.308/10.27, allocations: 215.2 MB / 1.516 GB, free: 77.01 MB / 0.6042 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_ForcesAndTorques.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.ForcesAndTorques_res.mat does not exist to compare? outputFormat=mat