Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.000966/0.000966, allocations: 184.3 kB / 8.134 MB, free: 0.875 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.076/1.076, allocations: 221.4 MB / 229.9 MB, free: 13.57 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 100 kB / 280.8 MB, free: 10.52 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08527/0.08626, allocations: 55.83 MB / 336.6 MB, free: 2.707 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0729/0.1592, allocations: 50.41 MB / 387 MB, free: 248 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1964/0.3556, allocations: 93.69 MB / 480.7 MB, free: 3.918 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002103/0.3559, allocations: 83.94 kB / 480.8 MB, free: 3.836 MB / 354.8 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.321/0.6769, allocations: 82.62 MB / 0.5502 GB, free: 86.16 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.6769, allocations: 9.312 kB / 0.5502 GB, free: 86.16 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008271/0.6852, allocations: 1.848 MB / 0.552 GB, free: 85.89 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009517/0.6948, allocations: 4.292 MB / 0.5562 GB, free: 85.36 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001075/0.6949, allocations: 137.8 kB / 0.5563 GB, free: 85.36 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000682/0.6956, allocations: 251.9 kB / 0.5566 GB, free: 85.35 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007112/0.7027, allocations: 6.112 MB / 0.5626 GB, free: 85.33 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009194/0.7119, allocations: 9.442 MB / 0.5718 GB, free: 82.4 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.712, allocations: 52.47 kB / 0.5718 GB, free: 82.4 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004222/0.7125, allocations: 34.41 kB / 0.5719 GB, free: 82.4 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00103/0.7135, allocations: 1.095 MB / 0.5729 GB, free: 82.38 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03605/0.7496, allocations: 49.11 MB / 0.6209 GB, free: 48.09 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.7521, allocations: 2.303 MB / 0.6231 GB, free: 46.81 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.7537, allocations: 1.425 MB / 0.6245 GB, free: 46.24 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006933/0.7606, allocations: 5.279 MB / 0.6297 GB, free: 43.18 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.7607, allocations: 56.38 kB / 0.6297 GB, free: 43.12 MB / 418.8 MB Notification: Performance of pre-optimization done (n=152): time 3.827e-06/0.7607, allocations: 0 / 0.6297 GB, free: 43.12 MB / 418.8 MB Notification: Performance of matching and sorting (n=159): time 0.01709/0.7778, allocations: 9.21 MB / 0.6387 GB, free: 36.58 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.7778, allocations: 145.5 kB / 0.6389 GB, free: 36.41 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003093/0.7809, allocations: 2.989 MB / 0.6418 GB, free: 33.78 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.781, allocations: 29.7 kB / 0.6418 GB, free: 33.74 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.7821, allocations: 3.005 MB / 0.6447 GB, free: 31.02 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/0.7825, allocations: 0.6329 MB / 0.6454 GB, free: 30.46 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.7827, allocations: 0 / 0.6454 GB, free: 30.46 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0002667/0.783, allocations: 0.5852 MB / 0.6459 GB, free: 29.94 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002121/0.7851, allocations: 1.912 MB / 0.6478 GB, free: 28.23 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003206/0.7883, allocations: 5.932 MB / 0.6536 GB, free: 20.57 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003681/0.792, allocations: 3.353 MB / 0.6569 GB, free: 17.71 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.887e-05/0.7921, allocations: 40 kB / 0.6569 GB, free: 17.67 MB / 418.8 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01237/0.8044, allocations: 7.889 MB / 0.6646 GB, free: 10.91 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.8045, allocations: 4.891 kB / 0.6646 GB, free: 10.91 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005013/0.8095, allocations: 2.671 MB / 0.6672 GB, free: 8.59 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004347/0.8139, allocations: 1.444 MB / 0.6686 GB, free: 7.129 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003365/0.8172, allocations: 1.404 MB / 0.67 GB, free: 5.723 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004123/0.8214, allocations: 5.333 MB / 0.6752 GB, free: 148 kB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003778/0.8252, allocations: 267.6 kB / 0.6755 GB, free: 15.88 MB / 434.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004596/0.8256, allocations: 403.9 kB / 0.6759 GB, free: 15.48 MB / 434.8 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.0006446/0.8263, allocations: 471.9 kB / 0.6763 GB, free: 15.02 MB / 434.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003916/0.8267, allocations: 308 kB / 0.6766 GB, free: 14.72 MB / 434.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006111/0.8328, allocations: 2.955 MB / 0.6795 GB, free: 11.76 MB / 434.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005336/0.8381, allocations: 2.534 MB / 0.682 GB, free: 9.219 MB / 434.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.8382, allocations: 4 kB / 0.682 GB, free: 9.215 MB / 434.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.573e-05/0.8382, allocations: 7.969 kB / 0.682 GB, free: 9.207 MB / 434.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.8522, allocations: 7.67 MB / 0.6895 GB, free: 1.492 MB / 434.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.061e-05/0.8522, allocations: 3.438 kB / 0.6895 GB, free: 1.492 MB / 434.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009176/0.8532, allocations: 183.7 kB / 0.6896 GB, free: 1.312 MB / 434.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004487/0.8577, allocations: 1.339 MB / 0.6909 GB, free: 15.95 MB / 450.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001378/0.8578, allocations: 27.81 kB / 0.691 GB, free: 15.93 MB / 450.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005805/0.8636, allocations: 5.567 MB / 0.6964 GB, free: 10.12 MB / 450.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007887/0.8645, allocations: 1.372 MB / 0.6977 GB, free: 8.621 MB / 450.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008191/0.8727, allocations: 5.235 MB / 0.7029 GB, free: 3.355 MB / 450.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.1143/0.987, allocations: 7.154 MB / 0.7098 GB, free: 150.9 MB / 450.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/0.9877, allocations: 345.2 kB / 0.7102 GB, free: 150.8 MB / 450.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003947/0.9881, allocations: 11.06 kB / 0.7102 GB, free: 150.8 MB / 450.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001313/0.9894, allocations: 82.83 kB / 0.7103 GB, free: 150.8 MB / 450.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001685/0.9896, allocations: 72.53 kB / 0.7103 GB, free: 150.8 MB / 450.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001136/0.9897, allocations: 49.84 kB / 0.7104 GB, free: 150.8 MB / 450.8 MB Notification: Performance of sort global known variables: time 0.002286/0.992, allocations: 1.961 MB / 0.7123 GB, free: 150.7 MB / 450.8 MB Notification: Performance of remove unused functions: time 0.004741/0.9967, allocations: 0.9024 MB / 0.7132 GB, free: 150.7 MB / 450.8 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.0003745/0.9971, allocations: 158.5 kB / 0.7133 GB, free: 150.6 MB / 450.8 MB Notification: Performance of simCode: created initialization part: time 0.00718/1.004, allocations: 5.147 MB / 0.7184 GB, free: 150.2 MB / 450.8 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/1.004, allocations: 0 / 0.7184 GB, free: 150.2 MB / 450.8 MB Notification: Performance of simCode: created simulation system equations: time 0.003242/1.008, allocations: 1.909 MB / 0.7202 GB, free: 149.8 MB / 450.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/1.009, allocations: 282 kB / 0.7205 GB, free: 149.8 MB / 450.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/1.02, allocations: 7.48 MB / 0.7278 GB, free: 148.3 MB / 450.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003114/1.023, allocations: 3.484 MB / 0.7312 GB, free: 147.5 MB / 450.8 MB Notification: Performance of SimCode: time 5.92e-07/1.023, allocations: 0 / 0.7312 GB, free: 147.5 MB / 450.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)