Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009605/0.0009605, allocations: 182.3 kB / 8.52 MB, free: 1.832 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.153/1.153, allocations: 221.4 MB / 230.3 MB, free: 7.645 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009263/0.0009265, allocations: 90.3 kB / 281.2 MB, free: 5.465 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1594/0.1594, allocations: 44.15 MB / 376.1 MB, free: 3.23 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1624/0.3218, allocations: 68.03 MB / 444.1 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08762/0.4095, allocations: 61.91 MB / 0.4942 GB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2458/0.6553, allocations: 103.9 MB / 0.5957 GB, free: 8.781 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000184/0.6555, allocations: 76.61 kB / 0.5957 GB, free: 8.707 MB / 410.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.6522/1.308, allocations: 203.4 MB / 0.7944 GB, free: 86 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/1.308, allocations: 15.94 kB / 0.7944 GB, free: 85.98 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04477/1.353, allocations: 10.58 MB / 0.8048 GB, free: 75.37 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02584/1.378, allocations: 11.32 MB / 0.8158 GB, free: 64.04 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/1.379, allocations: 268 kB / 0.8161 GB, free: 63.78 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002054/1.381, allocations: 0.4997 MB / 0.8166 GB, free: 63.28 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02023/1.401, allocations: 15.63 MB / 0.8318 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0282/1.429, allocations: 20.52 MB / 0.8519 GB, free: 26.09 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002192/1.43, allocations: 79.36 kB / 0.8519 GB, free: 26.01 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001098/1.431, allocations: 28 kB / 0.852 GB, free: 25.98 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002392/1.433, allocations: 2.633 MB / 0.8545 GB, free: 23.34 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3282/1.761, allocations: 78.48 MB / 0.9312 GB, free: 118 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007958/1.769, allocations: 7.393 MB / 0.9384 GB, free: 118 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006818/1.776, allocations: 6.821 MB / 0.9451 GB, free: 117.9 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0298/1.806, allocations: 21.35 MB / 0.9659 GB, free: 111.8 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.639e-05/1.806, allocations: 85.38 kB / 0.966 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=539): time 7.845e-06/1.806, allocations: 3.156 kB / 0.966 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=567): time 0.05846/1.864, allocations: 33.17 MB / 0.9984 GB, free: 98.98 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/1.865, allocations: 255.3 kB / 0.9986 GB, free: 98.72 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008226/1.873, allocations: 5.766 MB / 1.004 GB, free: 96.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0009852/1.874, allocations: 33.86 kB / 1.004 GB, free: 96.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.002603/1.876, allocations: 5.672 MB / 1.01 GB, free: 92.35 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002212/1.879, allocations: 2.058 MB / 1.012 GB, free: 90.8 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006661/1.879, allocations: 0 / 1.012 GB, free: 90.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0005329/1.88, allocations: 0.8864 MB / 1.013 GB, free: 90.26 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007513/1.887, allocations: 6.363 MB / 1.019 GB, free: 87.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009/1.896, allocations: 13 MB / 1.032 GB, free: 72 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/1.907, allocations: 9.227 MB / 1.041 GB, free: 64.57 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.829e-05/1.907, allocations: 64 kB / 1.041 GB, free: 64.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1728) (initialization): time 0.03547/1.942, allocations: 20.78 MB / 1.061 GB, free: 47.07 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/1.942, allocations: 8 kB / 1.061 GB, free: 47.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0251/1.967, allocations: 13.02 MB / 1.074 GB, free: 35.99 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01384/1.981, allocations: 3.235 MB / 1.077 GB, free: 33.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01091/1.992, allocations: 2.934 MB / 1.08 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009206/2.001, allocations: 11.44 MB / 1.091 GB, free: 19.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01136/2.013, allocations: 0.6556 MB / 1.092 GB, free: 19.49 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002424/2.015, allocations: 0.7128 MB / 1.092 GB, free: 18.8 MB / 0.5105 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 {(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 prepare postOptimizeDAE: time 0.003098/2.018, allocations: 0.6939 MB / 1.093 GB, free: 18.11 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001534/2.02, allocations: 0.6478 MB / 1.094 GB, free: 17.45 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002658/2.023, allocations: 1.066 MB / 1.095 GB, free: 16.46 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02245/2.045, allocations: 12.36 MB / 1.107 GB, free: 6.098 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.686e-05/2.045, allocations: 4 kB / 1.107 GB, free: 6.094 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001133/2.045, allocations: 26.88 kB / 1.107 GB, free: 6.09 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1576/2.203, allocations: 9.677 MB / 1.116 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.741e-05/2.203, allocations: 3.812 kB / 1.116 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005386/2.208, allocations: 0.9144 MB / 1.117 GB, free: 134 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01227/2.221, allocations: 3.234 MB / 1.12 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006433/2.221, allocations: 66.64 kB / 1.12 GB, free: 133.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/2.232, allocations: 12.94 MB / 1.133 GB, free: 126.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002374/2.235, allocations: 5.502 MB / 1.138 GB, free: 121.4 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03107/2.266, allocations: 20.85 MB / 1.159 GB, free: 120.6 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03676/2.303, allocations: 28.92 MB / 1.187 GB, free: 115.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001655/2.304, allocations: 0.6856 MB / 1.188 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001762/2.306, allocations: 35.48 kB / 1.188 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004482/2.311, allocations: 311.4 kB / 1.188 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006903/2.311, allocations: 239.9 kB / 1.188 GB, free: 115 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004741/2.312, allocations: 132.1 kB / 1.188 GB, free: 115 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.006128/2.318, allocations: 3.881 MB / 1.192 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.011/2.329, allocations: 2.316 MB / 1.194 GB, free: 113.6 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 48 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.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],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.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],$STATESET4.x[3],$STATESET4.x[2],$STATESET4.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 (435): * Single equations (assignments): 409 * 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.0009909/2.33, allocations: 212.4 kB / 1.194 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.02358/2.354, allocations: 16.48 MB / 1.211 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/2.354, allocations: 0 / 1.211 GB, free: 107.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01131/2.365, allocations: 7.607 MB / 1.218 GB, free: 101.9 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004207/2.369, allocations: 0.614 MB / 1.219 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03877/2.408, allocations: 22.58 MB / 1.241 GB, free: 81.87 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01194/2.42, allocations: 7.478 MB / 1.248 GB, free: 76.24 MB / 0.5105 GB Notification: Performance of SimCode: time 9.62e-07/2.42, allocations: 0 / 1.248 GB, free: 76.24 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FlyingBodies_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Parts_FlyingBodies.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe 2>&1)