Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",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.00109/0.00109, allocations: 205.8 kB / 8.544 MB, free: 1.797 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.163/1.163, allocations: 225.5 MB / 234.4 MB, free: 3.453 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009494/0.0009494, allocations: 90.25 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0914/0.09238, allocations: 56.9 MB / 343.2 MB, free: 8.695 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07845/0.1708, allocations: 51.47 MB / 394.7 MB, free: 5.176 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2158/0.3867, allocations: 98.69 MB / 493.4 MB, free: 10.66 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.3869, allocations: 84.14 kB / 493.5 MB, free: 10.62 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: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.3904/0.7774, allocations: 98.78 MB / 0.5784 GB, free: 55.99 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.7774, allocations: 17.2 kB / 0.5784 GB, free: 55.99 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009909/0.7873, allocations: 2.256 MB / 0.5806 GB, free: 55.68 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009031/0.7964, allocations: 4.692 MB / 0.5852 GB, free: 55.38 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.7965, allocations: 152.8 kB / 0.5853 GB, free: 55.38 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006793/0.7972, allocations: 284.3 kB / 0.5856 GB, free: 55.37 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008169/0.8054, allocations: 7.162 MB / 0.5926 GB, free: 55.34 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01029/0.8157, allocations: 10.63 MB / 0.603 GB, free: 52.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.8158, allocations: 66.91 kB / 0.603 GB, free: 52.3 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005124/0.8164, allocations: 32.28 kB / 0.6031 GB, free: 52.3 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001467/0.8178, allocations: 1.271 MB / 0.6043 GB, free: 52.29 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04115/0.859, allocations: 53.47 MB / 0.6565 GB, free: 35.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002891/0.8619, allocations: 2.633 MB / 0.6591 GB, free: 34.18 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001947/0.8639, allocations: 1.745 MB / 0.6608 GB, free: 33.5 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008744/0.8726, allocations: 6.677 MB / 0.6673 GB, free: 29.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.8727, allocations: 55.16 kB / 0.6674 GB, free: 29.54 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 4.138e-06/0.8727, allocations: 0 / 0.6674 GB, free: 29.54 MB / 458.7 MB Notification: Performance of matching and sorting (n=195): time 0.02266/0.8954, allocations: 11.96 MB / 0.6791 GB, free: 24.51 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.8954, allocations: 150.7 kB / 0.6792 GB, free: 24.34 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003875/0.8993, allocations: 3.244 MB / 0.6824 GB, free: 23.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001107/0.8994, allocations: 25.7 kB / 0.6824 GB, free: 23.06 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.9005, allocations: 3.259 MB / 0.6856 GB, free: 20.54 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004446/0.901, allocations: 0.7558 MB / 0.6863 GB, free: 19.99 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002224/0.9012, allocations: 0 / 0.6863 GB, free: 19.99 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003088/0.9015, allocations: 0.5914 MB / 0.6869 GB, free: 19.56 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.9039, allocations: 2.089 MB / 0.6889 GB, free: 18.88 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003546/0.9075, allocations: 6.288 MB / 0.6951 GB, free: 12.31 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003526/0.911, allocations: 3.589 MB / 0.6986 GB, free: 11.03 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.12e-05/0.9111, allocations: 44.78 kB / 0.6986 GB, free: 11.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=900) (initialization): time 0.01148/0.9226, allocations: 8.057 MB / 0.7065 GB, free: 8.406 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.9226, allocations: 9 kB / 0.7065 GB, free: 8.406 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.004556/0.9272, allocations: 2.678 MB / 0.7091 GB, free: 7.699 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003122/0.9303, allocations: 1.024 MB / 0.7101 GB, free: 7.547 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00454/0.9348, allocations: 1.6 MB / 0.7117 GB, free: 7.355 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003826/0.9387, allocations: 4.177 MB / 0.7157 GB, free: 4.457 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004593/0.9433, allocations: 318.3 kB / 0.716 GB, free: 4.434 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004919/0.9438, allocations: 426.8 kB / 0.7165 GB, free: 4.379 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 688 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (862): * Single equations (assignments): 853 * 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.0007733/0.9446, allocations: 487.9 kB / 0.7169 GB, free: 3.977 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004811/0.9451, allocations: 348.3 kB / 0.7173 GB, free: 3.785 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005537/0.9506, allocations: 3.012 MB / 0.7202 GB, free: 2.844 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004691/0.9553, allocations: 2.521 MB / 0.7227 GB, free: 2.133 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.9553, allocations: 7.312 kB / 0.7227 GB, free: 2.129 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.249e-05/0.9554, allocations: 12.34 kB / 0.7227 GB, free: 2.125 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01679/0.9722, allocations: 9.088 MB / 0.7316 GB, free: 11.74 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.635e-05/0.9722, allocations: 12.61 kB / 0.7316 GB, free: 11.73 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001569/0.9738, allocations: 336.4 kB / 0.7319 GB, free: 11.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003232/0.977, allocations: 0.8991 MB / 0.7328 GB, free: 10.83 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001734/0.9772, allocations: 34.7 kB / 0.7328 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004799/0.982, allocations: 4.404 MB / 0.7371 GB, free: 6.688 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008254/0.9829, allocations: 1.383 MB / 0.7384 GB, free: 5.227 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1268/1.11, allocations: 7.279 MB / 0.7456 GB, free: 143.8 MB / 474.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009088/1.119, allocations: 8.884 MB / 0.7542 GB, free: 141.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006356/1.119, allocations: 407.6 kB / 0.7546 GB, free: 141.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004725/1.12, allocations: 28.31 kB / 0.7546 GB, free: 141.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001699/1.122, allocations: 109.8 kB / 0.7548 GB, free: 141.1 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/1.122, allocations: 120.7 kB / 0.7549 GB, free: 141.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001609/1.122, allocations: 72.75 kB / 0.7549 GB, free: 141.1 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002545/1.125, allocations: 2.137 MB / 0.757 GB, free: 141 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005398/1.13, allocations: 1.003 MB / 0.758 GB, free: 141 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 50 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (169): * Single equations (assignments): 162 * 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 {(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 Backend phase and start with SimCode phase: time 0.0003958/1.13, allocations: 198.3 kB / 0.7582 GB, free: 140.9 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007108/1.137, allocations: 5.495 MB / 0.7636 GB, free: 140.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/1.137, allocations: 0 / 0.7636 GB, free: 140.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003107/1.141, allocations: 2.01 MB / 0.7655 GB, free: 140.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/1.142, allocations: 364.6 kB / 0.7659 GB, free: 140 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01214/1.154, allocations: 8.787 MB / 0.7744 GB, free: 138 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003851/1.158, allocations: 3.892 MB / 0.7783 GB, free: 137.2 MB / 474.7 MB Notification: Performance of SimCode: time 6.41e-07/1.158, allocations: 0 / 0.7783 GB, free: 137.2 MB / 474.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1)