Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") [: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.2+maint.om/package.mo): time 0.002165/0.002165, allocations: 196.1 kB / 8.138 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.122/1.122, allocations: 194.2 MB / 202.8 MB, free: 8.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00184/0.00184, allocations: 117.8 kB / 247.7 MB, free: 6.359 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.56e-06/5.57e-06, allocations: 0 / 297.6 MB, free: 8.004 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06946/0.06948, allocations: 44.49 MB / 342.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1901/0.2597, allocations: 93.4 MB / 435.5 MB, free: 1.98 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.2599, allocations: 79.27 kB / 435.5 MB, free: 1.941 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.4329/0.6928, allocations: 122 MB / 0.5444 GB, free: 71.87 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002723/0.6931, allocations: 117.4 kB / 0.5445 GB, free: 71.87 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.01593/0.709, allocations: 6.147 MB / 0.5505 GB, free: 69.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.7091, allocations: 11.72 kB / 0.5506 GB, free: 69.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03125/0.7403, allocations: 7.625 MB / 0.558 GB, free: 68.95 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01795/0.7583, allocations: 7.32 MB / 0.5651 GB, free: 68.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000341/0.7587, allocations: 191.1 kB / 0.5653 GB, free: 68.11 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002647/0.7614, allocations: 351.1 kB / 0.5657 GB, free: 68.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01842/0.7798, allocations: 10.37 MB / 0.5758 GB, free: 66.26 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02536/0.8052, allocations: 14.31 MB / 0.5898 GB, free: 59.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003149/0.8056, allocations: 74.56 kB / 0.5898 GB, free: 59.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002163/0.8077, allocations: 36.47 kB / 0.5899 GB, free: 59.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002378/0.8101, allocations: 1.716 MB / 0.5916 GB, free: 58.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06501/0.8752, allocations: 62.35 MB / 0.6524 GB, free: 3.77 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1009/0.9761, allocations: 4.597 MB / 0.6569 GB, free: 107.9 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003822/0.98, allocations: 3.562 MB / 0.6604 GB, free: 107.9 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02118/1.001, allocations: 15.43 MB / 0.6755 GB, free: 103.6 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/1.001, allocations: 61.19 kB / 0.6755 GB, free: 103.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=292): time 6.272e-06/1.001, allocations: 0 / 0.6755 GB, free: 103.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=342): time 0.06934/1.071, allocations: 29.1 MB / 0.704 GB, free: 98.45 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.301e-05/1.071, allocations: 215.1 kB / 0.7042 GB, free: 98.22 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005835/1.077, allocations: 4.34 MB / 0.7084 GB, free: 96.7 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006413/1.077, allocations: 25.7 kB / 0.7084 GB, free: 96.67 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001757/1.079, allocations: 4.174 MB / 0.7125 GB, free: 93.51 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/1.081, allocations: 1.226 MB / 0.7137 GB, free: 92.59 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/1.081, allocations: 0 / 0.7137 GB, free: 92.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004286/1.081, allocations: 0.6999 MB / 0.7144 GB, free: 92.12 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006303/1.088, allocations: 4.527 MB / 0.7188 GB, free: 90.44 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007402/1.095, allocations: 9.698 MB / 0.7283 GB, free: 81.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00795/1.103, allocations: 6.583 MB / 0.7347 GB, free: 79.68 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.817e-05/1.103, allocations: 59.81 kB / 0.7348 GB, free: 79.68 MB / 394.7 MB Notification: Performance of matching and sorting (n=1202) (initialization): time 0.03876/1.142, allocations: 17.63 MB / 0.752 GB, free: 72.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/1.142, allocations: 4 kB / 0.752 GB, free: 72.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002754/1.142, allocations: 184 kB / 0.7522 GB, free: 72.2 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02275/1.165, allocations: 5.334 MB / 0.7574 GB, free: 68.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007797/1.173, allocations: 2.085 MB / 0.7594 GB, free: 67.04 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02537/1.198, allocations: 20.88 MB / 0.7798 GB, free: 48.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008167/1.207, allocations: 312.3 kB / 0.7801 GB, free: 48.36 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001873/1.208, allocations: 0.5262 MB / 0.7806 GB, free: 47.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * Number of states: 0 () * Number of discrete variables: 42 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1111): * Single equations (assignments): 1103 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002469/1.211, allocations: 0.5508 MB / 0.7811 GB, free: 47.29 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00113/1.212, allocations: 481.7 kB / 0.7816 GB, free: 46.81 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03002/1.242, allocations: 12.01 MB / 0.7933 GB, free: 36.23 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001422/1.242, allocations: 51.98 kB / 0.7934 GB, free: 36.18 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.19e-05/1.242, allocations: 8 kB / 0.7934 GB, free: 36.18 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.584e-05/1.242, allocations: 15.95 kB / 0.7934 GB, free: 36.16 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1496/1.392, allocations: 22.42 MB / 0.8153 GB, free: 94.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.919e-05/1.392, allocations: 3.5 kB / 0.8153 GB, free: 94.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00318/1.395, allocations: 0.5085 MB / 0.8158 GB, free: 94.58 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01955/1.415, allocations: 4.33 MB / 0.82 GB, free: 94.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006403/1.416, allocations: 16.66 kB / 0.82 GB, free: 94.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01982/1.435, allocations: 16.79 MB / 0.8364 GB, free: 92.05 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.134e-06/1.435, allocations: 9.344 kB / 0.8365 GB, free: 92.05 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03249/1.468, allocations: 17.17 MB / 0.8532 GB, free: 87.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002681/1.471, allocations: 1.191 MB / 0.8544 GB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000954/1.472, allocations: 12.33 kB / 0.8544 GB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002834/1.474, allocations: 126.7 kB / 0.8545 GB, free: 87.22 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004952/1.475, allocations: 154.3 kB / 0.8547 GB, free: 87.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003243/1.475, allocations: 89.45 kB / 0.8547 GB, free: 87.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.003957/1.479, allocations: 2.907 MB / 0.8576 GB, free: 86.16 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007395/1.487, allocations: 1.471 MB / 0.859 GB, free: 86.16 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (257): * Single equations (assignments): 249 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005781/1.487, allocations: 164.2 kB / 0.8592 GB, free: 86.08 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01327/1.501, allocations: 10.24 MB / 0.8692 GB, free: 82.71 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.501, allocations: 0 / 0.8692 GB, free: 82.71 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004586/1.505, allocations: 3.85 MB / 0.8729 GB, free: 81.16 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002475/1.508, allocations: 455.9 kB / 0.8734 GB, free: 80.97 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02229/1.53, allocations: 13.65 MB / 0.8867 GB, free: 76.18 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007217/1.537, allocations: 5.129 MB / 0.8917 GB, free: 74.59 MB / 394.7 MB Notification: Performance of SimCode: time 1.342e-06/1.537, allocations: 0 / 0.8917 GB, free: 74.59 MB / 394.7 MB Notification: Performance of Templates: time 0.2223/1.76, allocations: 76.87 MB / 0.9668 GB, free: 79.21 MB / 394.7 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)