Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.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.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.FrameTorques2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2",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.001496/0.001496, allocations: 180.1 kB / 8.366 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.092/2.092, allocations: 205.3 MB / 214.1 MB, free: 14.12 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.001085/0.001085, allocations: 84.64 kB / 262.1 MB, free: 13.87 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.2909/0.2909, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.191e-05/2.19e-05, allocations: 4.219 kB / 418.3 MB, free: 40.93 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4192/0.4193, allocations: 58.84 MB / 477.2 MB, free: 5.145 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.6206, allocations: 105.1 MB / 0.5686 GB, free: 10.12 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.6209, allocations: 71.97 kB / 0.5687 GB, free: 10.05 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006/1.627, allocations: 167.4 MB / 0.7321 GB, free: 75.56 MB / 475.1 MB Notification: Performance of FrontEnd: time 3.837e-06/1.627, allocations: 0 / 0.7321 GB, free: 75.56 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.0006843/1.628, allocations: 175.4 kB / 0.7323 GB, free: 75.39 MB / 475.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2951 * Number of variables: 2951 Notification: Performance of Generate backend data structure: time 0.03625/1.664, allocations: 8.258 MB / 0.7404 GB, free: 67.07 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/1.664, allocations: 8.031 kB / 0.7404 GB, free: 67.06 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.086/1.75, allocations: 12.08 MB / 0.7522 GB, free: 54.95 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03791/1.788, allocations: 10.95 MB / 0.7629 GB, free: 44.02 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005703/1.789, allocations: 276 kB / 0.7631 GB, free: 43.75 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004932/1.794, allocations: 0.5036 MB / 0.7636 GB, free: 43.25 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02996/1.824, allocations: 11.44 MB / 0.7748 GB, free: 31.81 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04734/1.871, allocations: 17.2 MB / 0.7916 GB, free: 13.08 MB / 475.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008656/1.872, allocations: 107 kB / 0.7917 GB, free: 12.98 MB / 475.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004998/1.877, allocations: 48 kB / 0.7917 GB, free: 12.93 MB / 475.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0043/1.881, allocations: 1.826 MB / 0.7935 GB, free: 11.11 MB / 475.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.9723/2.854, allocations: 78.78 MB / 0.8705 GB, free: 57.73 MB / 0.4953 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/2.866, allocations: 5.853 MB / 0.8762 GB, free: 57.04 MB / 0.4953 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008615/2.875, allocations: 3.993 MB / 0.8801 GB, free: 56.99 MB / 0.4953 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001229/2.876, allocations: 0.6718 MB / 0.8807 GB, free: 56.43 MB / 0.4953 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.64e-05/2.877, allocations: 68.27 kB / 0.8808 GB, free: 56.39 MB / 0.4953 GB Notification: Performance of pre-optimization done (n=311): time 7.003e-06/2.877, allocations: 0 / 0.8808 GB, free: 56.39 MB / 0.4953 GB Notification: Performance of matching and sorting (n=338): time 0.1116/2.988, allocations: 33.7 MB / 0.9137 GB, free: 48.71 MB / 0.4953 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001338/2.988, allocations: 297.1 kB / 0.914 GB, free: 48.4 MB / 0.4953 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01569/3.004, allocations: 5.533 MB / 0.9194 GB, free: 46.43 MB / 0.4953 GB Notification: Performance of collectPreVariables (initialization): time 0.0009456/3.005, allocations: 29.2 kB / 0.9194 GB, free: 46.4 MB / 0.4953 GB Notification: Performance of collectInitialEqns (initialization): time 0.005273/3.01, allocations: 5.774 MB / 0.9251 GB, free: 41.98 MB / 0.4953 GB Notification: Performance of collectInitialBindings (initialization): time 0.002263/3.013, allocations: 1.238 MB / 0.9263 GB, free: 41.06 MB / 0.4953 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001638/3.014, allocations: 3 kB / 0.9263 GB, free: 41.06 MB / 0.4953 GB Notification: Performance of setup shared object (initialization): time 0.001011/3.015, allocations: 0.7393 MB / 0.927 GB, free: 40.56 MB / 0.4953 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008711/3.024, allocations: 3.337 MB / 0.9303 GB, free: 39.36 MB / 0.4953 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01337/3.038, allocations: 9.259 MB / 0.9393 GB, free: 30.17 MB / 0.4953 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01238/3.05, allocations: 5.483 MB / 0.9446 GB, free: 28.51 MB / 0.4953 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002612/3.05, allocations: 60.34 kB / 0.9447 GB, free: 28.51 MB / 0.4953 GB Notification: Performance of matching and sorting (n=1313) (initialization): time 0.03317/3.083, allocations: 11.93 MB / 0.9564 GB, free: 21.12 MB / 0.4953 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001886/3.084, allocations: 97.41 kB / 0.9564 GB, free: 21.03 MB / 0.4953 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003446/3.084, allocations: 208 kB / 0.9566 GB, free: 20.83 MB / 0.4953 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004147/3.088, allocations: 1.046 MB / 0.9577 GB, free: 19.95 MB / 0.4953 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01501/3.103, allocations: 2.347 MB / 0.96 GB, free: 17.93 MB / 0.4953 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01679/3.12, allocations: 10.86 MB / 0.9706 GB, free: 7.641 MB / 0.4953 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01188/3.132, allocations: 350.5 kB / 0.9709 GB, free: 7.355 MB / 0.4953 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002739/3.135, allocations: 0.6024 MB / 0.9715 GB, free: 6.77 MB / 0.4953 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 963 * Number of states: 0 () * Number of discrete variables: 66 (Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],frameTorque4.color[3],frameTorque4.color[2],frameTorque4.color[1],frameTorque3.color[3],frameTorque3.color[2],frameTorque3.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],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],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 (1233): * Single equations (assignments): 1226 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004158/3.139, allocations: 0.6309 MB / 0.9721 GB, free: 6.137 MB / 0.4953 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0158/3.155, allocations: 5.625 MB / 0.9776 GB, free: 1.262 MB / 0.4953 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002322/3.157, allocations: 0.6016 MB / 0.9782 GB, free: 0.6523 MB / 0.4953 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01817/3.175, allocations: 5.69 MB / 0.9837 GB, free: 11.97 MB / 0.5109 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001228/3.176, allocations: 40 kB / 0.9838 GB, free: 11.93 MB / 0.5109 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.636e-05/3.176, allocations: 8 kB / 0.9838 GB, free: 11.92 MB / 0.5109 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.293e-05/3.176, allocations: 21.64 kB / 0.9838 GB, free: 11.91 MB / 0.5109 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04779/3.224, allocations: 13.37 MB / 0.9969 GB, free: 1.074 MB / 0.5109 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.015e-05/3.224, allocations: 7.953 kB / 0.9969 GB, free: 1.066 MB / 0.5109 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006103/3.23, allocations: 0.561 MB / 0.9974 GB, free: 0.6172 MB / 0.5109 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003645/3.234, allocations: 0.687 MB / 0.9981 GB, free: 92 kB / 0.5109 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008793/3.234, allocations: 19.47 kB / 0.9981 GB, free: 76 kB / 0.5109 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01807/3.253, allocations: 9.727 MB / 1.008 GB, free: 6.797 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.765e-06/3.253, allocations: 0 / 1.008 GB, free: 6.797 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03635/3.289, allocations: 10.48 MB / 1.018 GB, free: 15.92 MB / 0.5421 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00489/3.294, allocations: 1.076 MB / 1.019 GB, free: 14.91 MB / 0.5421 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002289/3.296, allocations: 4 kB / 1.019 GB, free: 14.9 MB / 0.5421 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006029/3.302, allocations: 144.8 kB / 1.019 GB, free: 14.82 MB / 0.5421 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001257/3.304, allocations: 194.3 kB / 1.019 GB, free: 14.7 MB / 0.5421 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005258/3.304, allocations: 87.14 kB / 1.019 GB, free: 14.62 MB / 0.5421 GB Notification: Performance of sorting global known variables: time 0.01122/3.315, allocations: 3.768 MB / 1.023 GB, free: 11.36 MB / 0.5421 GB Notification: Performance of sort global known variables: time 1.233e-06/3.315, allocations: 0 / 1.023 GB, free: 11.36 MB / 0.5421 GB Notification: Performance of remove unused functions: time 0.01449/3.33, allocations: 1.63 MB / 1.025 GB, free: 9.73 MB / 0.5421 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w,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 (279): * Single equations (assignments): 272 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 11,(1,100.0%) 11,(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.02687/3.357, allocations: 10.7 MB / 1.035 GB, free: 72 kB / 0.5421 GB Notification: Performance of simCode: created initialization part: time 0.02761/3.385, allocations: 8.839 MB / 1.044 GB, free: 9.262 MB / 0.5578 GB Notification: Performance of simCode: created event and clocks part: time 9.569e-06/3.385, allocations: 4 kB / 1.044 GB, free: 9.258 MB / 0.5578 GB Notification: Performance of simCode: created simulation system equations: time 0.007977/3.393, allocations: 3.105 MB / 1.047 GB, free: 6.41 MB / 0.5578 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007216/3.4, allocations: 0.7433 MB / 1.047 GB, free: 5.797 MB / 0.5578 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4438/3.844, allocations: 18.25 MB / 1.065 GB, free: 153.6 MB / 0.5578 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01843/3.862, allocations: 6.147 MB / 1.071 GB, free: 152.7 MB / 0.5578 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01105/3.873, allocations: 4.135 MB / 1.075 GB, free: 152.7 MB / 0.5578 GB Notification: Performance of SimCode: time 3.026e-06/3.873, allocations: 0 / 1.075 GB, free: 152.7 MB / 0.5578 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.351/10.22, allocations: 291 MB / 1.359 GB, free: 101.6 MB / 0.5578 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Forces_FrameTorques2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.FrameTorques2_res.mat does not exist to compare? outputFormat=mat