Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.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.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies",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.002278/0.002278, allocations: 177.8 kB / 8.36 MB, free: 0.7148 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.339/2.339, allocations: 205.3 MB / 214.1 MB, free: 14.13 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.001081/0.001081, allocations: 94.67 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.297/0.297, allocations: 43.49 MB / 353.6 MB, free: 2.27 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.409e-05/2.411e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.3989, allocations: 58.86 MB / 477.2 MB, free: 5.16 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.5904, allocations: 102 MB / 0.5656 GB, free: 13.15 MB / 411.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000291/0.5907, allocations: 79.95 kB / 0.5657 GB, free: 13.07 MB / 411.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.094/1.685, allocations: 194.1 MB / 0.7553 GB, free: 53.02 MB / 475.1 MB Notification: Performance of FrontEnd: time 2.315e-06/1.685, allocations: 0 / 0.7553 GB, free: 53.02 MB / 475.1 MB Notification: Performance of Transformations before backend: time 0.000493/1.686, allocations: 167.9 kB / 0.7554 GB, free: 52.86 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: 3305 * Number of variables: 3305 Notification: Performance of Generate backend data structure: time 0.06416/1.75, allocations: 9.574 MB / 0.7648 GB, free: 43.2 MB / 475.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/1.75, allocations: 8.031 kB / 0.7648 GB, free: 43.19 MB / 475.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09054/1.841, allocations: 12.04 MB / 0.7766 GB, free: 31.12 MB / 475.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0585/1.899, allocations: 11.9 MB / 0.7882 GB, free: 19.12 MB / 475.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005849/1.9, allocations: 272.7 kB / 0.7884 GB, free: 18.86 MB / 475.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005653/1.905, allocations: 0.4959 MB / 0.7889 GB, free: 18.36 MB / 475.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03716/1.943, allocations: 15.16 MB / 0.8037 GB, free: 3.188 MB / 475.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7549/2.698, allocations: 20.06 MB / 0.8233 GB, free: 72.38 MB / 491.2 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007934/2.698, allocations: 73.83 kB / 0.8234 GB, free: 72.38 MB / 491.2 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005524/2.704, allocations: 31 kB / 0.8234 GB, free: 72.38 MB / 491.2 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006271/2.71, allocations: 2.467 MB / 0.8258 GB, free: 72.36 MB / 491.2 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1695/2.88, allocations: 76.73 MB / 0.9008 GB, free: 40.26 MB / 491.2 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01691/2.897, allocations: 10.08 MB / 0.9106 GB, free: 34.71 MB / 491.2 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01208/2.909, allocations: 6.262 MB / 0.9167 GB, free: 32.18 MB / 491.2 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007372/2.91, allocations: 82.8 kB / 0.9168 GB, free: 32.17 MB / 491.2 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.888e-05/2.91, allocations: 84.78 kB / 0.9169 GB, free: 32.09 MB / 491.2 MB Notification: Performance of pre-optimization done (n=587): time 1.087e-05/2.91, allocations: 0 / 0.9169 GB, free: 32.09 MB / 491.2 MB Notification: Performance of matching and sorting (n=615): time 0.1085/3.018, allocations: 35.1 MB / 0.9512 GB, free: 19.25 MB / 491.2 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/3.019, allocations: 262.9 kB / 0.9514 GB, free: 18.99 MB / 491.2 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01372/3.032, allocations: 5.388 MB / 0.9567 GB, free: 16.19 MB / 491.2 MB Notification: Performance of collectPreVariables (initialization): time 0.001638/3.034, allocations: 25.7 kB / 0.9567 GB, free: 16.16 MB / 491.2 MB Notification: Performance of collectInitialEqns (initialization): time 0.005333/3.039, allocations: 5.863 MB / 0.9624 GB, free: 10.82 MB / 491.2 MB Notification: Performance of collectInitialBindings (initialization): time 0.004014/3.043, allocations: 2.207 MB / 0.9646 GB, free: 8.832 MB / 491.2 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002636/3.046, allocations: 0 / 0.9646 GB, free: 8.832 MB / 491.2 MB Notification: Performance of setup shared object (initialization): time 0.001406/3.048, allocations: 0.8869 MB / 0.9654 GB, free: 8.094 MB / 491.2 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01444/3.062, allocations: 6.152 MB / 0.9714 GB, free: 2.594 MB / 491.2 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04213/3.104, allocations: 13.97 MB / 0.9851 GB, free: 6.531 MB / 0.4953 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02269/3.127, allocations: 8.942 MB / 0.9938 GB, free: 15.03 MB / 0.5109 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000313/3.127, allocations: 68 kB / 0.9939 GB, free: 14.96 MB / 0.5109 GB Notification: Performance of matching and sorting (n=1728) (initialization): time 0.0738/3.201, allocations: 20.45 MB / 1.014 GB, free: 11.89 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002283/3.201, allocations: 104 kB / 1.014 GB, free: 11.79 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.4359/3.637, allocations: 12.9 MB / 1.027 GB, free: 110.8 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02495/3.662, allocations: 3.537 MB / 1.03 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02222/3.685, allocations: 3.09 MB / 1.033 GB, free: 110.7 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01846/3.703, allocations: 11.74 MB / 1.044 GB, free: 103.4 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01766/3.721, allocations: 0.8851 MB / 1.045 GB, free: 103.4 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004049/3.725, allocations: 0.7188 MB / 1.046 GB, free: 103.4 MB / 0.5265 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1059 * Number of states: 0 () * Number of discrete variables: 48 (fixedFrame3.color_x[3],fixedFrame3.color_x[2],fixedFrame3.color_x[1],fixedFrame2.color_x[3],fixedFrame2.color_x[2],fixedFrame2.color_x[1],fixedFrame1.color_x[3],fixedFrame1.color_x[2],fixedFrame1.color_x[1],fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[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],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],bodyShape.color[3],bodyShape.color[2],bodyShape.color[1],bodyShape.body.sphereColor[3],bodyShape.body.sphereColor[2],bodyShape.body.sphereColor[1],bodyShape.frameTranslation.color[3],bodyShape.frameTranslation.color[2],bodyShape.frameTranslation.color[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1580): * Single equations (assignments): 1546 * Array equations: 20 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006155/3.731, allocations: 0.6999 MB / 1.047 GB, free: 103.3 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.04677/3.778, allocations: 13.05 MB / 1.059 GB, free: 103 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003366/3.781, allocations: 0.6505 MB / 1.06 GB, free: 103 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04965/3.831, allocations: 14.16 MB / 1.074 GB, free: 102.6 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04243/3.874, allocations: 12.7 MB / 1.086 GB, free: 102.3 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.052e-05/3.874, allocations: 7.312 kB / 1.086 GB, free: 102.3 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002029/3.874, allocations: 25.27 kB / 1.086 GB, free: 102.3 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09542/3.969, allocations: 31.73 MB / 1.117 GB, free: 91.88 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.97e-05/3.97, allocations: 7.75 kB / 1.117 GB, free: 91.88 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01104/3.981, allocations: 1.141 MB / 1.118 GB, free: 91.85 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02295/4.004, allocations: 3.556 MB / 1.122 GB, free: 91.28 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001708/4.005, allocations: 81.83 kB / 1.122 GB, free: 91.26 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/4.025, allocations: 13.37 MB / 1.135 GB, free: 81.04 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004152/4.03, allocations: 5.647 MB / 1.141 GB, free: 75.19 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05834/4.088, allocations: 23.34 MB / 1.163 GB, free: 54.62 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002353/4.09, allocations: 0.6771 MB / 1.164 GB, free: 53.95 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003149/4.094, allocations: 57.03 kB / 1.164 GB, free: 53.91 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009858/4.103, allocations: 0.517 MB / 1.165 GB, free: 53.64 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002461/4.106, allocations: 382.2 kB / 1.165 GB, free: 53.42 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001153/4.107, allocations: 164 kB / 1.165 GB, free: 53.28 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.009072/4.116, allocations: 3.602 MB / 1.169 GB, free: 50.19 MB / 0.5265 GB Notification: Performance of sort global known variables: time 2.816e-06/4.116, allocations: 0 / 1.169 GB, free: 50.19 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.01738/4.134, allocations: 2.312 MB / 1.171 GB, free: 47.89 MB / 0.5265 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 48 * Number of states: 48 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.frame_a.r_0[1],bodyCylinder.body.frame_a.r_0[2],bodyCylinder.body.frame_a.r_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],BodyBox1.v_0[1],BodyBox1.v_0[2],BodyBox1.v_0[3],BodyBox1.body.frame_a.r_0[1],BodyBox1.body.frame_a.r_0[2],BodyBox1.body.frame_a.r_0[3],BodyBox1.body.w_a[1],BodyBox1.body.w_a[2],BodyBox1.body.w_a[3],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.frame_a.r_0[1],bodyShape.body.frame_a.r_0[2],bodyShape.body.frame_a.r_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (479): * Single equations (assignments): 453 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 12 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 8 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 4 {4,4,4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06128/4.195, allocations: 26.05 MB / 1.196 GB, free: 23.19 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.038/4.233, allocations: 16.3 MB / 1.212 GB, free: 6.711 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 1.822e-05/4.233, allocations: 0 / 1.212 GB, free: 6.711 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.02188/4.255, allocations: 8.001 MB / 1.22 GB, free: 14.51 MB / 0.5421 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007694/4.263, allocations: 0.6403 MB / 1.221 GB, free: 13.88 MB / 0.5421 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4823/4.745, allocations: 27.15 MB / 1.247 GB, free: 127.6 MB / 0.5421 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02243/4.768, allocations: 6.839 MB / 1.254 GB, free: 126.6 MB / 0.5421 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01533/4.783, allocations: 4.513 MB / 1.258 GB, free: 126.6 MB / 0.5421 GB Notification: Performance of SimCode: time 1.613e-06/4.783, allocations: 1.062 kB / 1.258 GB, free: 126.6 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.913/13.7, allocations: 0.7121 GB / 1.97 GB, free: 70.41 MB / 0.5578 GB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_MultiBody_Parts_FlyingBodies.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat does not exist to compare? outputFormat=mat