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.002365/0.002364, 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.117/2.117, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001157/0.001157, allocations: 92.42 kB / 270.9 MB, free: 8.395 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.5701/0.5701, allocations: 43.55 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007237/0.0007238, allocations: 12 kB / 431.5 MB, free: 6.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1338, allocations: 58.84 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5741/0.708, allocations: 102.8 MB / 0.5792 GB, free: 15.79 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.7083, allocations: 75.95 kB / 0.5793 GB, free: 15.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.13/1.838, allocations: 197.3 MB / 0.7719 GB, free: 74.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.815e-06/1.838, allocations: 0 / 0.7719 GB, free: 74.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.000494/1.839, allocations: 163 kB / 0.772 GB, free: 74.33 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: 3305 * Number of variables: 3305 Notification: Performance of Generate backend data structure: time 0.06829/1.907, allocations: 10.14 MB / 0.782 GB, free: 68.2 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/1.907, allocations: 15.56 kB / 0.782 GB, free: 68.19 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009674/1.917, allocations: 1.658 MB / 0.7836 GB, free: 66.99 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09084/2.008, allocations: 12.03 MB / 0.7953 GB, free: 54.93 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04327/2.051, allocations: 11.96 MB / 0.807 GB, free: 42.88 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008899/2.052, allocations: 0.6227 MB / 0.8076 GB, free: 42.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006198/2.058, allocations: 0.8355 MB / 0.8084 GB, free: 41.42 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0677/2.126, allocations: 21.76 MB / 0.8297 GB, free: 18.62 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006469/2.127, allocations: 79.3 kB / 0.8298 GB, free: 18.54 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005667/2.132, allocations: 383.7 kB / 0.8301 GB, free: 18.17 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005523/2.138, allocations: 2.462 MB / 0.8325 GB, free: 15.7 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06354/2.202, allocations: 21.26 MB / 0.8533 GB, free: 10.39 MB / 0.4949 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5982/2.8, allocations: 81.07 MB / 0.9325 GB, free: 44.39 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03248/2.832, allocations: 9.753 MB / 0.942 GB, free: 42.69 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008872/2.833, allocations: 75.61 kB / 0.942 GB, free: 42.68 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.505e-05/2.833, allocations: 87.44 kB / 0.9421 GB, free: 42.61 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=583): time 1.126e-05/2.834, allocations: 0 / 0.9421 GB, free: 42.61 MB / 0.4949 GB Notification: Performance of matching and sorting (n=611): time 0.1457/2.979, allocations: 43.07 MB / 0.9842 GB, free: 25.29 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004861/2.984, allocations: 6.179 MB / 0.9902 GB, free: 19.26 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01476/2.999, allocations: 5.772 MB / 0.9959 GB, free: 17.34 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.001577/3.001, allocations: 107.8 kB / 0.996 GB, free: 17.25 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.005098/3.006, allocations: 5.68 MB / 1.002 GB, free: 13.15 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.003856/3.01, allocations: 2.246 MB / 1.004 GB, free: 11.48 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002729/3.012, allocations: 241.2 kB / 1.004 GB, free: 11.3 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001298/3.014, allocations: 0.8538 MB / 1.005 GB, free: 10.76 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01608/3.03, allocations: 6.384 MB / 1.011 GB, free: 8.699 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02224/3.052, allocations: 12.59 MB / 1.023 GB, free: 12.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02459/3.077, allocations: 8.975 MB / 1.032 GB, free: 4.766 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002702/3.077, allocations: 60 kB / 1.032 GB, free: 4.707 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1640) (initialization): time 0.0784/3.156, allocations: 21.65 MB / 1.053 GB, free: 2.387 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001994/3.156, allocations: 99.12 kB / 1.053 GB, free: 2.293 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05186/3.208, allocations: 13.41 MB / 1.066 GB, free: 7.402 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02671/3.234, allocations: 3.576 MB / 1.07 GB, free: 4.992 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02126/3.256, allocations: 2.925 MB / 1.073 GB, free: 2.527 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4279/3.684, allocations: 12.44 MB / 1.085 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01715/3.701, allocations: 1.103 MB / 1.086 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003453/3.704, allocations: 0.6711 MB / 1.087 GB, free: 114.8 MB / 0.5417 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 () * Number of clocked 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.01478/3.719, allocations: 4.496 MB / 1.091 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003279/3.723, allocations: 0.6596 MB / 1.092 GB, free: 114.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05249/3.775, allocations: 14.66 MB / 1.106 GB, free: 114.4 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.04791/3.823, allocations: 13.12 MB / 1.119 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001134/3.823, allocations: 13.44 kB / 1.119 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002019/3.823, allocations: 25.75 kB / 1.119 GB, free: 114.1 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1089/3.932, allocations: 33.45 MB / 1.152 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.851e-05/3.932, allocations: 7.406 kB / 1.152 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01119/3.944, allocations: 1.133 MB / 1.153 GB, free: 104.6 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0242/3.968, allocations: 3.619 MB / 1.156 GB, free: 104 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001934/3.97, allocations: 144.2 kB / 1.156 GB, free: 103.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/3.992, allocations: 13.91 MB / 1.17 GB, free: 94.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004845/3.997, allocations: 5.943 MB / 1.176 GB, free: 88.81 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08862/4.085, allocations: 23.74 MB / 1.199 GB, free: 77.27 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003605/4.089, allocations: 0.6949 MB / 1.2 GB, free: 76.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004291/4.094, allocations: 128.4 kB / 1.2 GB, free: 76.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01324/4.107, allocations: 0.5953 MB / 1.2 GB, free: 76.27 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003364/4.11, allocations: 379.7 kB / 1.201 GB, free: 76.06 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00227/4.113, allocations: 159.7 kB / 1.201 GB, free: 75.93 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.01602/4.129, allocations: 4.017 MB / 1.205 GB, free: 72.67 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.032e-06/4.129, allocations: 0 / 1.205 GB, free: 72.67 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02341/4.152, allocations: 2.541 MB / 1.207 GB, free: 70.14 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 () * Number of clocked 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.09276/4.245, allocations: 26.34 MB / 1.233 GB, free: 46.77 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.05257/4.298, allocations: 16.91 MB / 1.249 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.641e-05/4.298, allocations: 0 / 1.249 GB, free: 31.76 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0226/4.32, allocations: 8.231 MB / 1.257 GB, free: 23.3 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008312/4.329, allocations: 0.8637 MB / 1.258 GB, free: 22.49 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6888/5.018, allocations: 240 MB / 1.493 GB, free: 18.61 MB / 0.6199 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01988/5.038, allocations: 6.849 MB / 1.499 GB, free: 17.66 MB / 0.6199 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01531/5.053, allocations: 4.459 MB / 1.504 GB, free: 14.07 MB / 0.6199 GB Notification: Performance of SimCode: time 1.252e-06/5.053, allocations: 0 / 1.504 GB, free: 14.07 MB / 0.6199 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 9.457/14.51, allocations: 0.7135 GB / 2.217 GB, free: 192.2 MB / 0.6199 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