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.002285/0.002285, allocations: 181.5 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.118/2.118, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001093/0.001093, allocations: 82.7 kB / 267.5 MB, free: 14.04 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.2875/0.2875, allocations: 43.49 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.448e-05/3.476e-05, allocations: 4 kB / 425.4 MB, free: 23.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 58.86 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6472/0.7635, allocations: 102.7 MB / 0.5732 GB, free: 0.7773 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002823/0.7639, allocations: 82.23 kB / 0.5732 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.171/1.935, allocations: 197.5 MB / 0.7661 GB, free: 99.66 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.093e-06/1.935, allocations: 0 / 0.7661 GB, free: 99.66 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0005515/1.935, allocations: 162.1 kB / 0.7662 GB, free: 99.66 MB / 0.4948 GB 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.06726/2.003, allocations: 9.587 MB / 0.7756 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.608e-05/2.003, allocations: 7.719 kB / 0.7756 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01013/2.013, allocations: 1.66 MB / 0.7772 GB, free: 96.16 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08966/2.103, allocations: 12.06 MB / 0.789 GB, free: 95.5 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04334/2.146, allocations: 11.91 MB / 0.8006 GB, free: 94.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007691/2.147, allocations: 0.6265 MB / 0.8012 GB, free: 93.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005862/2.153, allocations: 0.8427 MB / 0.8021 GB, free: 92.99 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06476/2.218, allocations: 21.55 MB / 0.8231 GB, free: 71.23 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006086/2.218, allocations: 75.28 kB / 0.8232 GB, free: 71.15 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004841/2.223, allocations: 384 kB / 0.8236 GB, free: 70.85 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005483/2.229, allocations: 2.47 MB / 0.826 GB, free: 68.38 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05755/2.286, allocations: 20.9 MB / 0.8464 GB, free: 47.43 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.565/2.851, allocations: 81.07 MB / 0.9255 GB, free: 49.05 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03221/2.884, allocations: 9.685 MB / 0.935 GB, free: 47.52 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01305/2.897, allocations: 6.362 MB / 0.9412 GB, free: 47.48 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008127/2.898, allocations: 75.86 kB / 0.9413 GB, free: 47.48 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.151e-05/2.898, allocations: 88.53 kB / 0.9414 GB, free: 47.44 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=583): time 1.138e-05/2.898, allocations: 0 / 0.9414 GB, free: 47.44 MB / 0.4948 GB Notification: Performance of matching and sorting (n=611): time 0.1268/3.025, allocations: 34.88 MB / 0.9754 GB, free: 41.5 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00493/3.03, allocations: 6.134 MB / 0.9814 GB, free: 35.75 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01549/3.045, allocations: 5.68 MB / 0.987 GB, free: 34.81 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001589/3.047, allocations: 110.1 kB / 0.9871 GB, free: 34.72 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.005306/3.052, allocations: 5.68 MB / 0.9926 GB, free: 30.39 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003886/3.056, allocations: 2.245 MB / 0.9948 GB, free: 28.73 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002607/3.059, allocations: 246 kB / 0.995 GB, free: 28.54 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001322/3.06, allocations: 0.8565 MB / 0.9959 GB, free: 28 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01598/3.076, allocations: 6.257 MB / 1.002 GB, free: 25.94 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02089/3.097, allocations: 12.46 MB / 1.014 GB, free: 15.71 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02096/3.118, allocations: 8.916 MB / 1.023 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002783/3.118, allocations: 61.09 kB / 1.023 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1640) (initialization): time 0.0691/3.187, allocations: 21.4 MB / 1.044 GB, free: 15.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002127/3.188, allocations: 103.3 kB / 1.044 GB, free: 15.73 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04784/3.236, allocations: 13.22 MB / 1.057 GB, free: 4.695 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02509/3.261, allocations: 3.575 MB / 1.06 GB, free: 2.273 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02067/3.281, allocations: 2.925 MB / 1.063 GB, free: 15.81 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01987/3.301, allocations: 12.17 MB / 1.075 GB, free: 3.996 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01723/3.319, allocations: 1.105 MB / 1.076 GB, free: 3.219 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003533/3.322, allocations: 0.6722 MB / 1.077 GB, free: 2.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 975 * 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 (1492): * Single equations (assignments): 1458 * 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.005587/3.328, allocations: 0.9691 MB / 1.078 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002499/3.33, allocations: 0.6517 MB / 1.078 GB, free: 0.9453 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05577/3.386, allocations: 14.6 MB / 1.093 GB, free: 5.289 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.4604/3.847, allocations: 13.19 MB / 1.106 GB, free: 122.9 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.626e-05/3.847, allocations: 16.02 kB / 1.106 GB, free: 122.9 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000164/3.847, allocations: 23.67 kB / 1.106 GB, free: 122.9 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1077/3.955, allocations: 33.35 MB / 1.138 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.825e-05/3.955, allocations: 10.09 kB / 1.138 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01106/3.966, allocations: 1.134 MB / 1.139 GB, free: 121.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02337/3.989, allocations: 3.613 MB / 1.143 GB, free: 121.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001918/3.991, allocations: 144 kB / 1.143 GB, free: 121.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02111/4.012, allocations: 13.61 MB / 1.156 GB, free: 113.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004545/4.017, allocations: 5.893 MB / 1.162 GB, free: 107.7 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06358/4.081, allocations: 23.59 MB / 1.185 GB, free: 98.19 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002689/4.083, allocations: 0.6895 MB / 1.186 GB, free: 98.06 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003369/4.087, allocations: 130.8 kB / 1.186 GB, free: 97.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009927/4.097, allocations: 0.5956 MB / 1.186 GB, free: 97.93 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002429/4.099, allocations: 374.9 kB / 1.187 GB, free: 97.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001248/4.101, allocations: 162.6 kB / 1.187 GB, free: 97.85 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01109/4.112, allocations: 3.933 MB / 1.191 GB, free: 96.51 MB / 0.5417 GB Notification: Performance of sort global known variables: time 8.11e-07/4.112, allocations: 0 / 1.191 GB, free: 96.51 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.01662/4.128, allocations: 2.549 MB / 1.193 GB, free: 96.26 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * 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 (475): * Single equations (assignments): 449 * 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.06493/4.193, allocations: 26.17 MB / 1.219 GB, free: 79.62 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.03868/4.232, allocations: 16.73 MB / 1.235 GB, free: 64.75 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.314e-05/4.232, allocations: 0 / 1.235 GB, free: 64.75 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.02113/4.253, allocations: 8.157 MB / 1.243 GB, free: 57.34 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00849/4.262, allocations: 0.8724 MB / 1.244 GB, free: 56.62 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08553/4.347, allocations: 27.65 MB / 1.271 GB, free: 32.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01803/4.366, allocations: 6.844 MB / 1.278 GB, free: 27.39 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01341/4.379, allocations: 4.455 MB / 1.282 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of SimCode: time 1.212e-06/4.379, allocations: 0 / 1.282 GB, free: 22.93 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.429/13.81, allocations: 0.7151 GB / 1.997 GB, free: 118 MB / 0.573 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