Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") [: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.1+maint.om/package.mo): time 0.003676/0.003675, allocations: 176.1 kB / 7.446 MB, free: 2.324 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.431/1.431, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00175/0.00175, allocations: 112.6 kB / 217.7 MB, free: 8.23 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 7.975e-06/8.005e-06, allocations: 0 / 261.7 MB, free: 26.66 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0927/0.09273, allocations: 38.76 MB / 300.5 MB, free: 3.891 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3632/0.456, allocations: 91.22 MB / 391.7 MB, free: 9.574 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/0.4563, allocations: 90.06 kB / 391.8 MB, free: 9.527 MB / 282.7 MB Notification: Performance of FrontEnd: time 0.5289/0.9853, allocations: 106.6 MB / 498.4 MB, free: 73.97 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0006304/0.986, allocations: 107 kB / 498.5 MB, free: 73.96 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1738 * Number of variables: 1738 Notification: Performance of Generate backend data structure: time 0.02056/1.007, allocations: 4.884 MB / 0.4916 GB, free: 71.86 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/1.007, allocations: 9.188 kB / 0.4916 GB, free: 71.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02729/1.034, allocations: 6.491 MB / 0.4979 GB, free: 71.48 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02074/1.055, allocations: 6.835 MB / 0.5046 GB, free: 70.69 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004548/1.055, allocations: 167.6 kB / 0.5048 GB, free: 70.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003292/1.059, allocations: 313.1 kB / 0.505 GB, free: 70.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01843/1.077, allocations: 7.717 MB / 0.5126 GB, free: 69.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03338/1.11, allocations: 10.85 MB / 0.5232 GB, free: 62.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004678/1.111, allocations: 67.69 kB / 0.5232 GB, free: 62.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002699/1.114, allocations: 28 kB / 0.5233 GB, free: 62.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001703/1.115, allocations: 1.121 MB / 0.5244 GB, free: 61.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06616/1.182, allocations: 49.42 MB / 0.5726 GB, free: 14.03 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004425/1.186, allocations: 3.053 MB / 0.5756 GB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002643/1.189, allocations: 1.989 MB / 0.5776 GB, free: 8.836 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/1.204, allocations: 7.808 MB / 0.5852 GB, free: 0.6562 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.861e-05/1.204, allocations: 58.88 kB / 0.5852 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of pre-optimization done (n=179): time 5.861e-06/1.204, allocations: 0 / 0.5852 GB, free: 0.5938 MB / 346.7 MB Notification: Performance of matching and sorting (n=227): time 0.215/1.419, allocations: 15.89 MB / 0.6008 GB, free: 100.1 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.568e-05/1.419, allocations: 207.3 kB / 0.6009 GB, free: 99.92 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006689/1.426, allocations: 3.506 MB / 0.6044 GB, free: 99.55 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005631/1.427, allocations: 25.7 kB / 0.6044 GB, free: 99.52 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00251/1.429, allocations: 3.275 MB / 0.6076 GB, free: 97.67 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00161/1.431, allocations: 0.8217 MB / 0.6084 GB, free: 97.18 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003731/1.431, allocations: 0 / 0.6084 GB, free: 97.18 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00041/1.431, allocations: 0.5874 MB / 0.609 GB, free: 96.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002892/1.434, allocations: 2.098 MB / 0.611 GB, free: 96.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004921/1.439, allocations: 5.939 MB / 0.6168 GB, free: 91.88 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005419/1.445, allocations: 3.558 MB / 0.6203 GB, free: 91.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001149/1.445, allocations: 43.34 kB / 0.6203 GB, free: 91.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=859) (initialization): time 0.01597/1.461, allocations: 8.028 MB / 0.6282 GB, free: 90.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.623e-05/1.461, allocations: 3.688 kB / 0.6282 GB, free: 90.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001583/1.461, allocations: 139.3 kB / 0.6283 GB, free: 90.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/1.464, allocations: 1.014 MB / 0.6293 GB, free: 90.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004956/1.469, allocations: 1.454 MB / 0.6307 GB, free: 90.14 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008354/1.478, allocations: 6.248 MB / 0.6368 GB, free: 86.86 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006313/1.484, allocations: 187.3 kB / 0.637 GB, free: 86.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001445/1.485, allocations: 395.4 kB / 0.6374 GB, free: 86.79 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 624 * Number of states: 0 () * Number of discrete variables: 43 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (795): * Single equations (assignments): 791 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001877/1.487, allocations: 458.9 kB / 0.6378 GB, free: 86.42 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.488, allocations: 382.8 kB / 0.6382 GB, free: 86.21 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007425/1.496, allocations: 3.507 MB / 0.6416 GB, free: 84.96 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.557e-05/1.496, allocations: 19.06 kB / 0.6416 GB, free: 84.96 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.331e-05/1.496, allocations: 10.72 kB / 0.6416 GB, free: 84.96 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.424e-05/1.496, allocations: 16.72 kB / 0.6417 GB, free: 84.95 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01939/1.515, allocations: 8.709 MB / 0.6502 GB, free: 79.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-05/1.515, allocations: 8 kB / 0.6502 GB, free: 79.78 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001747/1.517, allocations: 339.6 kB / 0.6505 GB, free: 79.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003044/1.52, allocations: 0.7813 MB / 0.6513 GB, free: 78.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003582/1.521, allocations: 19.91 kB / 0.6513 GB, free: 78.93 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006829/1.527, allocations: 5.081 MB / 0.6562 GB, free: 74.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/1.528, allocations: 7.938 kB / 0.6562 GB, free: 74.32 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.009778/1.537, allocations: 6.977 MB / 0.6631 GB, free: 67.85 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0022/1.54, allocations: 0.6878 MB / 0.6637 GB, free: 67.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006698/1.54, allocations: 11.66 kB / 0.6637 GB, free: 67.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001614/1.542, allocations: 48.12 kB / 0.6638 GB, free: 67.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002349/1.542, allocations: 115.5 kB / 0.6639 GB, free: 67.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/1.542, allocations: 65.66 kB / 0.664 GB, free: 67.02 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.003816/1.546, allocations: 2.387 MB / 0.6663 GB, free: 64.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.007156/1.553, allocations: 1.01 MB / 0.6673 GB, free: 63.93 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (179): * Single equations (assignments): 175 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006877/1.554, allocations: 191.1 kB / 0.6675 GB, free: 63.75 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007578/1.562, allocations: 5.1 MB / 0.6724 GB, free: 59.09 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/1.562, allocations: 3.938 kB / 0.6724 GB, free: 59.08 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002035/1.564, allocations: 1.682 MB / 0.6741 GB, free: 57.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002823/1.566, allocations: 438 kB / 0.6745 GB, free: 57.17 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01893/1.585, allocations: 9.078 MB / 0.6834 GB, free: 48.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005634/1.591, allocations: 4.264 MB / 0.6875 GB, free: 45.64 MB / 346.7 MB Notification: Performance of SimCode: time 1.793e-06/1.591, allocations: 0 / 0.6875 GB, free: 45.64 MB / 346.7 MB Notification: Performance of Templates: time 0.256/1.847, allocations: 42.31 MB / 0.7288 GB, free: 83.69 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)