Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FlyingBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FlyingBodies,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001548/0.001548, allocations: 203.6 kB / 8.537 MB, free: 1.793 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 225.5 MB / 234.4 MB, free: 3.305 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009165/0.0009166, allocations: 95.86 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1706/0.1706, allocations: 45.14 MB / 383.3 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1817/0.3523, allocations: 69.36 MB / 452.7 MB, free: 76.08 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07802/0.4304, allocations: 63.25 MB / 0.5039 GB, free: 12.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2519/0.6823, allocations: 104.8 MB / 0.6062 GB, free: 14.52 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001795/0.6825, allocations: 71.44 kB / 0.6063 GB, free: 14.49 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.6715/1.354, allocations: 210.7 MB / 0.812 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/1.354, allocations: 6.844 kB / 0.812 GB, free: 108.9 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04594/1.4, allocations: 10.78 MB / 0.8226 GB, free: 108.2 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02414/1.424, allocations: 10.41 MB / 0.8327 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002448/1.425, allocations: 269.2 kB / 0.833 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00288/1.427, allocations: 0.499 MB / 0.8335 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02387/1.451, allocations: 15.64 MB / 0.8487 GB, free: 103.7 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02845/1.48, allocations: 20.51 MB / 0.8688 GB, free: 85.05 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000241/1.48, allocations: 74.42 kB / 0.8689 GB, free: 84.98 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001163/1.481, allocations: 28 kB / 0.8689 GB, free: 84.95 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002699/1.484, allocations: 2.646 MB / 0.8715 GB, free: 82.81 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08766/1.572, allocations: 78.5 MB / 0.9481 GB, free: 3.992 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2519/1.824, allocations: 7.376 MB / 0.9553 GB, free: 160.3 MB / 0.5262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007142/1.831, allocations: 6.827 MB / 0.962 GB, free: 160.2 MB / 0.5262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03001/1.861, allocations: 21.35 MB / 0.9828 GB, free: 157.2 MB / 0.5262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/1.861, allocations: 82.88 kB / 0.9829 GB, free: 157.2 MB / 0.5262 GB Notification: Performance of pre-optimization done (n=539): time 8.336e-06/1.861, allocations: 0 / 0.9829 GB, free: 157.2 MB / 0.5262 GB Notification: Performance of matching and sorting (n=567): time 0.05524/1.916, allocations: 33.17 MB / 1.015 GB, free: 148.9 MB / 0.5262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.801e-05/1.916, allocations: 257.1 kB / 1.016 GB, free: 148.7 MB / 0.5262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007099/1.923, allocations: 5.774 MB / 1.021 GB, free: 146.7 MB / 0.5262 GB Notification: Performance of collectPreVariables (initialization): time 0.0007686/1.924, allocations: 25.7 kB / 1.021 GB, free: 146.7 MB / 0.5262 GB Notification: Performance of collectInitialEqns (initialization): time 0.002083/1.926, allocations: 5.677 MB / 1.027 GB, free: 142.3 MB / 0.5262 GB Notification: Performance of collectInitialBindings (initialization): time 0.00184/1.928, allocations: 2.055 MB / 1.029 GB, free: 140.8 MB / 0.5262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006278/1.929, allocations: 3.312 kB / 1.029 GB, free: 140.8 MB / 0.5262 GB Notification: Performance of setup shared object (initialization): time 0.0005185/1.929, allocations: 0.8724 MB / 1.03 GB, free: 140.3 MB / 0.5262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007174/1.936, allocations: 6.366 MB / 1.036 GB, free: 138.1 MB / 0.5262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/1.946, allocations: 13 MB / 1.049 GB, free: 126.5 MB / 0.5262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009788/1.956, allocations: 9.229 MB / 1.058 GB, free: 119.1 MB / 0.5262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-05/1.956, allocations: 68 kB / 1.058 GB, free: 119 MB / 0.5262 GB Notification: Performance of matching and sorting (n=1728) (initialization): time 0.03464/1.991, allocations: 20.78 MB / 1.078 GB, free: 101.8 MB / 0.5262 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/1.991, allocations: 4 kB / 1.078 GB, free: 101.8 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02292/2.014, allocations: 13.03 MB / 1.091 GB, free: 90.72 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01307/2.027, allocations: 3.233 MB / 1.094 GB, free: 88.43 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01015/2.037, allocations: 2.944 MB / 1.097 GB, free: 85.88 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009008/2.046, allocations: 11.44 MB / 1.108 GB, free: 74.75 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01024/2.057, allocations: 0.6502 MB / 1.108 GB, free: 74.29 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/2.058, allocations: 0.7142 MB / 1.109 GB, free: 73.6 MB / 0.5262 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.001635/2.06, allocations: 0.6906 MB / 1.11 GB, free: 72.91 MB / 0.5262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009283/2.061, allocations: 0.6468 MB / 1.11 GB, free: 72.25 MB / 0.5262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/2.063, allocations: 1.064 MB / 1.112 GB, free: 71.27 MB / 0.5262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02155/2.084, allocations: 12.36 MB / 1.124 GB, free: 60.92 MB / 0.5262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.747e-05/2.084, allocations: 8 kB / 1.124 GB, free: 60.91 MB / 0.5262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-05/2.084, allocations: 21.8 kB / 1.124 GB, free: 60.91 MB / 0.5262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.012/2.096, allocations: 9.432 MB / 1.133 GB, free: 53.73 MB / 0.5262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.305e-05/2.096, allocations: 0.6562 kB / 1.133 GB, free: 53.73 MB / 0.5262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00498/2.101, allocations: 0.9111 MB / 1.134 GB, free: 53 MB / 0.5262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01265/2.114, allocations: 3.243 MB / 1.137 GB, free: 50.82 MB / 0.5262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000675/2.115, allocations: 63.66 kB / 1.137 GB, free: 50.79 MB / 0.5262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01193/2.127, allocations: 12.95 MB / 1.15 GB, free: 38.68 MB / 0.5262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002378/2.129, allocations: 5.498 MB / 1.155 GB, free: 32.86 MB / 0.5262 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02961/2.159, allocations: 20.85 MB / 1.175 GB, free: 12.75 MB / 0.5262 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1794/2.338, allocations: 28.92 MB / 1.204 GB, free: 137 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/2.34, allocations: 0.6877 MB / 1.204 GB, free: 136.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/2.341, allocations: 32.72 kB / 1.204 GB, free: 136.9 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003903/2.345, allocations: 316.3 kB / 1.205 GB, free: 136.9 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006928/2.346, allocations: 237.5 kB / 1.205 GB, free: 136.9 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005403/2.346, allocations: 130.5 kB / 1.205 GB, free: 136.9 MB / 0.5262 GB Notification: Performance of sort global known variables: time 0.004934/2.351, allocations: 3.873 MB / 1.209 GB, free: 136.7 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.009975/2.361, allocations: 2.326 MB / 1.211 GB, free: 136.7 MB / 0.5262 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.0007168/2.362, allocations: 209 kB / 1.211 GB, free: 136.6 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.02078/2.383, allocations: 16.49 MB / 1.227 GB, free: 135.1 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/2.383, allocations: 0 / 1.227 GB, free: 135.1 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.01071/2.393, allocations: 7.609 MB / 1.235 GB, free: 133.6 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003346/2.397, allocations: 0.6112 MB / 1.235 GB, free: 133.6 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03422/2.431, allocations: 22.57 MB / 1.257 GB, free: 127.6 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01054/2.442, allocations: 7.476 MB / 1.265 GB, free: 125.5 MB / 0.5262 GB Notification: Performance of SimCode: time 1.082e-06/2.442, allocations: 0 / 1.265 GB, free: 125.5 MB / 0.5262 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FlyingBodies_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FlyingBodies.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FlyingBodies.pipe 2>&1)