Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.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.PointGravityWithPointMasses2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",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.001073/0.001073, allocations: 203.1 kB / 8.542 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.153/1.153, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009109/0.0009109, allocations: 96.25 kB / 286.3 MB, free: 5.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08831/0.08925, allocations: 56.9 MB / 343.2 MB, free: 8.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.078/0.1673, allocations: 51.47 MB / 394.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2155/0.3828, allocations: 93.73 MB / 488.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/0.383, allocations: 80.2 kB / 488.5 MB, free: 15.55 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: 2889 * Number of variables: 2889 Notification: Performance of Generate backend data structure: time 0.6052/0.9883, allocations: 198 MB / 0.6705 GB, free: 59.64 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.9883, allocations: 9.75 kB / 0.6705 GB, free: 59.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01645/1.005, allocations: 3.574 MB / 0.674 GB, free: 57.93 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01942/1.024, allocations: 10.83 MB / 0.6845 GB, free: 52.02 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002625/1.025, allocations: 274.1 kB / 0.6848 GB, free: 52.02 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00157/1.026, allocations: 0.5176 MB / 0.6853 GB, free: 51.97 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01674/1.043, allocations: 13.03 MB / 0.698 GB, free: 40.79 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01917/1.062, allocations: 18.4 MB / 0.716 GB, free: 20.67 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002539/1.062, allocations: 130.9 kB / 0.7161 GB, free: 20.54 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008759/1.063, allocations: 52 kB / 0.7162 GB, free: 20.49 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/1.066, allocations: 2.192 MB / 0.7183 GB, free: 18.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3151/1.381, allocations: 90.84 MB / 0.807 GB, free: 64.14 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007735/1.389, allocations: 6.987 MB / 0.8138 GB, free: 63.47 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005788/1.394, allocations: 6.071 MB / 0.8198 GB, free: 61.95 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002903/1.397, allocations: 2.221 MB / 0.8219 GB, free: 59.94 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/1.397, allocations: 69.62 kB / 0.822 GB, free: 59.88 MB / 458.8 MB Notification: Performance of pre-optimization done (n=305): time 4.879e-06/1.397, allocations: 3.594 kB / 0.822 GB, free: 59.88 MB / 458.8 MB Notification: Performance of matching and sorting (n=403): time 0.4256/1.823, allocations: 126.6 MB / 0.9457 GB, free: 114.6 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/1.823, allocations: 196.3 kB / 0.9459 GB, free: 114.4 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007288/1.83, allocations: 5.519 MB / 0.9512 GB, free: 113.9 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007677/1.831, allocations: 25.7 kB / 0.9513 GB, free: 113.9 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002066/1.833, allocations: 5.246 MB / 0.9564 GB, free: 110.7 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001382/1.835, allocations: 1.501 MB / 0.9579 GB, free: 109.8 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006232/1.835, allocations: 0 / 0.9579 GB, free: 109.8 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004202/1.836, allocations: 0.762 MB / 0.9586 GB, free: 109.5 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007391/1.843, allocations: 6.567 MB / 0.965 GB, free: 109.5 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009192/1.852, allocations: 12.69 MB / 0.9774 GB, free: 101.6 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04582/1.898, allocations: 22.02 MB / 0.9989 GB, free: 97.59 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.895e-05/1.898, allocations: 65.47 kB / 0.999 GB, free: 97.59 MB / 458.8 MB Notification: Performance of matching and sorting (n=1430) (initialization): time 0.09146/1.99, allocations: 39.56 MB / 1.038 GB, free: 86.93 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.841e-05/1.99, allocations: 6.969 kB / 1.038 GB, free: 86.93 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06007/2.05, allocations: 24.85 MB / 1.062 GB, free: 67.5 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03173/2.082, allocations: 9.919 MB / 1.072 GB, free: 60.36 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008287/2.09, allocations: 2.447 MB / 1.074 GB, free: 58.23 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2132/2.303, allocations: 49.96 MB / 1.123 GB, free: 98.48 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01145/2.315, allocations: 0.7801 MB / 1.124 GB, free: 98.48 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001613/2.316, allocations: 0.7297 MB / 1.124 GB, free: 98.48 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 996 * Number of states: 0 () * Number of discrete variables: 89 (referenceSystem.fixedTranslation5.color[3],referenceSystem.fixedTranslation5.color[2],referenceSystem.fixedTranslation5.color[1],referenceSystem.fixedTranslation4.color[3],referenceSystem.fixedTranslation4.color[2],referenceSystem.fixedTranslation4.color[1],referenceSystem.fixedTranslation3.color[3],referenceSystem.fixedTranslation3.color[2],referenceSystem.fixedTranslation3.color[1],referenceSystem.fixedTranslation2.color[3],referenceSystem.fixedTranslation2.color[2],referenceSystem.fixedTranslation2.color[1],referenceSystem.fixedTranslation1.color[3],referenceSystem.fixedTranslation1.color[2],referenceSystem.fixedTranslation1.color[1],referenceSystem.fixedTranslation.color[3],referenceSystem.fixedTranslation.color[2],referenceSystem.fixedTranslation.color[1],referenceSystem.pointMass6.sphereColor[3],referenceSystem.pointMass6.sphereColor[2],referenceSystem.pointMass6.sphereColor[1],referenceSystem.pointMass5.sphereColor[3],referenceSystem.pointMass5.sphereColor[2],referenceSystem.pointMass5.sphereColor[1],referenceSystem.pointMass4.sphereColor[3],referenceSystem.pointMass4.sphereColor[2],referenceSystem.pointMass4.sphereColor[1],referenceSystem.pointMass3.sphereColor[3],referenceSystem.pointMass3.sphereColor[2],referenceSystem.pointMass3.sphereColor[1],referenceSystem.pointMass2.sphereColor[3],referenceSystem.pointMass2.sphereColor[2],referenceSystem.pointMass2.sphereColor[1],referenceSystem.pointMass1.sphereColor[3],referenceSystem.pointMass1.sphereColor[2],referenceSystem.pointMass1.sphereColor[1],freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],fixedTranslation5.color[3],fixedTranslation5.color[2],fixedTranslation5.color[1],fixedTranslation4.color[3],fixedTranslation4.color[2],fixedTranslation4.color[1],fixedTranslation3.color[3],fixedTranslation3.color[2],fixedTranslation3.color[1],fixedTranslation2.color[3],fixedTranslation2.color[2],fixedTranslation2.color[1],fixedTranslation1.color[3],fixedTranslation1.color[2],fixedTranslation1.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],pointMass6.sphereColor[3],pointMass6.sphereColor[2],pointMass6.sphereColor[1],pointMass5.sphereColor[3],pointMass5.sphereColor[2],pointMass5.sphereColor[1],pointMass4.sphereColor[3],pointMass4.sphereColor[2],pointMass4.sphereColor[1],pointMass3.sphereColor[3],pointMass3.sphereColor[2],pointMass3.sphereColor[1],pointMass2.sphereColor[3],pointMass2.sphereColor[2],pointMass2.sphereColor[1],pointMass1.sphereColor[3],pointMass1.sphereColor[2],pointMass1.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1263): * Single equations (assignments): 1249 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,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: 3 {(6,100.0%) 66,(6,100.0%) 36,(3,100.0%) 2} * Non-linear torn systems: 1 {4 7} Notification: Performance of prepare postOptimizeDAE: time 0.001826/2.318, allocations: 0.6762 MB / 1.125 GB, free: 98.36 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/2.319, allocations: 0.6112 MB / 1.125 GB, free: 98.36 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/2.321, allocations: 1.033 MB / 1.126 GB, free: 98.29 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07372/2.395, allocations: 31.34 MB / 1.157 GB, free: 92.66 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.182e-05/2.395, allocations: 33.69 kB / 1.157 GB, free: 92.66 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.554e-05/2.395, allocations: 15.42 kB / 1.157 GB, free: 92.66 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1036/2.499, allocations: 50.31 MB / 1.206 GB, free: 73.66 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.64e-05/2.499, allocations: 4 kB / 1.206 GB, free: 73.66 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002675/2.501, allocations: 0.5253 MB / 1.207 GB, free: 73.25 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02998/2.531, allocations: 9.416 MB / 1.216 GB, free: 66.63 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007722/2.532, allocations: 80.2 kB / 1.216 GB, free: 66.58 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.214/2.746, allocations: 47.09 MB / 1.262 GB, free: 99.38 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001257/2.748, allocations: 2.762 MB / 1.265 GB, free: 96.8 MB / 458.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08328/2.831, allocations: 40.89 MB / 1.305 GB, free: 95.23 MB / 458.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0921/2.923, allocations: 49.79 MB / 1.353 GB, free: 78.35 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001645/2.925, allocations: 0.6351 MB / 1.354 GB, free: 77.76 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001316/2.926, allocations: 22.75 kB / 1.354 GB, free: 77.74 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004622/2.931, allocations: 356.8 kB / 1.354 GB, free: 77.52 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008216/2.931, allocations: 234.2 kB / 1.355 GB, free: 77.4 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006657/2.932, allocations: 211.6 kB / 1.355 GB, free: 77.23 MB / 458.8 MB Notification: Performance of sort global known variables: time 0.005213/2.937, allocations: 3.74 MB / 1.358 GB, free: 73.97 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.009807/2.947, allocations: 2.424 MB / 1.361 GB, free: 71.56 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET140390485694872.x[3],$STATESET140390485694872.x[2],$STATESET140390485694872.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3],$STATESET140390485694871.x[3],$STATESET140390485694871.x[2],$STATESET140390485694871.x[1],referenceSystem.pointMass1.frame_a.r_0[1],referenceSystem.pointMass1.frame_a.r_0[2],referenceSystem.pointMass1.frame_a.r_0[3],referenceSystem.pointMass1.v_0[1],referenceSystem.pointMass1.v_0[2],referenceSystem.pointMass1.v_0[3],referenceSystem.pointMass6.w_a[1],referenceSystem.pointMass6.w_a[2],referenceSystem.pointMass6.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (255): * Single equations (assignments): 246 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,100.0%) 36,(6,100.0%) 66} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007634/2.948, allocations: 196.8 kB / 1.361 GB, free: 71.42 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.01902/2.967, allocations: 16.29 MB / 1.377 GB, free: 57.13 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/2.967, allocations: 0 / 1.377 GB, free: 57.13 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007984/2.975, allocations: 7.187 MB / 1.384 GB, free: 50.64 MB / 458.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003606/2.979, allocations: 0.6587 MB / 1.384 GB, free: 50.09 MB / 458.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1737/3.152, allocations: 20.71 MB / 1.405 GB, free: 96.71 MB / 458.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008675/3.161, allocations: 6.722 MB / 1.411 GB, free: 95.8 MB / 458.8 MB Notification: Performance of SimCode: time 2.044e-06/3.161, allocations: 2.938 kB / 1.411 GB, free: 95.8 MB / 458.8 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1)