Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006469/0.006469, allocations: 95.61 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00147/0.00147, allocations: 197.7 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 50.42 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1048, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.0153/0.1202, allocations: 15.07 MB / 388.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01003/0.1302, allocations: 4.831 MB / 393.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.1326, allocations: 91.75 kB / 393.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005764/0.1384, allocations: 3.165 MB / 396.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008194/0.1466, allocations: 2.548 MB / 398.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002705/0.1494, allocations: 1.002 MB / 399.9 MB, free: 6.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009631/0.159, allocations: 6.639 MB / 406.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006626/0.1657, allocations: 4.346 MB / 410.9 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004467/0.1702, allocations: 2.231 MB / 413.1 MB, free: 9.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005612/0.1758, allocations: 3.248 MB / 416.3 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002267/0.1781, allocations: 487.9 kB / 416.8 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004426/0.1825, allocations: 1.483 MB / 418.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004586/0.1872, allocations: 2.871 MB / 421.2 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005901/0.1931, allocations: 3.254 MB / 424.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.2065, allocations: 10.48 MB / 434.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.2066, allocations: 0 / 434.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2066, allocations: 0 / 434.9 MB, free: 3.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003487/0.207, allocations: 0 / 434.9 MB, free: 3.301 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.01735/0.2243, allocations: 7.475 MB / 442.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.545e-05/0.2244, allocations: 12.03 kB / 442.4 MB, free: 11.71 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01625/0.2406, allocations: 3.974 MB / 446.4 MB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01008/0.2507, allocations: 4.288 MB / 450.7 MB, free: 3.379 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003745/0.2512, allocations: 328.4 kB / 451 MB, free: 3.055 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001829/0.253, allocations: 431.6 kB / 451.4 MB, free: 2.633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2839/0.5369, allocations: 15.72 MB / 467.1 MB, free: 58.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002078/0.5372, allocations: 66.95 kB / 467.2 MB, free: 58.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008179/0.538, allocations: 203.3 kB / 467.4 MB, free: 58.26 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00489/0.5429, allocations: 3.219 MB / 470.6 MB, free: 57.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02576/0.5687, allocations: 14.12 MB / 484.7 MB, free: 48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06684/0.6356, allocations: 57.6 MB / 0.5296 GB, free: 5.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01437/0.65, allocations: 6.562 MB / 0.536 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005528/0.6556, allocations: 3.677 MB / 0.5396 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02279/0.6784, allocations: 14.67 MB / 0.5539 GB, free: 12.15 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.6785, allocations: 64.5 kB / 0.554 GB, free: 12.08 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 7.755e-06/0.6785, allocations: 1.312 kB / 0.554 GB, free: 12.08 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1533/0.8318, allocations: 42.71 MB / 0.5957 GB, free: 1.633 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001218/0.832, allocations: 217.9 kB / 0.5959 GB, free: 1.375 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007932/0.8399, allocations: 5.513 MB / 0.6013 GB, free: 11.91 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007609/0.8407, allocations: 73.7 kB / 0.6014 GB, free: 11.83 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003186/0.8439, allocations: 4.529 MB / 0.6058 GB, free: 7.266 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001833/0.8457, allocations: 1.318 MB / 0.6071 GB, free: 5.938 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002974/0.8487, allocations: 1.865 MB / 0.6089 GB, free: 4.059 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.8489, allocations: 309.1 kB / 0.6092 GB, free: 3.754 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007743/0.8566, allocations: 4.808 MB / 0.6139 GB, free: 14.94 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01218/0.8688, allocations: 9.802 MB / 0.6235 GB, free: 2.688 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2245/1.093, allocations: 15.58 MB / 0.6387 GB, free: 143.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001481/1.094, allocations: 49.78 kB / 0.6387 GB, free: 143.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04247/1.136, allocations: 19.58 MB / 0.6578 GB, free: 137.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002095/1.136, allocations: 82.56 kB / 0.6579 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00032/1.137, allocations: 173.6 kB / 0.6581 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0223/1.159, allocations: 5.942 MB / 0.6639 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007525/1.167, allocations: 2.115 MB / 0.666 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02945/1.196, allocations: 26.15 MB / 0.6915 GB, free: 110.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008252/1.204, allocations: 0.5603 MB / 0.692 GB, free: 110.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001801/1.206, allocations: 0.5117 MB / 0.6925 GB, free: 109.8 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00732/1.213, allocations: 3.099 MB / 0.6956 GB, free: 106.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001603/1.215, allocations: 0.5179 MB / 0.6961 GB, free: 106.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03097/1.246, allocations: 12.94 MB / 0.7087 GB, free: 93.59 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001027/1.246, allocations: 57.5 kB / 0.7088 GB, free: 93.54 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.935e-05/1.246, allocations: 8 kB / 0.7088 GB, free: 93.53 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.399e-05/1.246, allocations: 15.94 kB / 0.7088 GB, free: 93.51 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05385/1.3, allocations: 24.52 MB / 0.7327 GB, free: 68.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.477e-05/1.3, allocations: 4.594 kB / 0.7327 GB, free: 68.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003356/1.304, allocations: 0.5772 MB / 0.7333 GB, free: 68.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01906/1.323, allocations: 4.965 MB / 0.7381 GB, free: 63.05 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009912/1.324, allocations: 59.98 kB / 0.7382 GB, free: 62.99 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02427/1.348, allocations: 21.36 MB / 0.7591 GB, free: 41.43 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.103e-06/1.348, allocations: 11.94 kB / 0.7591 GB, free: 41.42 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03554/1.384, allocations: 17.48 MB / 0.7761 GB, free: 23.87 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004375/1.388, allocations: 1.273 MB / 0.7774 GB, free: 22.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002383/1.391, allocations: 67.61 kB / 0.7775 GB, free: 22.52 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004311/1.395, allocations: 263.5 kB / 0.7777 GB, free: 22.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001224/1.396, allocations: 189 kB / 0.7779 GB, free: 22.08 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005844/1.397, allocations: 87.58 kB / 0.778 GB, free: 22 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006632/1.403, allocations: 3.422 MB / 0.7813 GB, free: 18.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.403, allocations: 0 / 0.7813 GB, free: 18.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01046/1.414, allocations: 1.762 MB / 0.783 GB, free: 16.84 MB / 494.1 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001177/1.415, allocations: 207.3 kB / 0.7832 GB, free: 16.64 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01704/1.432, allocations: 10.98 MB / 0.7939 GB, free: 5.676 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.166e-05/1.432, allocations: 0 / 0.7939 GB, free: 5.676 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005987/1.438, allocations: 4.106 MB / 0.798 GB, free: 1.555 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00637/1.445, allocations: 0.6152 MB / 0.7986 GB, free: 0.957 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2618/1.706, allocations: 16.26 MB / 0.8144 GB, free: 162.3 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009593/1.716, allocations: 4.63 MB / 0.819 GB, free: 161.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.009356/1.725, allocations: 2.969 MB / 0.8219 GB, free: 161.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/1.727, allocations: 357.5 kB / 0.8222 GB, free: 161.4 MB / 0.4981 GB Notification: Performance of SimCode: time 1.333e-06/1.727, allocations: 0 / 0.8222 GB, free: 161.4 MB / 0.4981 GB Notification: Performance of Templates: time 0.1139/1.841, allocations: 76.94 MB / 0.8973 GB, free: 102.3 MB / 0.4981 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)