Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",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.001799/0.001799, allocations: 182.2 kB / 8.134 MB, free: 2.219 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.132/1.132, allocations: 221.4 MB / 229.9 MB, free: 2.992 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.0009404/0.0009404, allocations: 103.2 kB / 280.8 MB, free: 1.219 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08646/0.08743, allocations: 55.82 MB / 336.6 MB, free: 9.383 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1693/0.2568, allocations: 50.39 MB / 387 MB, free: 38.09 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08776/0.3446, allocations: 89.05 MB / 476.1 MB, free: 13.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000214/0.3449, allocations: 84.81 kB / 476.1 MB, free: 13.71 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.2584/0.6033, allocations: 54.2 MB / 0.5179 GB, free: 90.73 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.6033, allocations: 10.02 kB / 0.5179 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006531/0.6099, allocations: 1.455 MB / 0.5193 GB, free: 89.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002332/0.6122, allocations: 1.404 MB / 0.5207 GB, free: 88.03 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.065e-05/0.6123, allocations: 99.91 kB / 0.5208 GB, free: 87.93 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004393/0.6127, allocations: 183.9 kB / 0.521 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004738/0.6175, allocations: 4.204 MB / 0.5251 GB, free: 83.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006218/0.6237, allocations: 6.896 MB / 0.5318 GB, free: 75.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.086e-05/0.6238, allocations: 51.53 kB / 0.5319 GB, free: 75.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000311/0.6241, allocations: 28 kB / 0.5319 GB, free: 75.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006309/0.6248, allocations: 0.812 MB / 0.5327 GB, free: 74.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02089/0.6457, allocations: 35.02 MB / 0.5669 GB, free: 38.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001731/0.6475, allocations: 1.661 MB / 0.5685 GB, free: 37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006562/0.6481, allocations: 0.6899 MB / 0.5692 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002636/0.6484, allocations: 359.2 kB / 0.5695 GB, free: 35.88 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.434e-05/0.6484, allocations: 46.5 kB / 0.5696 GB, free: 35.83 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 3.837e-06/0.6484, allocations: 8 kB / 0.5696 GB, free: 35.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=119): time 0.009167/0.6576, allocations: 3.223 MB / 0.5727 GB, free: 32.58 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.6577, allocations: 221.6 kB / 0.5729 GB, free: 32.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00255/0.6602, allocations: 2.423 MB / 0.5753 GB, free: 29.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.42e-05/0.6603, allocations: 25.7 kB / 0.5753 GB, free: 29.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008132/0.6611, allocations: 2.393 MB / 0.5777 GB, free: 27.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002875/0.6614, allocations: 0.5133 MB / 0.5782 GB, free: 26.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.6616, allocations: 0 / 0.5782 GB, free: 26.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002388/0.6618, allocations: 0.5814 MB / 0.5787 GB, free: 26.3 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.6634, allocations: 1.409 MB / 0.5801 GB, free: 24.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002583/0.666, allocations: 5.058 MB / 0.5851 GB, free: 17.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004751/0.6707, allocations: 3.4 MB / 0.5884 GB, free: 14.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-05/0.6708, allocations: 40 kB / 0.5884 GB, free: 14.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.008824/0.6796, allocations: 6.214 MB / 0.5945 GB, free: 8.312 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.6796, allocations: 4.219 kB / 0.5945 GB, free: 8.309 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.529e-05/0.6797, allocations: 136 kB / 0.5946 GB, free: 8.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001305/0.6799, allocations: 195.9 kB / 0.5948 GB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003796/0.6837, allocations: 1.415 MB / 0.5962 GB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001094/0.6838, allocations: 259 kB / 0.5964 GB, free: 6.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002968/0.6868, allocations: 0.6095 MB / 0.597 GB, free: 5.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003343/0.6871, allocations: 375.8 kB / 0.5974 GB, free: 5.332 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 601 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (708): * Single equations (assignments): 705 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004271/0.6875, allocations: 435.2 kB / 0.5978 GB, free: 4.898 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003377/0.6879, allocations: 229 kB / 0.598 GB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.6899, allocations: 1.019 MB / 0.599 GB, free: 3.641 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.88e-05/0.6899, allocations: 15.98 kB / 0.599 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-05/0.6899, allocations: 0 / 0.599 GB, free: 3.625 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.69, allocations: 7.984 kB / 0.599 GB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005115/0.6951, allocations: 3.359 MB / 0.6023 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.6951, allocations: 0 / 0.6023 GB, free: 232 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00136/0.6965, allocations: 276.7 kB / 0.6026 GB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002852/0.6968, allocations: 73.69 kB / 0.6026 GB, free: 15.88 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-05/0.6969, allocations: 39.88 kB / 0.6027 GB, free: 15.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003587/0.7005, allocations: 2.985 MB / 0.6056 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.7005, allocations: 4 kB / 0.6056 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004839/0.7053, allocations: 3.333 MB / 0.6089 GB, free: 9.223 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005717/0.7111, allocations: 4.484 MB / 0.6132 GB, free: 4.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004361/0.7115, allocations: 291 kB / 0.6135 GB, free: 4.375 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002911/0.7118, allocations: 23.89 kB / 0.6135 GB, free: 4.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007989/0.7126, allocations: 11.98 kB / 0.6136 GB, free: 4.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.7127, allocations: 59.92 kB / 0.6136 GB, free: 4.281 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.184e-05/0.7128, allocations: 51.97 kB / 0.6137 GB, free: 4.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002213/0.7151, allocations: 1.574 MB / 0.6152 GB, free: 2.648 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005144/0.7202, allocations: 0.7398 MB / 0.6159 GB, free: 1.906 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 87 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004447/0.7207, allocations: 182.7 kB / 0.6161 GB, free: 1.723 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00473/0.7254, allocations: 3.252 MB / 0.6193 GB, free: 14.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.7254, allocations: 0 / 0.6193 GB, free: 14.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001096/0.7265, allocations: 0.8479 MB / 0.6201 GB, free: 13.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.7276, allocations: 192.3 kB / 0.6203 GB, free: 13.45 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009404/0.737, allocations: 6.18 MB / 0.6263 GB, free: 7.207 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002967/0.74, allocations: 2.746 MB / 0.629 GB, free: 4.434 MB / 410.7 MB Notification: Performance of SimCode: time 7.41e-07/0.74, allocations: 0 / 0.629 GB, free: 4.434 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)