Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.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.ThreeSprings,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 183.7 kB / 8.479 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.102/1.102, 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.0009455/0.0009455, allocations: 83.66 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1513/0.1522, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06195/0.2142, allocations: 47.58 MB / 362.6 MB, free: 9.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2204/0.4346, allocations: 92.1 MB / 454.7 MB, free: 8.422 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001973/0.4349, allocations: 86.5 kB / 454.8 MB, free: 8.406 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: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.2206/0.6555, allocations: 81.53 MB / 0.5238 GB, free: 6.336 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.751e-05/0.6555, allocations: 8 kB / 0.5238 GB, free: 6.328 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.6657, allocations: 1.862 MB / 0.5256 GB, free: 4.457 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01159/0.6773, allocations: 4.44 MB / 0.53 GB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001886/0.6775, allocations: 140 kB / 0.5301 GB, free: 15.82 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001029/0.6785, allocations: 247.9 kB / 0.5303 GB, free: 15.58 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009733/0.6883, allocations: 6.112 MB / 0.5363 GB, free: 9.461 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0129/0.7012, allocations: 9.432 MB / 0.5455 GB, free: 14.95 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001314/0.7014, allocations: 59.5 kB / 0.5456 GB, free: 14.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004737/0.7018, allocations: 32 kB / 0.5456 GB, free: 14.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001379/0.7032, allocations: 1.096 MB / 0.5467 GB, free: 13.75 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1525/0.8558, allocations: 49.11 MB / 0.5946 GB, free: 114.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002734/0.8586, allocations: 2.305 MB / 0.5969 GB, free: 114.3 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001469/0.8601, allocations: 1.419 MB / 0.5983 GB, free: 114.2 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006958/0.867, allocations: 5.286 MB / 0.6034 GB, free: 112.3 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.8671, allocations: 53.59 kB / 0.6035 GB, free: 112.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=152): time 3.767e-06/0.8671, allocations: 0 / 0.6035 GB, free: 112.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=159): time 0.01853/0.8856, allocations: 9.273 MB / 0.6125 GB, free: 109.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/0.8857, allocations: 144.6 kB / 0.6127 GB, free: 109.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003561/0.8893, allocations: 3.006 MB / 0.6156 GB, free: 109.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001526/0.8894, allocations: 25.7 kB / 0.6156 GB, free: 109.2 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001135/0.8906, allocations: 3.004 MB / 0.6186 GB, free: 107.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004937/0.8911, allocations: 0.641 MB / 0.6192 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002181/0.8913, allocations: 0 / 0.6192 GB, free: 107.1 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002797/0.8916, allocations: 0.5697 MB / 0.6197 GB, free: 106.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002323/0.8939, allocations: 1.918 MB / 0.6216 GB, free: 106.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003644/0.8976, allocations: 5.93 MB / 0.6274 GB, free: 101.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003471/0.9011, allocations: 3.366 MB / 0.6307 GB, free: 101.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.542e-05/0.9011, allocations: 46.38 kB / 0.6307 GB, free: 101.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.01294/0.9141, allocations: 7.876 MB / 0.6384 GB, free: 100.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.9141, allocations: 3.969 kB / 0.6384 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005317/0.9194, allocations: 2.658 MB / 0.641 GB, free: 99.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004785/0.9243, allocations: 1.459 MB / 0.6425 GB, free: 99.28 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003809/0.9281, allocations: 1.399 MB / 0.6438 GB, free: 99.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004781/0.9329, allocations: 5.351 MB / 0.649 GB, free: 95.48 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004222/0.9371, allocations: 270.9 kB / 0.6493 GB, free: 95.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004625/0.9376, allocations: 400.8 kB / 0.6497 GB, free: 95.4 MB / 426.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.0006569/0.9382, allocations: 469.9 kB / 0.6501 GB, free: 95.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003737/0.9386, allocations: 308.2 kB / 0.6504 GB, free: 94.85 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005909/0.9445, allocations: 2.962 MB / 0.6533 GB, free: 93.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005151/0.9497, allocations: 2.535 MB / 0.6558 GB, free: 93.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.9497, allocations: 3.812 kB / 0.6558 GB, free: 93.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.9498, allocations: 3.938 kB / 0.6558 GB, free: 93.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01287/0.9626, allocations: 7.684 MB / 0.6633 GB, free: 89.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.846e-06/0.9627, allocations: 0 / 0.6633 GB, free: 89.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.9637, allocations: 182.6 kB / 0.6635 GB, free: 88.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004491/0.9683, allocations: 1.346 MB / 0.6648 GB, free: 87.98 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.9684, allocations: 23.36 kB / 0.6648 GB, free: 87.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005177/0.9736, allocations: 5.558 MB / 0.6702 GB, free: 82.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006328/0.9742, allocations: 1.368 MB / 0.6716 GB, free: 81.3 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007669/0.9819, allocations: 5.238 MB / 0.6767 GB, free: 76.79 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008781/0.9907, allocations: 7.16 MB / 0.6837 GB, free: 70.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005639/0.9913, allocations: 352.2 kB / 0.684 GB, free: 70.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/0.9917, allocations: 15.38 kB / 0.684 GB, free: 70.16 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001369/0.9931, allocations: 77.72 kB / 0.6841 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.9933, allocations: 72.27 kB / 0.6842 GB, free: 70.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001183/0.9934, allocations: 39.75 kB / 0.6842 GB, free: 70.04 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002368/0.9958, allocations: 1.974 MB / 0.6861 GB, free: 68.32 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004839/1.001, allocations: 0.8959 MB / 0.687 GB, free: 67.43 MB / 426.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.0003465/1.001, allocations: 151.2 kB / 0.6872 GB, free: 67.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006906/1.008, allocations: 5.145 MB / 0.6922 GB, free: 62.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/1.008, allocations: 0 / 0.6922 GB, free: 62.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003241/1.011, allocations: 1.909 MB / 0.6941 GB, free: 60.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/1.012, allocations: 292.9 kB / 0.6943 GB, free: 60.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/1.024, allocations: 7.488 MB / 0.7016 GB, free: 53.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003317/1.027, allocations: 3.49 MB / 0.7051 GB, free: 51.27 MB / 426.7 MB Notification: Performance of SimCode: time 4.01e-07/1.027, allocations: 0 / 0.7051 GB, free: 51.27 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_ThreeSprings.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1)