Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",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.001081/0.001081, allocations: 201.5 kB / 8.539 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.176/1.176, allocations: 225.5 MB / 234.4 MB, free: 3.379 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008928/0.0008928, allocations: 92.62 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09408/0.095, allocations: 56.9 MB / 343.2 MB, free: 8.637 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08147/0.1765, allocations: 51.48 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2439/0.4204, allocations: 93.67 MB / 488.4 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002249/0.4207, allocations: 83.33 kB / 488.5 MB, free: 15.88 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.1628/0.5835, allocations: 60.86 MB / 0.5364 GB, free: 7.824 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.277e-05/0.5835, allocations: 8 kB / 0.5365 GB, free: 7.816 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007836/0.5913, allocations: 1.603 MB / 0.538 GB, free: 6.207 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006341/0.5977, allocations: 2.772 MB / 0.5407 GB, free: 3.387 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001035/0.5978, allocations: 76 kB / 0.5408 GB, free: 3.312 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005055/0.5983, allocations: 139.9 kB / 0.5409 GB, free: 3.176 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005947/0.6043, allocations: 4.182 MB / 0.545 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008397/0.6127, allocations: 6.288 MB / 0.5512 GB, free: 7.996 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.993e-05/0.6128, allocations: 35.69 kB / 0.5512 GB, free: 7.961 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003471/0.6132, allocations: 31.98 kB / 0.5512 GB, free: 7.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000956/0.6142, allocations: 0.7653 MB / 0.552 GB, free: 7.172 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/0.753, allocations: 30.72 MB / 0.582 GB, free: 127.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.755, allocations: 2.171 MB / 0.5841 GB, free: 126.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001063/0.756, allocations: 1.157 MB / 0.5852 GB, free: 126.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006621/0.7567, allocations: 342.8 kB / 0.5855 GB, free: 126.5 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.782e-05/0.7567, allocations: 53.25 kB / 0.5856 GB, free: 126.4 MB / 442.7 MB Notification: Performance of pre-optimization done (n=106): time 3.376e-06/0.7567, allocations: 2.562 kB / 0.5856 GB, free: 126.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=114): time 0.01782/0.7746, allocations: 9.543 MB / 0.5949 GB, free: 124.7 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.7746, allocations: 140.9 kB / 0.5951 GB, free: 124.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002179/0.7768, allocations: 2.092 MB / 0.5971 GB, free: 124.3 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.722e-05/0.7769, allocations: 29.39 kB / 0.5971 GB, free: 124.3 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006937/0.7776, allocations: 1.977 MB / 0.5991 GB, free: 123.2 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002703/0.7779, allocations: 447.5 kB / 0.5995 GB, free: 122.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001525/0.7781, allocations: 3.219 kB / 0.5995 GB, free: 122.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002046/0.7783, allocations: 0.5375 MB / 0.6 GB, free: 122.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.7798, allocations: 1.432 MB / 0.6014 GB, free: 122.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.7821, allocations: 4.115 MB / 0.6054 GB, free: 119.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00315/0.7852, allocations: 2.55 MB / 0.6079 GB, free: 119.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.118e-05/0.7853, allocations: 26.25 kB / 0.6079 GB, free: 119.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.00878/0.7941, allocations: 5.661 MB / 0.6135 GB, free: 118.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.7941, allocations: 6.719 kB / 0.6135 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.349e-05/0.7942, allocations: 96.81 kB / 0.6136 GB, free: 118.4 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002221/0.7964, allocations: 0.788 MB / 0.6143 GB, free: 118.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002702/0.7991, allocations: 0.9781 MB / 0.6153 GB, free: 118.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00473/0.8039, allocations: 4.213 MB / 0.6194 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002746/0.8066, allocations: 175.1 kB / 0.6196 GB, free: 116.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003528/0.807, allocations: 269 kB / 0.6198 GB, free: 116.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 441 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[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 (523): * Single equations (assignments): 519 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004288/0.8074, allocations: 344.1 kB / 0.6202 GB, free: 115.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000288/0.8077, allocations: 211.9 kB / 0.6204 GB, free: 115.6 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004702/0.8124, allocations: 2.201 MB / 0.6225 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.088e-05/0.8125, allocations: 9.969 kB / 0.6225 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.8125, allocations: 9.266 kB / 0.6225 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.8125, allocations: 4.797 kB / 0.6225 GB, free: 115.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009494/0.822, allocations: 5.131 MB / 0.6275 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.822, allocations: 10.44 kB / 0.6276 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007631/0.8228, allocations: 146.1 kB / 0.6277 GB, free: 113.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002115/0.8249, allocations: 0.6289 MB / 0.6283 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.89e-05/0.825, allocations: 3.188 kB / 0.6283 GB, free: 113.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004085/0.8291, allocations: 3.677 MB / 0.6319 GB, free: 111.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.8292, allocations: 3.219 kB / 0.6319 GB, free: 111.3 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006217/0.8354, allocations: 4.407 MB / 0.6362 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007445/0.8428, allocations: 6.097 MB / 0.6422 GB, free: 106.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.8432, allocations: 273.9 kB / 0.6424 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003021/0.8435, allocations: 6.625 kB / 0.6424 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.8445, allocations: 55.19 kB / 0.6425 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.8447, allocations: 48.5 kB / 0.6425 GB, free: 106.7 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000109/0.8448, allocations: 34.7 kB / 0.6426 GB, free: 106.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001716/0.8465, allocations: 1.39 MB / 0.6439 GB, free: 106.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003536/0.8501, allocations: 0.6061 MB / 0.6445 GB, free: 106.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003606/0.8504, allocations: 183 kB / 0.6447 GB, free: 106 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003783/0.8542, allocations: 3.419 MB / 0.648 GB, free: 104.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.8542, allocations: 3.438 kB / 0.648 GB, free: 104.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001132/0.8554, allocations: 1.05 MB / 0.6491 GB, free: 104.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008892/0.8563, allocations: 186.2 kB / 0.6492 GB, free: 104.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006607/0.8629, allocations: 4.687 MB / 0.6538 GB, free: 102.7 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00235/0.8653, allocations: 2.477 MB / 0.6562 GB, free: 101.6 MB / 442.7 MB Notification: Performance of SimCode: time 2.6e-07/0.8653, allocations: 0 / 0.6562 GB, free: 101.6 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1)