Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",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.001073/0.001073, allocations: 175.4 kB / 8.473 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.106/1.106, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.0008773/0.0008774, allocations: 91.25 kB / 262.1 MB, free: 5.129 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1497/0.1506, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0615/0.2121, allocations: 47.58 MB / 362.6 MB, free: 9.863 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.4189, allocations: 91.13 MB / 453.8 MB, free: 8.695 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002013/0.4191, allocations: 89.97 kB / 453.9 MB, free: 8.68 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.1575/0.5766, allocations: 59.08 MB / 0.5009 GB, free: 13.92 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.5767, allocations: 8 kB / 0.5009 GB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007955/0.5847, allocations: 1.634 MB / 0.5025 GB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009188/0.5939, allocations: 3.65 MB / 0.5061 GB, free: 8.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.798e-05/0.594, allocations: 83.91 kB / 0.5062 GB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005048/0.5945, allocations: 148 kB / 0.5063 GB, free: 8.344 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005974/0.6005, allocations: 4.226 MB / 0.5104 GB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007544/0.608, allocations: 6.394 MB / 0.5167 GB, free: 12.98 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.939e-05/0.6081, allocations: 39.69 kB / 0.5167 GB, free: 12.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003153/0.6084, allocations: 20 kB / 0.5167 GB, free: 12.92 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009625/0.6094, allocations: 0.7732 MB / 0.5175 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02941/0.6388, allocations: 32.08 MB / 0.5488 GB, free: 11 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002296/0.6412, allocations: 2.066 MB / 0.5508 GB, free: 8.793 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001377/0.6426, allocations: 1.157 MB / 0.552 GB, free: 7.625 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006456/0.649, allocations: 4.564 MB / 0.5564 GB, free: 2.797 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.808e-05/0.6491, allocations: 43.06 kB / 0.5565 GB, free: 2.746 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 3.136e-06/0.6491, allocations: 0 / 0.5565 GB, free: 2.746 MB / 410.7 MB Notification: Performance of matching and sorting (n=125): time 0.02065/0.6697, allocations: 9.101 MB / 0.5653 GB, free: 9.512 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.6698, allocations: 141.2 kB / 0.5655 GB, free: 9.344 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002615/0.6724, allocations: 2.17 MB / 0.5676 GB, free: 7.148 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.846e-05/0.6725, allocations: 25.7 kB / 0.5676 GB, free: 7.117 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.6736, allocations: 2.031 MB / 0.5696 GB, free: 5.051 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000375/0.674, allocations: 0.4937 MB / 0.5701 GB, free: 4.551 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001723/0.6741, allocations: 4 kB / 0.5701 GB, free: 4.547 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003081/0.6745, allocations: 0.5519 MB / 0.5706 GB, free: 3.984 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002087/0.6766, allocations: 1.579 MB / 0.5722 GB, free: 2.398 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09937/0.7759, allocations: 4.448 MB / 0.5765 GB, free: 156.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/0.7794, allocations: 2.842 MB / 0.5793 GB, free: 156.6 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.792e-05/0.7795, allocations: 31.12 kB / 0.5793 GB, free: 156.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=610) (initialization): time 0.01145/0.7909, allocations: 6.62 MB / 0.5858 GB, free: 156.3 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.791, allocations: 6.406 kB / 0.5858 GB, free: 156.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006273/0.7972, allocations: 2.644 MB / 0.5884 GB, free: 156.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005028/0.8023, allocations: 1.409 MB / 0.5898 GB, free: 156.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/0.805, allocations: 1.034 MB / 0.5908 GB, free: 156.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00978/0.8148, allocations: 7.393 MB / 0.598 GB, free: 153.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003347/0.8182, allocations: 229.2 kB / 0.5982 GB, free: 153.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000345/0.8185, allocations: 298.4 kB / 0.5985 GB, free: 153.6 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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 (562): * Single equations (assignments): 554 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000491/0.819, allocations: 362.1 kB / 0.5988 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003138/0.8194, allocations: 214.4 kB / 0.599 GB, free: 153.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006802/0.8262, allocations: 2.905 MB / 0.6019 GB, free: 153.3 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006062/0.8322, allocations: 2.594 MB / 0.6044 GB, free: 153.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.397e-06/0.8323, allocations: 7.094 kB / 0.6044 GB, free: 153.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.8323, allocations: 9.312 kB / 0.6044 GB, free: 153.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01122/0.8435, allocations: 6.292 MB / 0.6106 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.572e-06/0.8435, allocations: 3.406 kB / 0.6106 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008285/0.8444, allocations: 159.3 kB / 0.6107 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004996/0.8494, allocations: 1.348 MB / 0.612 GB, free: 152 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.8495, allocations: 21.81 kB / 0.6121 GB, free: 152 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01046/0.86, allocations: 7.693 MB / 0.6196 GB, free: 148.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000615/0.8606, allocations: 1.362 MB / 0.6209 GB, free: 146.7 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008376/0.869, allocations: 5.104 MB / 0.6259 GB, free: 144.8 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009448/0.8785, allocations: 6.89 MB / 0.6326 GB, free: 142 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003928/0.8789, allocations: 282.8 kB / 0.6329 GB, free: 141.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003376/0.8792, allocations: 11.62 kB / 0.6329 GB, free: 141.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.8805, allocations: 71.75 kB / 0.633 GB, free: 141.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.8806, allocations: 56.33 kB / 0.633 GB, free: 141.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001145/0.8808, allocations: 50.16 kB / 0.6331 GB, free: 141.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001749/0.8825, allocations: 1.437 MB / 0.6345 GB, free: 141.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003884/0.8864, allocations: 0.6974 MB / 0.6351 GB, free: 140.4 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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 75 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004071/0.8868, allocations: 166.4 kB / 0.6353 GB, free: 140.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005721/0.8925, allocations: 4.185 MB / 0.6394 GB, free: 136.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.8926, allocations: 0 / 0.6394 GB, free: 136.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002718/0.8953, allocations: 1.624 MB / 0.641 GB, free: 135 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009345/0.8962, allocations: 201 kB / 0.6412 GB, free: 134.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007854/0.9041, allocations: 5.603 MB / 0.6466 GB, free: 129.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002375/0.9065, allocations: 2.576 MB / 0.6492 GB, free: 127.8 MB / 426.7 MB Notification: Performance of SimCode: time 4e-07/0.9065, allocations: 0 / 0.6492 GB, free: 127.8 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)