Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.SpringWithMass,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00104/0.00104, allocations: 195.1 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.162/1.162, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009585/0.0009585, allocations: 93.47 kB / 286.3 MB, free: 5.309 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09106/0.09205, allocations: 56.91 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08079/0.1729, allocations: 51.47 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2189/0.3918, allocations: 93.35 MB / 488.1 MB, free: 15.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/0.3921, allocations: 81.89 kB / 488.1 MB, free: 15.91 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.1568/0.5489, allocations: 60.66 MB / 0.5359 GB, free: 8.305 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.18e-05/0.549, allocations: 8 kB / 0.5359 GB, free: 8.297 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007895/0.5569, allocations: 1.681 MB / 0.5376 GB, free: 6.609 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007151/0.564, allocations: 2.968 MB / 0.5405 GB, free: 3.59 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.56e-05/0.5641, allocations: 83.94 kB / 0.5406 GB, free: 3.508 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004951/0.5647, allocations: 147.9 kB / 0.5407 GB, free: 3.363 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005724/0.5704, allocations: 4.218 MB / 0.5448 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007449/0.5778, allocations: 6.405 MB / 0.5511 GB, free: 8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.067e-05/0.5779, allocations: 39.69 kB / 0.5511 GB, free: 7.961 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003093/0.5783, allocations: 23.91 kB / 0.5511 GB, free: 7.938 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009241/0.5792, allocations: 0.7615 MB / 0.5519 GB, free: 7.172 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1398/0.719, allocations: 32.04 MB / 0.5832 GB, free: 126.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.7209, allocations: 2.064 MB / 0.5852 GB, free: 126 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.722, allocations: 1.16 MB / 0.5863 GB, free: 126 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00536/0.7273, allocations: 4.53 MB / 0.5907 GB, free: 124.2 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.459e-05/0.7274, allocations: 49.91 kB / 0.5908 GB, free: 124.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=112): time 3.206e-06/0.7274, allocations: 0 / 0.5908 GB, free: 124.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=125): time 0.01823/0.7456, allocations: 9.049 MB / 0.5996 GB, free: 122.3 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.026e-05/0.7457, allocations: 140 kB / 0.5998 GB, free: 122.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.7479, allocations: 2.158 MB / 0.6019 GB, free: 121.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.622e-05/0.748, allocations: 28.83 kB / 0.6019 GB, free: 121.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000719/0.7488, allocations: 2.026 MB / 0.6039 GB, free: 120.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.7491, allocations: 0.4948 MB / 0.6044 GB, free: 120.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001658/0.7492, allocations: 0 / 0.6044 GB, free: 120.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002247/0.7495, allocations: 0.556 MB / 0.6049 GB, free: 120 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001781/0.7513, allocations: 1.581 MB / 0.6065 GB, free: 120 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002645/0.7539, allocations: 4.45 MB / 0.6108 GB, free: 116.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003343/0.7573, allocations: 2.847 MB / 0.6136 GB, free: 116.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.711e-05/0.7573, allocations: 30.69 kB / 0.6136 GB, free: 116.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=610) (initialization): time 0.01127/0.7686, allocations: 6.609 MB / 0.6201 GB, free: 114.4 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.7686, allocations: 8.156 kB / 0.6201 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006185/0.7748, allocations: 2.652 MB / 0.6227 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005172/0.78, allocations: 1.401 MB / 0.624 GB, free: 113.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002969/0.783, allocations: 1.035 MB / 0.625 GB, free: 113.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.7936, allocations: 7.408 MB / 0.6323 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/0.797, allocations: 236.1 kB / 0.6325 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003595/0.7973, allocations: 294.5 kB / 0.6328 GB, free: 109.5 MB / 442.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.0004731/0.7978, allocations: 345.9 kB / 0.6331 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.7981, allocations: 219.6 kB / 0.6333 GB, free: 109.1 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006621/0.8047, allocations: 2.911 MB / 0.6362 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006018/0.8108, allocations: 2.587 MB / 0.6387 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.171e-05/0.8108, allocations: 5.906 kB / 0.6387 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.8108, allocations: 3.891 kB / 0.6387 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01154/0.8224, allocations: 6.294 MB / 0.6448 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.8224, allocations: 2.203 kB / 0.6448 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008446/0.8232, allocations: 158.7 kB / 0.645 GB, free: 105.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004951/0.8282, allocations: 1.358 MB / 0.6463 GB, free: 105.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001282/0.8283, allocations: 28.67 kB / 0.6463 GB, free: 105.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.8388, allocations: 7.683 MB / 0.6538 GB, free: 101.3 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006508/0.8395, allocations: 1.367 MB / 0.6552 GB, free: 99.93 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009007/0.8485, allocations: 5.098 MB / 0.6602 GB, free: 98.01 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009968/0.8585, allocations: 6.877 MB / 0.6669 GB, free: 94.65 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003916/0.8589, allocations: 281.1 kB / 0.6671 GB, free: 94.36 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000331/0.8593, allocations: 23.16 kB / 0.6672 GB, free: 94.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001242/0.8605, allocations: 67.23 kB / 0.6672 GB, free: 94.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001571/0.8607, allocations: 65.03 kB / 0.6673 GB, free: 94.26 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001291/0.8608, allocations: 42.95 kB / 0.6673 GB, free: 94.23 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001726/0.8626, allocations: 1.426 MB / 0.6687 GB, free: 92.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004101/0.8667, allocations: 0.7039 MB / 0.6694 GB, free: 92.27 MB / 442.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.0003716/0.867, allocations: 167.9 kB / 0.6696 GB, free: 92.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005637/0.8727, allocations: 4.194 MB / 0.6737 GB, free: 88.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.8727, allocations: 0 / 0.6737 GB, free: 88.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002663/0.8754, allocations: 1.616 MB / 0.6752 GB, free: 86.88 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000912/0.8763, allocations: 202.2 kB / 0.6754 GB, free: 86.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008172/0.8845, allocations: 5.58 MB / 0.6809 GB, free: 81.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002339/0.8868, allocations: 2.566 MB / 0.6834 GB, free: 79.68 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/0.8869, allocations: 0 / 0.6834 GB, free: 79.68 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringWithMass.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1)