Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",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.001057/0.001057, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.165/1.165, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009049/0.0009048, allocations: 86.86 kB / 286.3 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08939/0.09032, allocations: 56.91 MB / 343.2 MB, free: 8.613 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07952/0.1699, allocations: 51.47 MB / 394.7 MB, free: 5.102 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2125/0.3824, allocations: 95.4 MB / 490.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002166/0.3827, allocations: 89.12 kB / 490.2 MB, free: 13.9 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.2045/0.5872, allocations: 76.59 MB / 0.5535 GB, free: 6.223 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.5872, allocations: 11.98 kB / 0.5535 GB, free: 6.211 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009004/0.5963, allocations: 1.808 MB / 0.5553 GB, free: 4.395 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009876/0.6062, allocations: 3.812 MB / 0.559 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.6063, allocations: 120 kB / 0.5591 GB, free: 412 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007656/0.6071, allocations: 219.9 kB / 0.5593 GB, free: 192 kB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007988/0.6151, allocations: 5.504 MB / 0.5647 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01082/0.6259, allocations: 8.441 MB / 0.5729 GB, free: 1.289 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001229/0.6261, allocations: 63.39 kB / 0.573 GB, free: 1.227 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004037/0.6265, allocations: 36 kB / 0.573 GB, free: 1.191 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001155/0.6277, allocations: 0.9582 MB / 0.574 GB, free: 240 kB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1746/0.8023, allocations: 43.51 MB / 0.6165 GB, free: 35.22 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002214/0.8046, allocations: 2.377 MB / 0.6188 GB, free: 34.57 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.8059, allocations: 1.508 MB / 0.6203 GB, free: 34.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006124/0.812, allocations: 5.133 MB / 0.6253 GB, free: 32.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.8121, allocations: 47.72 kB / 0.6253 GB, free: 32.82 MB / 442.7 MB Notification: Performance of pre-optimization done (n=132): time 3.887e-06/0.8121, allocations: 0 / 0.6253 GB, free: 32.82 MB / 442.7 MB Notification: Performance of matching and sorting (n=139): time 0.01508/0.8272, allocations: 8.646 MB / 0.6338 GB, free: 30.47 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.8272, allocations: 142.6 kB / 0.6339 GB, free: 30.31 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002966/0.8302, allocations: 2.805 MB / 0.6366 GB, free: 30 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.8303, allocations: 28.86 kB / 0.6367 GB, free: 29.96 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008988/0.8312, allocations: 2.676 MB / 0.6393 GB, free: 28.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000369/0.8316, allocations: 0.5558 MB / 0.6398 GB, free: 27.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.8318, allocations: 2.625 kB / 0.6398 GB, free: 27.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.832, allocations: 0.5442 MB / 0.6404 GB, free: 27.58 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/0.8341, allocations: 1.84 MB / 0.6422 GB, free: 27.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003139/0.8373, allocations: 5.39 MB / 0.6474 GB, free: 22.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00319/0.8405, allocations: 3.136 MB / 0.6505 GB, free: 22.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.032e-05/0.8405, allocations: 36 kB / 0.6505 GB, free: 22.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.01639/0.8569, allocations: 7.505 MB / 0.6578 GB, free: 19.74 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.857, allocations: 4.656 kB / 0.6578 GB, free: 19.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009276/0.8663, allocations: 2.831 MB / 0.6606 GB, free: 19.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009194/0.8755, allocations: 1.568 MB / 0.6621 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/0.8793, allocations: 1.28 MB / 0.6634 GB, free: 18.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006553/0.8859, allocations: 5.251 MB / 0.6685 GB, free: 15.32 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004039/0.8899, allocations: 223.2 kB / 0.6687 GB, free: 15.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005936/0.8905, allocations: 353.2 kB / 0.6691 GB, free: 15.25 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 689 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006373/0.8912, allocations: 434.2 kB / 0.6695 GB, free: 14.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004053/0.8916, allocations: 281.1 kB / 0.6698 GB, free: 14.75 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005134/0.8967, allocations: 2.625 MB / 0.6723 GB, free: 13.88 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004108/0.9008, allocations: 2.245 MB / 0.6745 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.979e-06/0.9009, allocations: 3.281 kB / 0.6745 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.9009, allocations: 6.891 kB / 0.6745 GB, free: 13.17 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.9121, allocations: 7.194 MB / 0.6815 GB, free: 10.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/0.9122, allocations: 0 / 0.6815 GB, free: 10.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.9133, allocations: 209.8 kB / 0.6817 GB, free: 10.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002985/0.9162, allocations: 0.9706 MB / 0.6827 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.9164, allocations: 15.88 kB / 0.6827 GB, free: 10.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004984/0.9214, allocations: 4.813 MB / 0.6874 GB, free: 7.109 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009087/0.9223, allocations: 1.381 MB / 0.6888 GB, free: 21.74 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006741/0.9291, allocations: 4.993 MB / 0.6936 GB, free: 19.62 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008443/0.9375, allocations: 6.946 MB / 0.7004 GB, free: 16.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006375/0.9382, allocations: 345 kB / 0.7007 GB, free: 16.25 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003937/0.9386, allocations: 17.73 kB / 0.7008 GB, free: 16.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001278/0.9399, allocations: 63.67 kB / 0.7008 GB, free: 16.25 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001616/0.9401, allocations: 63.94 kB / 0.7009 GB, free: 16.23 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001272/0.9402, allocations: 40.05 kB / 0.7009 GB, free: 16.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.002285/0.9425, allocations: 1.867 MB / 0.7027 GB, free: 15.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004469/0.947, allocations: 0.8766 MB / 0.7036 GB, free: 15.53 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000383/0.9474, allocations: 163.7 kB / 0.7038 GB, free: 15.42 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00731/0.9547, allocations: 4.922 MB / 0.7086 GB, free: 13.58 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.9547, allocations: 192 / 0.7086 GB, free: 13.58 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003702/0.9584, allocations: 1.92 MB / 0.7104 GB, free: 12.57 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/0.96, allocations: 304.9 kB / 0.7107 GB, free: 12.3 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/0.9727, allocations: 7.041 MB / 0.7176 GB, free: 6.027 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003981/0.9767, allocations: 3.259 MB / 0.7208 GB, free: 3.473 MB / 458.7 MB Notification: Performance of SimCode: time 8.02e-07/0.9767, allocations: 0 / 0.7208 GB, free: 3.473 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1)