Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies.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.FreeBodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FreeBodies",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Parts.FreeBodies,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FreeBodies",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.001809/0.001809, allocations: 195.5 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 225.5 MB / 234.4 MB, free: 3.34 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009329/0.000933, allocations: 97.81 kB / 286.3 MB, free: 5.297 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1776/0.1776, allocations: 45.14 MB / 383.3 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1876/0.3652, allocations: 69.36 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07947/0.4447, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.7067, allocations: 108.8 MB / 0.6102 GB, free: 10.29 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001841/0.707, allocations: 68.16 kB / 0.6102 GB, free: 10.26 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: 2624 * Number of variables: 2624 Notification: Performance of Generate backend data structure: time 0.6425/1.349, allocations: 157.1 MB / 0.7637 GB, free: 66.32 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/1.35, allocations: 7.469 kB / 0.7637 GB, free: 66.32 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03059/1.38, allocations: 7.422 MB / 0.7709 GB, free: 65.8 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02138/1.402, allocations: 9.555 MB / 0.7802 GB, free: 64.87 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/1.402, allocations: 255.9 kB / 0.7805 GB, free: 64.87 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001521/1.403, allocations: 469 kB / 0.7809 GB, free: 64.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01478/1.418, allocations: 10.94 MB / 0.7916 GB, free: 64.82 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01894/1.437, allocations: 16.08 MB / 0.8073 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002406/1.437, allocations: 103.5 kB / 0.8074 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008119/1.438, allocations: 45.25 kB / 0.8075 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002116/1.44, allocations: 1.807 MB / 0.8092 GB, free: 60.69 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06938/1.51, allocations: 81.68 MB / 0.889 GB, free: 9.883 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005387/1.515, allocations: 4.807 MB / 0.8937 GB, free: 7.508 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004129/1.519, allocations: 3.819 MB / 0.8974 GB, free: 5.836 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01899/1.538, allocations: 13.13 MB / 0.9102 GB, free: 14.67 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.223e-05/1.538, allocations: 72.28 kB / 0.9103 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=301): time 5.54e-06/1.538, allocations: 0 / 0.9103 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=329): time 0.05376/1.592, allocations: 22.8 MB / 0.9326 GB, free: 0 / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/1.592, allocations: 244.1 kB / 0.9328 GB, free: 15.71 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007269/1.6, allocations: 5.186 MB / 0.9379 GB, free: 11.14 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.000377/1.6, allocations: 35.39 kB / 0.9379 GB, free: 11.11 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.002631/1.603, allocations: 4.829 MB / 0.9426 GB, free: 6.777 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001351/1.604, allocations: 1.288 MB / 0.9439 GB, free: 5.621 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004206/1.604, allocations: 0 / 0.9439 GB, free: 5.621 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0004979/1.605, allocations: 0.7373 MB / 0.9446 GB, free: 5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005518/1.61, allocations: 3.882 MB / 0.9484 GB, free: 1.531 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.018/1.628, allocations: 10.58 MB / 0.9587 GB, free: 7.309 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009091/1.638, allocations: 6.253 MB / 0.9648 GB, free: 1.977 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001016/1.638, allocations: 60 kB / 0.9649 GB, free: 1.918 MB / 0.573 GB Notification: Performance of matching and sorting (n=1340) (initialization): time 0.2825/1.92, allocations: 15.26 MB / 0.9798 GB, free: 189.2 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.92, allocations: 5.094 kB / 0.9798 GB, free: 189.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01837/1.939, allocations: 7.702 MB / 0.9873 GB, free: 189 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01644/1.955, allocations: 3.424 MB / 0.9907 GB, free: 188.8 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007956/1.963, allocations: 2.374 MB / 0.993 GB, free: 188.8 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01259/1.976, allocations: 12.67 MB / 1.005 GB, free: 181.3 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008626/1.984, allocations: 0.5247 MB / 1.006 GB, free: 181.3 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/1.985, allocations: 0.6186 MB / 1.006 GB, free: 181.3 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 960 * Number of states: 0 () * Number of discrete variables: 78 (spring6.color[3],spring6.color[2],spring6.color[1],spring6.massColor[3],spring6.massColor[2],spring6.massColor[1],pointMass.sphereColor[3],pointMass.sphereColor[2],pointMass.sphereColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],spring5.color[3],spring5.color[2],spring5.color[1],spring5.massColor[3],spring5.massColor[2],spring5.massColor[1],spring4.color[3],spring4.color[2],spring4.color[1],spring4.massColor[3],spring4.massColor[2],spring4.massColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[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],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 (1264): * Single equations (assignments): 1239 * Array equations: 11 * 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.001181/1.987, allocations: 0.6387 MB / 1.007 GB, free: 181 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007369/1.987, allocations: 0.5713 MB / 1.008 GB, free: 181 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0151/2.002, allocations: 7.71 MB / 1.015 GB, free: 180.7 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01339/2.016, allocations: 6.898 MB / 1.022 GB, free: 180.5 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-05/2.016, allocations: 9.344 kB / 1.022 GB, free: 180.5 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.184e-05/2.016, allocations: 18.64 kB / 1.022 GB, free: 180.5 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03042/2.046, allocations: 18.22 MB / 1.04 GB, free: 179.5 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-05/2.046, allocations: 7.438 kB / 1.04 GB, free: 179.5 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003578/2.05, allocations: 0.6196 MB / 1.04 GB, free: 179.5 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009764/2.06, allocations: 2.969 MB / 1.043 GB, free: 179.4 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003955/2.06, allocations: 64.02 kB / 1.043 GB, free: 179.4 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01292/2.073, allocations: 13.48 MB / 1.056 GB, free: 171 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002552/2.076, allocations: 5.658 MB / 1.062 GB, free: 165.6 MB / 0.573 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01956/2.095, allocations: 12.76 MB / 1.074 GB, free: 160.5 MB / 0.573 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0223/2.118, allocations: 17.03 MB / 1.091 GB, free: 145.7 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/2.119, allocations: 0.6158 MB / 1.092 GB, free: 145.1 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009493/2.12, allocations: 42.66 kB / 1.092 GB, free: 145.1 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003275/2.123, allocations: 221.8 kB / 1.092 GB, free: 145 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004344/2.124, allocations: 177.8 kB / 1.092 GB, free: 144.9 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003426/2.124, allocations: 105.9 kB / 1.092 GB, free: 144.8 MB / 0.573 GB Notification: Performance of sort global known variables: time 0.004409/2.129, allocations: 3.483 MB / 1.096 GB, free: 141.7 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.007863/2.136, allocations: 1.943 MB / 1.098 GB, free: 139.8 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 54 ($STATESET4.x[3],$STATESET4.x[2],$STATESET4.x[1],$STATESET3.x[3],$STATESET3.x[2],$STATESET3.x[1],$STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],bodyShape.r_0[1],bodyShape.r_0[2],bodyShape.r_0[3],bodyShape.v_0[1],bodyShape.v_0[2],bodyShape.v_0[3],bodyShape.body.w_a[1],bodyShape.body.w_a[2],bodyShape.body.w_a[3],body.r_0[1],body.r_0[2],body.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3],bodyBox.r_0[1],bodyBox.r_0[2],bodyBox.r_0[3],bodyBox.v_0[1],bodyBox.v_0[2],bodyBox.v_0[3],bodyBox.body.w_a[1],bodyBox.body.w_a[2],bodyBox.body.w_a[3],bodyCylinder.r_0[1],bodyCylinder.r_0[2],bodyCylinder.r_0[3],bodyCylinder.v_0[1],bodyCylinder.v_0[2],bodyCylinder.v_0[3],bodyCylinder.body.w_a[1],bodyCylinder.body.w_a[2],bodyCylinder.body.w_a[3],pointMass.r_0[1],pointMass.r_0[2],pointMass.r_0[3],pointMass.v_0[1],pointMass.v_0[2],pointMass.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 252 * Array equations: 3 * 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 Backend phase and start with SimCode phase: time 0.0006139/2.137, allocations: 218.5 kB / 1.098 GB, free: 139.6 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01623/2.153, allocations: 11.15 MB / 1.109 GB, free: 129.5 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 5.461e-06/2.153, allocations: 0 / 1.109 GB, free: 129.5 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.008652/2.162, allocations: 5.223 MB / 1.114 GB, free: 124.7 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003589/2.166, allocations: 0.7072 MB / 1.114 GB, free: 124.1 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0254/2.191, allocations: 17 MB / 1.131 GB, free: 109.4 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00735/2.198, allocations: 6.171 MB / 1.137 GB, free: 104.8 MB / 0.573 GB Notification: Performance of SimCode: time 7.32e-07/2.198, allocations: 0 / 1.137 GB, free: 104.8 MB / 0.573 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FreeBodies_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Parts_FreeBodies.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Parts.FreeBodies.pipe 2>&1)