Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 185.8 kB / 8.137 MB, free: 2.211 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.13/1.13, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0009764/0.0009764, allocations: 104.2 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09255/0.09356, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1682/0.2618, allocations: 50.38 MB / 387 MB, free: 38.05 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09379/0.3556, allocations: 93.07 MB / 480.1 MB, free: 9.766 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.3558, allocations: 91.89 kB / 480.2 MB, free: 9.676 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.5712/0.927, allocations: 188.2 MB / 0.6527 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.9271, allocations: 12 kB / 0.6527 GB, free: 0.9766 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2186/1.146, allocations: 3.517 MB / 0.6561 GB, free: 85.57 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02373/1.17, allocations: 12.11 MB / 0.6679 GB, free: 85.11 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003039/1.17, allocations: 270.1 kB / 0.6682 GB, free: 85.11 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002248/1.172, allocations: 0.5053 MB / 0.6687 GB, free: 85.1 MB / 426.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01794/1.19, allocations: 13.03 MB / 0.6814 GB, free: 85.05 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02297/1.213, allocations: 18.4 MB / 0.6994 GB, free: 80.47 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003049/1.213, allocations: 136 kB / 0.6995 GB, free: 80.45 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009474/1.214, allocations: 49.81 kB / 0.6996 GB, free: 80.45 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/1.217, allocations: 2.198 MB / 0.7017 GB, free: 80.43 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08937/1.306, allocations: 90.85 MB / 0.7904 GB, free: 22.24 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009761/1.316, allocations: 6.977 MB / 0.7972 GB, free: 18.32 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00619/1.322, allocations: 6.077 MB / 0.8032 GB, free: 12.73 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003186/1.326, allocations: 2.231 MB / 0.8054 GB, free: 10.3 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/1.326, allocations: 64.53 kB / 0.8054 GB, free: 10.23 MB / 426.8 MB Notification: Performance of pre-optimization done (n=305): time 6.522e-06/1.326, allocations: 0 / 0.8054 GB, free: 10.23 MB / 426.8 MB Notification: Performance of matching and sorting (n=403): time 0.4613/1.787, allocations: 128.8 MB / 0.9312 GB, free: 61.59 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/1.787, allocations: 200.7 kB / 0.9314 GB, free: 61.36 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009141/1.796, allocations: 5.517 MB / 0.9368 GB, free: 56.64 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001052/1.797, allocations: 25.7 kB / 0.9368 GB, free: 56.61 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002425/1.8, allocations: 5.246 MB / 0.9419 GB, free: 52.34 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001993/1.802, allocations: 1.498 MB / 0.9434 GB, free: 50.99 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009419/1.803, allocations: 0 / 0.9434 GB, free: 50.99 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0005021/1.803, allocations: 0.7676 MB / 0.9441 GB, free: 50.35 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007922/1.811, allocations: 6.57 MB / 0.9506 GB, free: 44.47 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009527/1.821, allocations: 12.69 MB / 0.9629 GB, free: 29.7 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1726/1.993, allocations: 24.24 MB / 0.9866 GB, free: 68.83 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.583e-05/1.994, allocations: 61.03 kB / 0.9867 GB, free: 68.83 MB / 426.8 MB Notification: Performance of matching and sorting (n=1430) (initialization): time 0.08911/2.083, allocations: 39.58 MB / 1.025 GB, free: 68.43 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.742e-05/2.083, allocations: 3.75 kB / 1.025 GB, free: 68.43 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.06266/2.145, allocations: 24.83 MB / 1.05 GB, free: 67.95 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.032/2.177, allocations: 9.924 MB / 1.059 GB, free: 65.98 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008739/2.186, allocations: 2.443 MB / 1.062 GB, free: 65.69 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08759/2.274, allocations: 49.96 MB / 1.11 GB, free: 24.83 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01148/2.285, allocations: 0.7776 MB / 1.111 GB, free: 24.27 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001915/2.287, allocations: 0.733 MB / 1.112 GB, free: 23.58 MB / 426.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.001766/2.289, allocations: 0.6689 MB / 1.113 GB, free: 23.05 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001197/2.29, allocations: 0.6174 MB / 1.113 GB, free: 22.76 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/2.292, allocations: 1.031 MB / 1.114 GB, free: 21.8 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2054/2.498, allocations: 31.96 MB / 1.145 GB, free: 65.99 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.959e-05/2.498, allocations: 27.69 kB / 1.145 GB, free: 65.99 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001003/2.498, allocations: 24.77 kB / 1.145 GB, free: 65.99 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1063/2.604, allocations: 50.31 MB / 1.195 GB, free: 63.44 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-05/2.604, allocations: 3.344 kB / 1.195 GB, free: 63.44 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002945/2.607, allocations: 0.5189 MB / 1.195 GB, free: 63.42 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03162/2.639, allocations: 9.416 MB / 1.204 GB, free: 61.62 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001103/2.64, allocations: 88.05 kB / 1.204 GB, free: 61.61 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08358/2.724, allocations: 47.09 MB / 1.25 GB, free: 30.46 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001415/2.725, allocations: 2.766 MB / 1.253 GB, free: 27.58 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2182/2.943, allocations: 40.89 MB / 1.293 GB, free: 61.52 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0946/3.038, allocations: 49.79 MB / 1.342 GB, free: 56.95 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001687/3.04, allocations: 0.6312 MB / 1.342 GB, free: 56.82 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001872/3.042, allocations: 25.08 kB / 1.342 GB, free: 56.81 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004988/3.047, allocations: 358 kB / 1.343 GB, free: 56.81 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009688/3.048, allocations: 240.8 kB / 1.343 GB, free: 56.79 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006863/3.048, allocations: 212.6 kB / 1.343 GB, free: 56.76 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.005791/3.054, allocations: 3.735 MB / 1.347 GB, free: 55.42 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01193/3.066, allocations: 2.421 MB / 1.349 GB, free: 55.42 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET140279591446936.x[3],$STATESET140279591446936.x[2],$STATESET140279591446936.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],$STATESET140279591446935.x[3],$STATESET140279591446935.x[2],$STATESET140279591446935.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.00108/3.067, allocations: 200.1 kB / 1.349 GB, free: 55.33 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02019/3.087, allocations: 16.29 MB / 1.365 GB, free: 47.62 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/3.087, allocations: 4 kB / 1.365 GB, free: 47.62 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.008766/3.096, allocations: 7.193 MB / 1.372 GB, free: 41.13 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00388/3.1, allocations: 0.643 MB / 1.373 GB, free: 40.59 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04286/3.143, allocations: 20.72 MB / 1.393 GB, free: 22.98 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01011/3.153, allocations: 6.72 MB / 1.4 GB, free: 17.95 MB / 426.8 MB Notification: Performance of SimCode: time 8.52e-07/3.153, allocations: 3.094 kB / 1.4 GB, free: 17.95 MB / 426.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1)