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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") [: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.00104/0.00104, allocations: 184.8 kB / 8.137 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 3.082 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009346/0.0009346, allocations: 98.44 kB / 280.8 MB, free: 1.273 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.152e-06, allocations: 0 / 336.5 MB, free: 9.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2544, allocations: 50.41 MB / 386.9 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1057/0.3602, allocations: 93.68 MB / 480.6 MB, free: 9.105 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002335/0.3604, allocations: 92.45 kB / 480.7 MB, free: 9.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3353/0.6957, allocations: 78.51 MB / 0.5461 GB, free: 62.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001296/0.6959, allocations: 76 kB / 0.5462 GB, free: 62.8 MB / 378.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.01145/0.7073, allocations: 4.041 MB / 0.5501 GB, free: 58.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.7074, allocations: 12.03 kB / 0.5501 GB, free: 58.68 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008724/0.7161, allocations: 1.851 MB / 0.5519 GB, free: 56.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009917/0.7261, allocations: 4.293 MB / 0.5561 GB, free: 52.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001378/0.7262, allocations: 140 kB / 0.5563 GB, free: 52.34 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/0.7275, allocations: 247.9 kB / 0.5565 GB, free: 52.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01072/0.7382, allocations: 6.112 MB / 0.5625 GB, free: 45.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01674/0.755, allocations: 9.439 MB / 0.5717 GB, free: 35.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001204/0.7552, allocations: 67.34 kB / 0.5717 GB, free: 35.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005157/0.7557, allocations: 36 kB / 0.5718 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00112/0.7568, allocations: 1.088 MB / 0.5728 GB, free: 34.26 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04619/0.803, allocations: 49.09 MB / 0.6208 GB, free: 15.37 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003444/0.8065, allocations: 2.304 MB / 0.623 GB, free: 12.92 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001937/0.8085, allocations: 1.422 MB / 0.6244 GB, free: 11.49 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008643/0.8171, allocations: 5.285 MB / 0.6296 GB, free: 5.945 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.803e-05/0.8172, allocations: 51.28 kB / 0.6296 GB, free: 5.883 MB / 410.7 MB Notification: Performance of pre-optimization done (n=152): time 3.687e-06/0.8172, allocations: 0 / 0.6296 GB, free: 5.883 MB / 410.7 MB Notification: Performance of matching and sorting (n=159): time 0.01965/0.8369, allocations: 9.216 MB / 0.6386 GB, free: 12.53 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.853e-05/0.837, allocations: 145.5 kB / 0.6388 GB, free: 12.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00433/0.8413, allocations: 2.993 MB / 0.6417 GB, free: 9.367 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002742/0.8416, allocations: 25.7 kB / 0.6417 GB, free: 9.336 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.8435, allocations: 3.014 MB / 0.6447 GB, free: 6.273 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008024/0.8443, allocations: 0.6288 MB / 0.6453 GB, free: 5.637 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002374/0.8445, allocations: 0 / 0.6453 GB, free: 5.637 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003795/0.8449, allocations: 0.5746 MB / 0.6458 GB, free: 5.055 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00283/0.8478, allocations: 1.918 MB / 0.6477 GB, free: 3.133 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1381/0.9859, allocations: 5.928 MB / 0.6535 GB, free: 131.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004711/0.9906, allocations: 3.361 MB / 0.6568 GB, free: 131.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.707e-05/0.9907, allocations: 44.25 kB / 0.6568 GB, free: 131.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=834) (initialization): time 0.015/1.006, allocations: 7.869 MB / 0.6645 GB, free: 131.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.031e-05/1.006, allocations: 2.656 kB / 0.6645 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00539/1.011, allocations: 2.669 MB / 0.6671 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0048/1.016, allocations: 1.455 MB / 0.6685 GB, free: 131 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004368/1.02, allocations: 1.402 MB / 0.6699 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/1.025, allocations: 5.332 MB / 0.6751 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006313/1.032, allocations: 264.3 kB / 0.6754 GB, free: 127.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001698/1.033, allocations: 404.4 kB / 0.6758 GB, free: 127.8 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.001185/1.035, allocations: 474.6 kB / 0.6762 GB, free: 127.6 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005869/1.035, allocations: 304.7 kB / 0.6765 GB, free: 127.6 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005949/1.041, allocations: 2.954 MB / 0.6794 GB, free: 127.5 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004894/1.046, allocations: 2.531 MB / 0.6819 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.046, allocations: 4.312 kB / 0.6819 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.359e-05/1.046, allocations: 3.656 kB / 0.6819 GB, free: 127.4 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/1.059, allocations: 7.686 MB / 0.6894 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.09e-05/1.059, allocations: 3.781 kB / 0.6894 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000915/1.06, allocations: 172.1 kB / 0.6895 GB, free: 126.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004305/1.064, allocations: 1.352 MB / 0.6909 GB, free: 126.8 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001723/1.064, allocations: 18.53 kB / 0.6909 GB, free: 126.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005277/1.07, allocations: 5.581 MB / 0.6963 GB, free: 123.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006363/1.07, allocations: 1.363 MB / 0.6977 GB, free: 122.5 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008516/1.079, allocations: 5.246 MB / 0.7028 GB, free: 121.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008459/1.08, allocations: 347.1 kB / 0.7031 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004238/1.08, allocations: 12.89 kB / 0.7031 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/1.082, allocations: 79.95 kB / 0.7032 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/1.082, allocations: 68.36 kB / 0.7033 GB, free: 121.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001328/1.082, allocations: 45.34 kB / 0.7033 GB, free: 121.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002984/1.085, allocations: 1.964 MB / 0.7052 GB, free: 121 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005022/1.09, allocations: 0.8909 MB / 0.7061 GB, free: 121 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.0004465/1.09, allocations: 162 kB / 0.7062 GB, free: 120.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008566/1.099, allocations: 5.142 MB / 0.7113 GB, free: 119.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/1.099, allocations: 0 / 0.7113 GB, free: 119.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003581/1.103, allocations: 1.914 MB / 0.7131 GB, free: 118.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/1.105, allocations: 289.8 kB / 0.7134 GB, free: 118.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01363/1.118, allocations: 7.465 MB / 0.7207 GB, free: 112.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003578/1.122, allocations: 3.431 MB / 0.7241 GB, free: 109.6 MB / 426.7 MB Notification: Performance of SimCode: time 7.71e-07/1.122, allocations: 0 / 0.7241 GB, free: 109.6 MB / 426.7 MB Notification: Performance of Templates: time 0.05984/1.182, allocations: 34.56 MB / 0.7578 GB, free: 83.25 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches