Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",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.00114/0.00114, allocations: 202.1 kB / 8.543 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.198/1.198, allocations: 225.5 MB / 234.4 MB, free: 3.359 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009245/0.0009245, allocations: 93.38 kB / 286.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09609/0.09705, allocations: 56.9 MB / 343.2 MB, free: 8.629 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0786/0.1757, allocations: 51.47 MB / 394.7 MB, free: 5.113 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2121/0.3878, allocations: 94.35 MB / 489.1 MB, free: 14.93 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002076/0.388, allocations: 82.14 kB / 489.1 MB, free: 14.89 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.2107/0.5988, allocations: 83.47 MB / 0.5592 GB, free: 324 kB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.5988, allocations: 8 kB / 0.5592 GB, free: 316 kB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008714/0.6076, allocations: 1.905 MB / 0.561 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008214/0.6158, allocations: 3.743 MB / 0.5647 GB, free: 10.6 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.6159, allocations: 140 kB / 0.5648 GB, free: 10.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000613/0.6165, allocations: 251.8 kB / 0.5651 GB, free: 10.21 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008175/0.6247, allocations: 6.108 MB / 0.571 GB, free: 4.098 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1204/0.7451, allocations: 9.44 MB / 0.5803 GB, free: 126.6 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001727/0.7454, allocations: 65.45 kB / 0.5803 GB, free: 126.6 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008901/0.7463, allocations: 33.5 kB / 0.5804 GB, free: 126.6 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001157/0.7474, allocations: 1.089 MB / 0.5814 GB, free: 126.6 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03413/0.7816, allocations: 49.09 MB / 0.6294 GB, free: 95.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002271/0.7839, allocations: 2.301 MB / 0.6316 GB, free: 94.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001408/0.7853, allocations: 1.426 MB / 0.633 GB, free: 94.58 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006402/0.7917, allocations: 5.282 MB / 0.6382 GB, free: 91.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.7917, allocations: 48.94 kB / 0.6382 GB, free: 91.9 MB / 442.7 MB Notification: Performance of pre-optimization done (n=152): time 3.487e-06/0.7918, allocations: 0 / 0.6382 GB, free: 91.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=159): time 0.01716/0.8089, allocations: 9.213 MB / 0.6472 GB, free: 88.14 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.199e-05/0.809, allocations: 144.3 kB / 0.6473 GB, free: 87.98 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003208/0.8122, allocations: 2.994 MB / 0.6503 GB, free: 86.84 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.486e-05/0.8123, allocations: 25.7 kB / 0.6503 GB, free: 86.81 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009992/0.8133, allocations: 3.013 MB / 0.6532 GB, free: 84.46 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003647/0.8137, allocations: 0.6323 MB / 0.6539 GB, free: 84.01 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.8139, allocations: 0 / 0.6539 GB, free: 84.01 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002416/0.8141, allocations: 0.5689 MB / 0.6544 GB, free: 83.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002193/0.8163, allocations: 1.917 MB / 0.6563 GB, free: 82.96 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003313/0.8197, allocations: 5.929 MB / 0.6621 GB, free: 76.79 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003333/0.823, allocations: 3.371 MB / 0.6654 GB, free: 75.57 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.346e-05/0.8231, allocations: 41.16 kB / 0.6654 GB, free: 75.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01289/0.8359, allocations: 7.866 MB / 0.6731 GB, free: 73.06 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.836, allocations: 5.406 kB / 0.6731 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005835/0.8418, allocations: 2.683 MB / 0.6757 GB, free: 72.38 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004949/0.8468, allocations: 1.449 MB / 0.6771 GB, free: 72.14 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003783/0.8506, allocations: 1.405 MB / 0.6785 GB, free: 71.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004766/0.8554, allocations: 5.335 MB / 0.6837 GB, free: 68.35 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004289/0.8597, allocations: 267 kB / 0.684 GB, free: 68.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004688/0.8602, allocations: 397.2 kB / 0.6843 GB, free: 68.28 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: spring3.r_rel_0[1]:VARIABLE(unit = "m" ) "Position vector from frame_a to frame_b resolved in world frame" type: Real [3] spring3.s:VARIABLE(unit = "m" ) "(Guarded) distance between the origin of frame_a and the origin of frame_b (>= s_small))" type: Real spring1.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real spring2.f:VARIABLE(unit = "N" ) "Line force acting on frame_a and on frame_b (positive, if acting on frame_b and directed from frame_a to frame_b)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 661 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[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 (762): * Single equations (assignments): 752 * 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: 2 * 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: 1 {6 29} Notification: Performance of prepare postOptimizeDAE: time 0.0006591/0.8608, allocations: 467.1 kB / 0.6848 GB, free: 67.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003848/0.8612, allocations: 310.1 kB / 0.6851 GB, free: 67.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006178/0.8674, allocations: 2.96 MB / 0.688 GB, free: 66.85 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00531/0.8727, allocations: 2.531 MB / 0.6904 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.8727, allocations: 2.875 kB / 0.6904 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.8728, allocations: 6 kB / 0.6904 GB, free: 66.16 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01291/0.8857, allocations: 7.686 MB / 0.698 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.8857, allocations: 7.703 kB / 0.698 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008999/0.8866, allocations: 177.8 kB / 0.6981 GB, free: 63.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004563/0.8912, allocations: 1.35 MB / 0.6994 GB, free: 63.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001265/0.8913, allocations: 17.3 kB / 0.6995 GB, free: 63.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005288/0.8966, allocations: 5.565 MB / 0.7049 GB, free: 59.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006316/0.8973, allocations: 1.365 MB / 0.7062 GB, free: 58.23 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008501/0.9058, allocations: 5.241 MB / 0.7114 GB, free: 55.08 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.009241/0.915, allocations: 7.155 MB / 0.7183 GB, free: 48.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005063/0.9156, allocations: 351.8 kB / 0.7187 GB, free: 48.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004071/0.916, allocations: 11.47 kB / 0.7187 GB, free: 48.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001368/0.9173, allocations: 75.47 kB / 0.7188 GB, free: 48.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/0.9175, allocations: 76.83 kB / 0.7188 GB, free: 48.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001326/0.9177, allocations: 45.86 kB / 0.7189 GB, free: 48.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00233/0.92, allocations: 1.968 MB / 0.7208 GB, free: 46.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004785/0.9248, allocations: 0.8997 MB / 0.7217 GB, free: 45.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($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]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 83 * 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: 2 * 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: 1 {8 27} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003456/0.9252, allocations: 159.1 kB / 0.7218 GB, free: 45.58 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006843/0.932, allocations: 5.146 MB / 0.7269 GB, free: 40.92 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.932, allocations: 0 / 0.7269 GB, free: 40.92 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003311/0.9353, allocations: 1.911 MB / 0.7287 GB, free: 39.19 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.9365, allocations: 284.9 kB / 0.729 GB, free: 38.94 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.9471, allocations: 7.472 MB / 0.7363 GB, free: 32.29 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003343/0.9504, allocations: 3.484 MB / 0.7397 GB, free: 29.59 MB / 442.7 MB Notification: Performance of SimCode: time 5.41e-07/0.9504, allocations: 0 / 0.7397 GB, free: 29.59 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)