Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.FreeBody,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001155/0.001155, allocations: 171 kB / 8.47 MB, free: 1.855 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.125/1.125, allocations: 205.2 MB / 214.1 MB, free: 13.92 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009129/0.000913, allocations: 89.34 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1009/0.1019, allocations: 52.98 MB / 315.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.2735, allocations: 47.57 MB / 362.6 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09144/0.365, allocations: 93.02 MB / 455.7 MB, free: 8.848 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/0.3653, allocations: 83.95 kB / 455.7 MB, free: 8.766 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.3169/0.6822, allocations: 74.8 MB / 0.5181 GB, free: 94.15 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.6823, allocations: 9.875 kB / 0.5181 GB, free: 94.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008359/0.6906, allocations: 1.763 MB / 0.5198 GB, free: 93.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01045/0.7011, allocations: 4.525 MB / 0.5243 GB, free: 93.3 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001186/0.7012, allocations: 122 kB / 0.5244 GB, free: 93.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008765/0.7021, allocations: 215.7 kB / 0.5246 GB, free: 93.3 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007227/0.7094, allocations: 5.507 MB / 0.53 GB, free: 93.28 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00948/0.7189, allocations: 8.436 MB / 0.5382 GB, free: 88.73 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00015/0.719, allocations: 53.75 kB / 0.5382 GB, free: 88.7 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004963/0.7195, allocations: 28.28 kB / 0.5383 GB, free: 88.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001142/0.7207, allocations: 0.9702 MB / 0.5392 GB, free: 88.53 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03575/0.7565, allocations: 43.53 MB / 0.5817 GB, free: 53.42 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002297/0.7588, allocations: 2.374 MB / 0.5841 GB, free: 51.09 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001476/0.7603, allocations: 1.505 MB / 0.5855 GB, free: 49.71 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007257/0.7676, allocations: 5.154 MB / 0.5906 GB, free: 45.12 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.7676, allocations: 51.77 kB / 0.5906 GB, free: 45.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=132): time 4.168e-06/0.7676, allocations: 4 kB / 0.5906 GB, free: 45.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=139): time 0.01703/0.7847, allocations: 8.709 MB / 0.5991 GB, free: 36.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.7847, allocations: 149.2 kB / 0.5993 GB, free: 36.57 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00366/0.7884, allocations: 2.834 MB / 0.602 GB, free: 33.74 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.778e-05/0.7885, allocations: 25.7 kB / 0.602 GB, free: 33.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001019/0.7895, allocations: 2.67 MB / 0.6047 GB, free: 31 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004094/0.7899, allocations: 0.5593 MB / 0.6052 GB, free: 30.43 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002199/0.7902, allocations: 7.938 kB / 0.6052 GB, free: 30.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002428/0.7904, allocations: 0.5378 MB / 0.6057 GB, free: 29.88 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002205/0.7926, allocations: 1.842 MB / 0.6075 GB, free: 28.03 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003193/0.7958, allocations: 5.39 MB / 0.6128 GB, free: 20.83 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00328/0.7991, allocations: 3.134 MB / 0.6159 GB, free: 17.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.965e-05/0.7992, allocations: 36 kB / 0.6159 GB, free: 17.66 MB / 394.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.01557/0.8148, allocations: 7.519 MB / 0.6232 GB, free: 10.13 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/0.8148, allocations: 7.906 kB / 0.6232 GB, free: 10.12 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008798/0.8236, allocations: 2.856 MB / 0.626 GB, free: 7.254 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009189/0.8328, allocations: 1.588 MB / 0.6276 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00382/0.8367, allocations: 1.271 MB / 0.6288 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006806/0.8435, allocations: 5.257 MB / 0.634 GB, free: 14.91 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004261/0.8478, allocations: 219.5 kB / 0.6342 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007602/0.8485, allocations: 352 kB / 0.6345 GB, free: 14.35 MB / 410.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.000921/0.8495, allocations: 432.5 kB / 0.6349 GB, free: 13.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005527/0.85, allocations: 280.3 kB / 0.6352 GB, free: 13.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005774/0.8558, allocations: 2.63 MB / 0.6377 GB, free: 10.99 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004683/0.8605, allocations: 2.239 MB / 0.6399 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.8605, allocations: 0 / 0.6399 GB, free: 8.734 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.8606, allocations: 15.97 kB / 0.64 GB, free: 8.719 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01385/0.8744, allocations: 7.197 MB / 0.647 GB, free: 1.453 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.834e-06/0.8744, allocations: 4 kB / 0.647 GB, free: 1.449 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001188/0.8756, allocations: 203.7 kB / 0.6472 GB, free: 1.25 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003301/0.879, allocations: 0.9818 MB / 0.6481 GB, free: 264 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001474/0.8791, allocations: 19.92 kB / 0.6482 GB, free: 244 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1034/0.9825, allocations: 4.803 MB / 0.6528 GB, free: 136.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006067/0.9832, allocations: 1.38 MB / 0.6542 GB, free: 135.2 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00644/0.9896, allocations: 5.001 MB / 0.6591 GB, free: 134.6 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00798/0.9976, allocations: 6.939 MB / 0.6659 GB, free: 133.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004993/0.9981, allocations: 345.9 kB / 0.6662 GB, free: 133.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004004/0.9986, allocations: 10.19 kB / 0.6662 GB, free: 133.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001345/0.9999, allocations: 66.61 kB / 0.6663 GB, free: 133.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001788/1, allocations: 71.47 kB / 0.6663 GB, free: 133.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001157/1, allocations: 44.62 kB / 0.6664 GB, free: 133.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002161/1.002, allocations: 1.88 MB / 0.6682 GB, free: 133.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004259/1.007, allocations: 0.8697 MB / 0.6691 GB, free: 133.3 MB / 410.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.0003381/1.007, allocations: 151.8 kB / 0.6692 GB, free: 133.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006924/1.014, allocations: 4.936 MB / 0.674 GB, free: 132.8 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/1.014, allocations: 0 / 0.674 GB, free: 132.8 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003331/1.017, allocations: 1.916 MB / 0.6759 GB, free: 132.4 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/1.019, allocations: 302.7 kB / 0.6762 GB, free: 132.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01001/1.029, allocations: 7.049 MB / 0.6831 GB, free: 130.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003543/1.032, allocations: 3.261 MB / 0.6862 GB, free: 129.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.032e-06/1.032, allocations: 0 / 0.6862 GB, free: 129.2 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1)