Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001157/0.001157, allocations: 193.7 kB / 8.537 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.188/1.188, allocations: 225.5 MB / 234.4 MB, free: 3.355 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009689/0.0009688, allocations: 90.7 kB / 286.3 MB, free: 5.215 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09215/0.09316, allocations: 56.9 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08274/0.1759, allocations: 51.47 MB / 394.7 MB, free: 5.109 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2185/0.3945, allocations: 89.86 MB / 484.6 MB, free: 3.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002005/0.3948, allocations: 82.2 kB / 484.6 MB, free: 3.281 MB / 346.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.1381/0.5329, allocations: 54.24 MB / 0.5263 GB, free: 2.148 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.5329, allocations: 8 kB / 0.5263 GB, free: 2.141 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006961/0.5399, allocations: 1.462 MB / 0.5277 GB, free: 0.6719 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002885/0.5428, allocations: 1.403 MB / 0.5291 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.995e-05/0.5429, allocations: 96 kB / 0.5292 GB, free: 15.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006002/0.5435, allocations: 183.9 kB / 0.5293 GB, free: 14.95 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006114/0.5496, allocations: 4.2 MB / 0.5334 GB, free: 10.74 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009151/0.5588, allocations: 6.895 MB / 0.5402 GB, free: 2.941 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001313/0.559, allocations: 63.45 kB / 0.5402 GB, free: 2.875 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003564/0.5593, allocations: 28 kB / 0.5403 GB, free: 2.848 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008582/0.5602, allocations: 0.8051 MB / 0.541 GB, free: 2.035 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1461/0.7063, allocations: 35.02 MB / 0.5752 GB, free: 126.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.7081, allocations: 1.683 MB / 0.5769 GB, free: 125.4 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006598/0.7088, allocations: 0.6793 MB / 0.5775 GB, free: 125.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002703/0.7091, allocations: 353.2 kB / 0.5779 GB, free: 125.1 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.7091, allocations: 49.48 kB / 0.5779 GB, free: 125.1 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.597e-06/0.7091, allocations: 2.375 kB / 0.5779 GB, free: 125.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=119): time 0.009071/0.7182, allocations: 3.219 MB / 0.5811 GB, free: 125 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.7182, allocations: 219.4 kB / 0.5813 GB, free: 124.7 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00242/0.7207, allocations: 2.424 MB / 0.5837 GB, free: 124.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.487e-05/0.7207, allocations: 25.7 kB / 0.5837 GB, free: 124.5 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008374/0.7216, allocations: 2.398 MB / 0.586 GB, free: 123.3 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000258/0.7218, allocations: 0.5118 MB / 0.5865 GB, free: 123 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.722, allocations: 0 / 0.5865 GB, free: 123 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002408/0.7222, allocations: 0.5795 MB / 0.5871 GB, free: 122.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.7238, allocations: 1.412 MB / 0.5885 GB, free: 122.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002652/0.7265, allocations: 5.053 MB / 0.5934 GB, free: 117.9 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004675/0.7312, allocations: 3.411 MB / 0.5967 GB, free: 117.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-05/0.7312, allocations: 40.09 kB / 0.5968 GB, free: 117.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.008911/0.7401, allocations: 6.213 MB / 0.6028 GB, free: 117.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.7402, allocations: 3.906 kB / 0.6028 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.271e-05/0.7403, allocations: 136.2 kB / 0.603 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001336/0.7404, allocations: 191.8 kB / 0.6032 GB, free: 117.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003718/0.7441, allocations: 1.413 MB / 0.6045 GB, free: 117.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001167/0.7443, allocations: 261.3 kB / 0.6048 GB, free: 117.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002829/0.7471, allocations: 0.6211 MB / 0.6054 GB, free: 116.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003665/0.7475, allocations: 368.3 kB / 0.6057 GB, free: 116.9 MB / 442.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.0004682/0.748, allocations: 427.3 kB / 0.6061 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003312/0.7483, allocations: 239.4 kB / 0.6064 GB, free: 116.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002003/0.7503, allocations: 1.023 MB / 0.6074 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.864e-05/0.7504, allocations: 9.906 kB / 0.6074 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.201e-05/0.7504, allocations: 0 / 0.6074 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.7504, allocations: 9.531 kB / 0.6074 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005342/0.7557, allocations: 3.354 MB / 0.6107 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.7558, allocations: 0 / 0.6107 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001365/0.7571, allocations: 280.7 kB / 0.6109 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002529/0.7574, allocations: 76.86 kB / 0.611 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.866e-05/0.7575, allocations: 30.33 kB / 0.611 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003206/0.7607, allocations: 2.996 MB / 0.614 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.7607, allocations: 7 kB / 0.614 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004762/0.7655, allocations: 3.328 MB / 0.6172 GB, free: 112.3 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005329/0.7708, allocations: 4.479 MB / 0.6216 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003766/0.7712, allocations: 293.5 kB / 0.6219 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002835/0.7715, allocations: 17.58 kB / 0.6219 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007978/0.7723, allocations: 18.08 kB / 0.6219 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.7724, allocations: 55.72 kB / 0.622 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.943e-05/0.7725, allocations: 58.81 kB / 0.622 GB, free: 110 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001835/0.7744, allocations: 1.573 MB / 0.6236 GB, free: 109.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004056/0.7784, allocations: 0.7444 MB / 0.6243 GB, free: 109.2 MB / 442.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.0003262/0.7788, allocations: 174.6 kB / 0.6245 GB, free: 109.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003433/0.7822, allocations: 3.255 MB / 0.6276 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.7822, allocations: 448 / 0.6276 GB, free: 108.1 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008967/0.7831, allocations: 0.8547 MB / 0.6285 GB, free: 107.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008055/0.784, allocations: 183.8 kB / 0.6286 GB, free: 107.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007898/0.7919, allocations: 6.18 MB / 0.6347 GB, free: 105.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002554/0.7944, allocations: 2.739 MB / 0.6373 GB, free: 104 MB / 442.7 MB Notification: Performance of SimCode: time 5.81e-07/0.7944, allocations: 0 / 0.6373 GB, free: 104 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1)