Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",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.001023/0.001023, allocations: 182.8 kB / 8.137 MB, free: 2.188 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.19/1.19, allocations: 221.4 MB / 229.9 MB, free: 3.074 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.0009567/0.0009567, allocations: 105.8 kB / 280.8 MB, free: 1.32 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09301/0.094, allocations: 55.82 MB / 336.6 MB, free: 9.496 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.185/0.279, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09516/0.3742, allocations: 94.75 MB / 481.8 MB, free: 8.035 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.3745, allocations: 87.94 kB / 481.8 MB, free: 7.949 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.3254/0.6998, allocations: 75.76 MB / 0.5445 GB, free: 64.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.6999, allocations: 15.94 kB / 0.5445 GB, free: 64.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0088/0.7087, allocations: 1.761 MB / 0.5463 GB, free: 62.87 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01098/0.7197, allocations: 4.363 MB / 0.5505 GB, free: 58.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001553/0.7199, allocations: 120 kB / 0.5506 GB, free: 58.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.7211, allocations: 219.9 kB / 0.5508 GB, free: 58.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007836/0.7289, allocations: 5.504 MB / 0.5562 GB, free: 52.62 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01114/0.7401, allocations: 8.438 MB / 0.5645 GB, free: 43.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.7403, allocations: 51.47 kB / 0.5645 GB, free: 43.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005628/0.7408, allocations: 28 kB / 0.5645 GB, free: 43.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001037/0.7419, allocations: 0.9699 MB / 0.5655 GB, free: 42.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03473/0.7766, allocations: 43.51 MB / 0.608 GB, free: 13.15 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002964/0.7796, allocations: 2.392 MB / 0.6103 GB, free: 10.61 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001853/0.7815, allocations: 1.499 MB / 0.6118 GB, free: 9.105 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007942/0.7895, allocations: 5.138 MB / 0.6168 GB, free: 3.762 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.03e-05/0.7895, allocations: 43.22 kB / 0.6168 GB, free: 3.711 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 4.258e-06/0.7895, allocations: 0 / 0.6168 GB, free: 3.711 MB / 394.7 MB Notification: Performance of matching and sorting (n=139): time 0.01793/0.8075, allocations: 8.64 MB / 0.6253 GB, free: 10.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.8075, allocations: 145.2 kB / 0.6254 GB, free: 10.77 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003849/0.8114, allocations: 2.806 MB / 0.6281 GB, free: 7.965 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.8116, allocations: 29.7 kB / 0.6282 GB, free: 7.93 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.813, allocations: 2.674 MB / 0.6308 GB, free: 5.215 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000502/0.8135, allocations: 0.5555 MB / 0.6313 GB, free: 4.652 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001981/0.8137, allocations: 0 / 0.6313 GB, free: 4.652 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003204/0.814, allocations: 0.5456 MB / 0.6319 GB, free: 4.098 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002428/0.8165, allocations: 1.842 MB / 0.6337 GB, free: 2.25 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004277/0.8208, allocations: 5.39 MB / 0.6389 GB, free: 11.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00383/0.8246, allocations: 3.14 MB / 0.642 GB, free: 7.906 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.411e-05/0.8247, allocations: 40 kB / 0.642 GB, free: 7.867 MB / 426.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.01762/0.8423, allocations: 7.515 MB / 0.6494 GB, free: 340 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.8423, allocations: 4.469 kB / 0.6494 GB, free: 336 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.1206/0.963, allocations: 2.842 MB / 0.6521 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009475/0.9725, allocations: 1.585 MB / 0.6537 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003994/0.9765, allocations: 1.272 MB / 0.6549 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006852/0.9834, allocations: 5.265 MB / 0.6601 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004208/0.9876, allocations: 217.8 kB / 0.6603 GB, free: 134.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005269/0.9881, allocations: 350.2 kB / 0.6606 GB, free: 134.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (698): * Single equations (assignments): 689 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,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: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006869/0.9888, allocations: 431.2 kB / 0.661 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000521/0.9894, allocations: 282.7 kB / 0.6613 GB, free: 134.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005137/0.9945, allocations: 2.626 MB / 0.6639 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004103/0.9986, allocations: 2.239 MB / 0.6661 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.9987, allocations: 3.312 kB / 0.6661 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.778e-05/0.9987, allocations: 9.906 kB / 0.6661 GB, free: 134.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/1.011, allocations: 7.196 MB / 0.6731 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/1.011, allocations: 0 / 0.6731 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/1.012, allocations: 209.9 kB / 0.6733 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002998/1.015, allocations: 0.9749 MB / 0.6742 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/1.015, allocations: 24.95 kB / 0.6743 GB, free: 133.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004971/1.02, allocations: 4.806 MB / 0.679 GB, free: 131.2 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000619/1.02, allocations: 1.379 MB / 0.6803 GB, free: 130 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006629/1.027, allocations: 4.995 MB / 0.6852 GB, free: 129.3 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008077/1.035, allocations: 6.954 MB / 0.692 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006566/1.036, allocations: 342.1 kB / 0.6923 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004284/1.036, allocations: 10.98 kB / 0.6923 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001364/1.038, allocations: 63.03 kB / 0.6924 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001758/1.038, allocations: 69.64 kB / 0.6924 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001203/1.038, allocations: 43.14 kB / 0.6925 GB, free: 127.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002468/1.04, allocations: 1.86 MB / 0.6943 GB, free: 126.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004997/1.045, allocations: 0.8678 MB / 0.6951 GB, free: 126.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004379/1.046, allocations: 160.6 kB / 0.6953 GB, free: 126.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008595/1.055, allocations: 4.933 MB / 0.7001 GB, free: 125.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/1.055, allocations: 1.156 kB / 0.7001 GB, free: 125.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003789/1.058, allocations: 1.917 MB / 0.702 GB, free: 124.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/1.06, allocations: 301.7 kB / 0.7023 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01181/1.072, allocations: 7.047 MB / 0.7092 GB, free: 121.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003458/1.076, allocations: 3.263 MB / 0.7123 GB, free: 118.9 MB / 426.7 MB Notification: Performance of SimCode: time 6.71e-07/1.076, allocations: 0 / 0.7123 GB, free: 118.9 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1)