Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001115/0.001115, allocations: 183.7 kB / 8.479 MB, free: 1.879 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.13/1.13, allocations: 205.2 MB / 214.1 MB, free: 5.09 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.0009168/0.0009168, allocations: 80.81 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1565/0.1575, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06834/0.2258, allocations: 47.57 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2138/0.4397, allocations: 87.63 MB / 450.3 MB, free: 9.609 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002017/0.4399, allocations: 83.69 kB / 450.3 MB, free: 9.594 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.1307/0.5707, allocations: 53.34 MB / 0.4919 GB, free: 6.406 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.5707, allocations: 8 kB / 0.4919 GB, free: 6.398 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007085/0.5778, allocations: 1.458 MB / 0.4933 GB, free: 4.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.5809, allocations: 1.402 MB / 0.4947 GB, free: 3.492 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001121/0.581, allocations: 99.94 kB / 0.4948 GB, free: 3.395 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006807/0.5817, allocations: 187.9 kB / 0.495 GB, free: 3.211 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005905/0.5876, allocations: 4.208 MB / 0.4991 GB, free: 15 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008075/0.5957, allocations: 6.887 MB / 0.5058 GB, free: 7.211 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.5958, allocations: 51.53 kB / 0.5058 GB, free: 7.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003267/0.5962, allocations: 32 kB / 0.5059 GB, free: 7.129 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008266/0.597, allocations: 0.8165 MB / 0.5067 GB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02849/0.6255, allocations: 35.01 MB / 0.5409 GB, free: 2.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002143/0.6277, allocations: 1.663 MB / 0.5425 GB, free: 452 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008175/0.6285, allocations: 0.6898 MB / 0.5432 GB, free: 15.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003345/0.6289, allocations: 359.2 kB / 0.5435 GB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.6289, allocations: 50.53 kB / 0.5435 GB, free: 15.27 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 3.807e-06/0.6289, allocations: 0 / 0.5435 GB, free: 15.27 MB / 410.7 MB Notification: Performance of matching and sorting (n=119): time 0.009808/0.6387, allocations: 3.228 MB / 0.5467 GB, free: 12.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.713e-05/0.6388, allocations: 225.6 kB / 0.5469 GB, free: 11.76 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003135/0.642, allocations: 2.419 MB / 0.5493 GB, free: 9.324 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.767e-05/0.6421, allocations: 29.7 kB / 0.5493 GB, free: 9.289 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.6437, allocations: 2.394 MB / 0.5516 GB, free: 6.855 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005195/0.6442, allocations: 0.5133 MB / 0.5521 GB, free: 6.336 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.6444, allocations: 0 / 0.5521 GB, free: 6.336 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004175/0.6449, allocations: 0.5775 MB / 0.5527 GB, free: 5.746 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001948/0.6468, allocations: 1.421 MB / 0.5541 GB, free: 4.32 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003878/0.6507, allocations: 5.058 MB / 0.559 GB, free: 13.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005523/0.6562, allocations: 3.394 MB / 0.5623 GB, free: 10 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.444e-05/0.6563, allocations: 36 kB / 0.5624 GB, free: 9.965 MB / 426.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.0108/0.6671, allocations: 6.209 MB / 0.5684 GB, free: 3.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.6672, allocations: 4 kB / 0.5684 GB, free: 3.746 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001226/0.6673, allocations: 132 kB / 0.5686 GB, free: 3.617 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/0.6675, allocations: 192.8 kB / 0.5688 GB, free: 3.43 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004332/0.6718, allocations: 1.415 MB / 0.5701 GB, free: 2.012 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001596/0.672, allocations: 255 kB / 0.5704 GB, free: 1.762 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003493/0.6755, allocations: 0.6212 MB / 0.571 GB, free: 1.133 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004943/0.676, allocations: 368 kB / 0.5713 GB, free: 0.7734 MB / 426.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.0005695/0.6766, allocations: 432.2 kB / 0.5718 GB, free: 348 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004294/0.677, allocations: 236.9 kB / 0.572 GB, free: 108 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1138/0.7909, allocations: 1.022 MB / 0.573 GB, free: 160.6 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-05/0.7909, allocations: 10.69 kB / 0.573 GB, free: 160.6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.791, allocations: 3.531 kB / 0.573 GB, free: 160.6 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.791, allocations: 6.844 kB / 0.573 GB, free: 160.6 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005647/0.7966, allocations: 3.355 MB / 0.5763 GB, free: 160.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.281e-06/0.7967, allocations: 0 / 0.5763 GB, free: 160.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001359/0.798, allocations: 279.3 kB / 0.5765 GB, free: 160.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002609/0.7983, allocations: 66.88 kB / 0.5766 GB, free: 160.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-05/0.7984, allocations: 37.08 kB / 0.5766 GB, free: 160.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00316/0.8016, allocations: 2.996 MB / 0.5796 GB, free: 157.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.8016, allocations: 0 / 0.5796 GB, free: 157.8 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004322/0.8059, allocations: 3.339 MB / 0.5828 GB, free: 157.1 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004952/0.8109, allocations: 4.478 MB / 0.5872 GB, free: 156 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003682/0.8113, allocations: 287 kB / 0.5875 GB, free: 155.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002845/0.8116, allocations: 19.34 kB / 0.5875 GB, free: 155.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007907/0.8124, allocations: 17.72 kB / 0.5875 GB, free: 155.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.8125, allocations: 60.44 kB / 0.5876 GB, free: 155.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.66e-05/0.8126, allocations: 53.17 kB / 0.5876 GB, free: 155.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002085/0.8147, allocations: 1.576 MB / 0.5892 GB, free: 155.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0043/0.819, allocations: 0.7424 MB / 0.5899 GB, free: 155.6 MB / 426.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.0003782/0.8194, allocations: 183 kB / 0.5901 GB, free: 155.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003722/0.8231, allocations: 3.25 MB / 0.5932 GB, free: 155.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.8231, allocations: 0 / 0.5932 GB, free: 155.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009252/0.8241, allocations: 0.8457 MB / 0.5941 GB, free: 155.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008942/0.825, allocations: 191.4 kB / 0.5942 GB, free: 155.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008468/0.8334, allocations: 6.184 MB / 0.6003 GB, free: 153.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002519/0.836, allocations: 2.743 MB / 0.603 GB, free: 153 MB / 426.7 MB Notification: Performance of SimCode: time 4.91e-07/0.836, allocations: 0.6562 kB / 0.603 GB, free: 153 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)