Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001449/0.001449, allocations: 178.1 kB / 8.476 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.174/1.174, allocations: 205.2 MB / 214.1 MB, free: 5.449 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009294/0.0009291, allocations: 83.34 kB / 262.1 MB, free: 5.496 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1602/0.1612, allocations: 52.97 MB / 315.1 MB, free: 41.46 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06644/0.2277, allocations: 47.58 MB / 362.6 MB, free: 9.91 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2268/0.4545, allocations: 92.1 MB / 454.7 MB, free: 8.465 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002309/0.4548, allocations: 86.02 kB / 454.8 MB, free: 8.453 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2937 * Number of variables: 2937 Notification: Performance of Generate backend data structure: time 0.6175/1.072, allocations: 188.9 MB / 0.6286 GB, free: 75.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/1.072, allocations: 10.62 kB / 0.6286 GB, free: 75.56 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01875/1.091, allocations: 3.552 MB / 0.6321 GB, free: 74.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02581/1.117, allocations: 13.16 MB / 0.645 GB, free: 73.77 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004477/1.117, allocations: 281 kB / 0.6452 GB, free: 73.76 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003541/1.121, allocations: 0.5075 MB / 0.6457 GB, free: 73.75 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02156/1.143, allocations: 13.23 MB / 0.6586 GB, free: 70.78 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02905/1.172, allocations: 18.66 MB / 0.6769 GB, free: 53.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004732/1.172, allocations: 130.5 kB / 0.677 GB, free: 53.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002263/1.174, allocations: 55.91 kB / 0.6771 GB, free: 53.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/1.178, allocations: 2.231 MB / 0.6792 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3262/1.504, allocations: 91.7 MB / 0.7688 GB, free: 58.71 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007655/1.511, allocations: 7.032 MB / 0.7757 GB, free: 58.04 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005757/1.517, allocations: 6.105 MB / 0.7816 GB, free: 58 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002895/1.52, allocations: 2.236 MB / 0.7838 GB, free: 56.03 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/1.52, allocations: 64.78 kB / 0.7839 GB, free: 55.98 MB / 426.8 MB Notification: Performance of pre-optimization done (n=314): time 5.941e-06/1.52, allocations: 2.969 kB / 0.7839 GB, free: 55.98 MB / 426.8 MB Notification: Performance of matching and sorting (n=411): time 0.4228/1.943, allocations: 126.9 MB / 0.9078 GB, free: 107.6 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/1.943, allocations: 196.8 kB / 0.908 GB, free: 107.4 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008413/1.952, allocations: 5.655 MB / 0.9135 GB, free: 107.1 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00106/1.953, allocations: 28 kB / 0.9135 GB, free: 107 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002417/1.955, allocations: 5.34 MB / 0.9187 GB, free: 104.2 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.00188/1.957, allocations: 1.513 MB / 0.9202 GB, free: 103.3 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006979/1.958, allocations: 3.562 kB / 0.9202 GB, free: 103.3 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 0.0004563/1.958, allocations: 0.7743 MB / 0.921 GB, free: 103 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00737/1.966, allocations: 6.61 MB / 0.9274 GB, free: 103 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01045/1.976, allocations: 12.84 MB / 0.94 GB, free: 94.96 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04653/2.023, allocations: 22.1 MB / 0.9615 GB, free: 90.65 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002433/2.023, allocations: 63.94 kB / 0.9616 GB, free: 90.65 MB / 426.8 MB Notification: Performance of matching and sorting (n=1454) (initialization): time 0.09246/2.115, allocations: 39.74 MB / 1 GB, free: 71.27 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/2.115, allocations: 8.062 kB / 1 GB, free: 71.26 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05933/2.175, allocations: 24.83 MB / 1.025 GB, free: 51.84 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03167/2.206, allocations: 9.929 MB / 1.034 GB, free: 42.76 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1429/2.349, allocations: 2.494 MB / 1.037 GB, free: 96.17 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08608/2.435, allocations: 49.94 MB / 1.086 GB, free: 88.43 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01315/2.449, allocations: 0.7818 MB / 1.086 GB, free: 88.43 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002751/2.451, allocations: 0.7361 MB / 1.087 GB, free: 88.34 MB / 426.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1012 * Number of states: 0 () * Number of discrete variables: 87 (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.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 (1287): * Single equations (assignments): 1273 * 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.002059/2.453, allocations: 0.6792 MB / 1.088 GB, free: 88.15 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001325/2.455, allocations: 0.6302 MB / 1.088 GB, free: 88.15 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01709/2.472, allocations: 8.093 MB / 1.096 GB, free: 85.62 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.07514/2.547, allocations: 31.42 MB / 1.127 GB, free: 76.63 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.36e-05/2.547, allocations: 28 kB / 1.127 GB, free: 76.61 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001132/2.547, allocations: 20.06 kB / 1.127 GB, free: 76.61 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2445/2.792, allocations: 50.54 MB / 1.176 GB, free: 90.8 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.823e-05/2.792, allocations: 3.781 kB / 1.176 GB, free: 90.8 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002995/2.795, allocations: 0.5356 MB / 1.177 GB, free: 90.8 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03103/2.826, allocations: 9.416 MB / 1.186 GB, free: 90.75 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001175/2.827, allocations: 80.19 kB / 1.186 GB, free: 90.75 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0848/2.912, allocations: 47.12 MB / 1.232 GB, free: 83.63 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001405/2.913, allocations: 2.768 MB / 1.235 GB, free: 80.98 MB / 426.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.08712/3.001, allocations: 40.99 MB / 1.275 GB, free: 67.34 MB / 426.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.2295/3.23, allocations: 49.91 MB / 1.324 GB, free: 89.23 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001895/3.232, allocations: 0.6497 MB / 1.324 GB, free: 89.14 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001721/3.234, allocations: 25.84 kB / 1.324 GB, free: 89.14 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005063/3.239, allocations: 361.6 kB / 1.325 GB, free: 89.14 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008545/3.24, allocations: 239 kB / 1.325 GB, free: 89.14 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006133/3.24, allocations: 209.3 kB / 1.325 GB, free: 89.14 MB / 426.8 MB Notification: Performance of sort global known variables: time 0.006668/3.247, allocations: 3.836 MB / 1.329 GB, free: 88.92 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.01328/3.26, allocations: 2.442 MB / 1.331 GB, free: 88.92 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 24 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.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],$STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 (264): * Single equations (assignments): 255 * 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.001292/3.262, allocations: 196.4 kB / 1.331 GB, free: 88.84 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.02251/3.284, allocations: 16.39 MB / 1.347 GB, free: 88.03 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/3.284, allocations: 0 / 1.347 GB, free: 88.03 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.009638/3.294, allocations: 7.232 MB / 1.354 GB, free: 87.15 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005098/3.299, allocations: 0.6448 MB / 1.355 GB, free: 86.89 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04519/3.344, allocations: 20.97 MB / 1.376 GB, free: 80.3 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009744/3.354, allocations: 6.841 MB / 1.382 GB, free: 78.32 MB / 426.8 MB Notification: Performance of SimCode: time 9.12e-07/3.354, allocations: 0 / 1.382 GB, free: 78.32 MB / 426.8 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses2.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses2.pipe 2>&1)