Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7539/0.7539, allocations: 110.8 MB / 118 MB, free: 14.53 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001819/0.001819, allocations: 156 kB / 143.7 MB, free: 4.855 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.593e-06/6.613e-06, allocations: 0 / 173.5 MB, free: 23.02 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04707/0.04709, allocations: 25.17 MB / 198.6 MB, free: 13.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1571/0.2042, allocations: 47.59 MB / 246.2 MB, free: 2.824 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.2044, allocations: 77.12 kB / 246.3 MB, free: 2.812 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.7884/0.9928, allocations: 219 MB / 465.3 MB, free: 20.05 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0005518/0.9934, allocations: 151.3 kB / 465.4 MB, free: 20.05 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2674 * Number of variables: 2674 Notification: Performance of Generate backend data structure: time 0.03668/1.03, allocations: 9.779 MB / 475.2 MB, free: 16.89 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.206e-05/1.03, allocations: 10.88 kB / 475.2 MB, free: 16.89 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1577/1.188, allocations: 29.67 MB / 0.4931 GB, free: 14.43 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03074/1.219, allocations: 10.76 MB / 0.5036 GB, free: 4.461 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006112/1.219, allocations: 256 kB / 0.5038 GB, free: 4.211 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007109/1.226, allocations: 435.8 kB / 0.5042 GB, free: 3.785 MB / 250.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.1533/1.38, allocations: 20.29 MB / 0.5241 GB, free: 48.98 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04903/1.429, allocations: 22.94 MB / 0.5465 GB, free: 43.37 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003957/1.429, allocations: 64.42 kB / 0.5465 GB, free: 43.36 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005439/1.435, allocations: 23 kB / 0.5465 GB, free: 43.36 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.04928/1.484, allocations: 9.496 MB / 0.5558 GB, free: 43.06 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6538/2.138, allocations: 142.2 MB / 0.6947 GB, free: 20.26 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/2.15, allocations: 9.841 MB / 0.7043 GB, free: 14.58 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008753/2.159, allocations: 7.837 MB / 0.712 GB, free: 8.621 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2376/2.397, allocations: 40.54 MB / 0.7516 GB, free: 41.28 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.018e-05/2.397, allocations: 81.19 kB / 0.7517 GB, free: 41.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=464): time 1.062e-05/2.397, allocations: 3.844 kB / 0.7517 GB, free: 41.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=728): time 0.3072/2.704, allocations: 80.22 MB / 0.83 GB, free: 38.79 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/2.704, allocations: 277.1 kB / 0.8303 GB, free: 38.54 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009625/2.714, allocations: 5.142 MB / 0.8353 GB, free: 38.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002652/2.717, allocations: 33.17 kB / 0.8353 GB, free: 38.22 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002677/2.719, allocations: 4.555 MB / 0.8398 GB, free: 35.98 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003965/2.723, allocations: 2.457 MB / 0.8422 GB, free: 34.42 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002742/2.726, allocations: 0 / 0.8422 GB, free: 34.42 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0007912/2.727, allocations: 0.8273 MB / 0.843 GB, free: 34.09 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01627/2.743, allocations: 10.89 MB / 0.8536 GB, free: 32.48 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02062/2.764, allocations: 16.17 MB / 0.8694 GB, free: 21.45 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01797/2.782, allocations: 12.54 MB / 0.8816 GB, free: 17.05 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002385/2.782, allocations: 51.56 kB / 0.8817 GB, free: 17.05 MB / 250.7 MB Notification: Performance of matching and sorting (n=1594) (initialization): time 0.1942/2.976, allocations: 43.28 MB / 0.924 GB, free: 32.98 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/2.976, allocations: 6.125 kB / 0.924 GB, free: 32.98 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002691/2.977, allocations: 181.1 kB / 0.9241 GB, free: 32.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.06801/3.045, allocations: 20.59 MB / 0.9442 GB, free: 30.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009573/3.054, allocations: 2.141 MB / 0.9463 GB, free: 30.61 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4247/3.479, allocations: 125.7 MB / 1.069 GB, free: 28.73 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02302/3.502, allocations: 1.855 MB / 1.071 GB, free: 28.73 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004097/3.506, allocations: 0.9194 MB / 1.072 GB, free: 28.73 MB / 250.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: b2.frame_b.R.T[3,2]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] b2.frame_b.R.T[3,3]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] j2.box.rxvisobj[2]:DUMMY_STATE(unit = "1" protected = true ) "x-axis unit vector of shape, resolved in world frame" type: Real [3] j2.box.rxvisobj[1]:DUMMY_STATE(unit = "1" protected = true ) "x-axis unit vector of shape, resolved in world frame" type: Real [3] b2.frame_b.R.T[3,1]:DUMMY_STATE() "Transformation matrix from world frame to local frame" type: Real [3,3] j2.box.rxvisobj[3]:DUMMY_STATE(unit = "1" protected = true ) "x-axis unit vector of shape, resolved in world frame" type: Real [3] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 824 * Number of states: 0 () * Number of discrete variables: 51 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[1],b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j2.boxColor[3],j2.boxColor[2],j2.boxColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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 (1107): * Single equations (assignments): 1087 * Array equations: 16 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 176,(18,38.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 90} Notification: Performance of prepare postOptimizeDAE: time 0.004401/3.51, allocations: 0.5734 MB / 1.072 GB, free: 28.63 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002189/3.513, allocations: 0.6348 MB / 1.073 GB, free: 28.63 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.086/3.599, allocations: 36.79 MB / 1.109 GB, free: 28.3 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01633/3.615, allocations: 2.603 MB / 1.111 GB, free: 28.3 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001842/3.615, allocations: 65.66 kB / 1.111 GB, free: 28.3 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002249/3.616, allocations: 35.95 kB / 1.112 GB, free: 28.3 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2947/3.91, allocations: 67.02 MB / 1.177 GB, free: 25.95 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.974e-05/3.91, allocations: 3.781 kB / 1.177 GB, free: 25.95 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/3.913, allocations: 447 kB / 1.177 GB, free: 25.95 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0617/3.975, allocations: 19.77 MB / 1.197 GB, free: 25.84 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002587/3.978, allocations: 110.3 kB / 1.197 GB, free: 25.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2889/4.267, allocations: 115.1 MB / 1.309 GB, free: 11.9 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.802e-06/4.267, allocations: 2.312 kB / 1.309 GB, free: 11.9 MB / 250.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.2057/4.472, allocations: 54.08 MB / 1.362 GB, free: 37.43 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.009151/4.482, allocations: 2.979 MB / 1.365 GB, free: 37.34 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003708/4.485, allocations: 7.156 kB / 1.365 GB, free: 37.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01716/4.503, allocations: 1.587 MB / 1.367 GB, free: 37.34 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002771/4.505, allocations: 320 kB / 1.367 GB, free: 37.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002034/4.507, allocations: 395.7 kB / 1.367 GB, free: 37.33 MB / 266.7 MB Notification: Performance of sort global known variables: time 0.006563/4.514, allocations: 3.505 MB / 1.371 GB, free: 37.15 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.01794/4.532, allocations: 3.308 MB / 1.374 GB, free: 37.15 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (j1.phi,j1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (246): * Single equations (assignments): 226 * Array equations: 16 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(22,33.9%) 173,(18,37.0%) 114,(2,100.0%) 7} * Non-linear torn systems: 1 {12 100} Notification: Performance of Backend phase and start with SimCode phase: time 0.002333/4.534, allocations: 149.3 kB / 1.374 GB, free: 37.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.06118/4.596, allocations: 30.21 MB / 1.403 GB, free: 29.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/4.596, allocations: 3.031 kB / 1.403 GB, free: 29.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.04197/4.638, allocations: 16.89 MB / 1.42 GB, free: 17.33 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005869/4.644, allocations: 0.5647 MB / 1.421 GB, free: 16.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1753/4.819, allocations: 26.05 MB / 1.446 GB, free: 35.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01635/4.835, allocations: 7.2 MB / 1.453 GB, free: 34.49 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/4.835, allocations: 0 / 1.453 GB, free: 34.49 MB / 266.7 MB Notification: Performance of Templates: time 0.6695/5.505, allocations: 266 MB / 1.713 GB, free: 51.35 MB / 282.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)