Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.009009/0.00901, allocations: 100.7 kB / 15.73 MB, free: 6.438 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.001971/0.001971, allocations: 194.9 kB / 16.68 MB, free: 6.355 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.472/1.472, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.00121/0.00121, allocations: 55.55 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1041, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01511/0.1192, allocations: 15.06 MB / 388.2 MB, free: 2.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01148/0.1307, allocations: 4.831 MB / 393.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003374/0.1341, allocations: 91.75 kB / 393.2 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006778/0.141, allocations: 3.169 MB / 396.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00789/0.1489, allocations: 2.627 MB / 399 MB, free: 7.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002619/0.1516, allocations: 0.9983 MB / 400 MB, free: 6.43 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01044/0.162, allocations: 6.631 MB / 406.6 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007694/0.1698, allocations: 4.353 MB / 410.9 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005094/0.175, allocations: 2.246 MB / 413.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005306/0.1803, allocations: 3.252 MB / 416.4 MB, free: 5.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002281/0.1826, allocations: 484 kB / 416.9 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004342/0.187, allocations: 1.49 MB / 418.4 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00421/0.1912, allocations: 2.895 MB / 421.3 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006124/0.1974, allocations: 3.25 MB / 424.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/0.2108, allocations: 10.45 MB / 435 MB, free: 3.223 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.2109, allocations: 0 / 435 MB, free: 3.223 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.2109, allocations: 4 kB / 435 MB, free: 3.219 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003839/0.2113, allocations: 0 / 435 MB, free: 3.219 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.02192/0.2332, allocations: 7.283 MB / 442.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.913e-05/0.2333, allocations: 12.03 kB / 442.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01838/0.2517, allocations: 3.939 MB / 446.2 MB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01251/0.2643, allocations: 4.271 MB / 450.5 MB, free: 3.555 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004426/0.2648, allocations: 320.4 kB / 450.8 MB, free: 3.238 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002623/0.2674, allocations: 435.5 kB / 451.2 MB, free: 2.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.275/0.5424, allocations: 15.72 MB / 467 MB, free: 58.61 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002028/0.5427, allocations: 53.38 kB / 467 MB, free: 58.59 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006427/0.5433, allocations: 207.8 kB / 467.2 MB, free: 58.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004369/0.5477, allocations: 3.214 MB / 470.4 MB, free: 57.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02545/0.5732, allocations: 14.13 MB / 484.6 MB, free: 48.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06867/0.6419, allocations: 57.49 MB / 0.5293 GB, free: 5.957 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01446/0.6564, allocations: 6.561 MB / 0.5357 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005173/0.6616, allocations: 3.688 MB / 0.5394 GB, free: 11.43 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02307/0.6847, allocations: 14.64 MB / 0.5536 GB, free: 12.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.241e-05/0.6848, allocations: 64.48 kB / 0.5537 GB, free: 12.2 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 7.434e-06/0.6848, allocations: 0 / 0.5537 GB, free: 12.2 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.154/0.8389, allocations: 42.38 MB / 0.5951 GB, free: 1.727 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001275/0.839, allocations: 221.9 kB / 0.5953 GB, free: 1.465 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007964/0.847, allocations: 5.491 MB / 0.6007 GB, free: 11.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008084/0.8478, allocations: 73.61 kB / 0.6007 GB, free: 11.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002966/0.8508, allocations: 4.358 MB / 0.605 GB, free: 7.492 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001667/0.8525, allocations: 1.257 MB / 0.6062 GB, free: 6.219 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002722/0.8552, allocations: 1.86 MB / 0.608 GB, free: 4.344 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 9.254e-05/0.8553, allocations: 305.1 kB / 0.6083 GB, free: 4.043 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006807/0.8622, allocations: 4.804 MB / 0.613 GB, free: 15.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01084/0.873, allocations: 9.806 MB / 0.6226 GB, free: 2.977 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2899/1.163, allocations: 15.57 MB / 0.6378 GB, free: 143.6 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002153/1.163, allocations: 52.91 kB / 0.6379 GB, free: 143.6 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04858/1.212, allocations: 19.55 MB / 0.6569 GB, free: 137.4 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/1.212, allocations: 81.62 kB / 0.657 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001953/1.212, allocations: 171.9 kB / 0.6572 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02276/1.235, allocations: 5.942 MB / 0.663 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007728/1.243, allocations: 2.115 MB / 0.6651 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02817/1.271, allocations: 26.15 MB / 0.6906 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008006/1.279, allocations: 0.5568 MB / 0.6911 GB, free: 110.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00155/1.281, allocations: 0.5117 MB / 0.6916 GB, free: 110.1 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.004984/1.286, allocations: 3.107 MB / 0.6947 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001123/1.287, allocations: 497.8 kB / 0.6952 GB, free: 106.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02914/1.316, allocations: 12.93 MB / 0.7078 GB, free: 93.84 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000102/1.316, allocations: 57.62 kB / 0.7078 GB, free: 93.78 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.087e-05/1.316, allocations: 11.83 kB / 0.7078 GB, free: 93.77 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.041e-05/1.316, allocations: 11.95 kB / 0.7079 GB, free: 93.76 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04793/1.364, allocations: 24.52 MB / 0.7318 GB, free: 68.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.181e-05/1.364, allocations: 11.17 kB / 0.7318 GB, free: 68.85 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003096/1.367, allocations: 0.5772 MB / 0.7324 GB, free: 68.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01967/1.387, allocations: 4.969 MB / 0.7372 GB, free: 63.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007279/1.388, allocations: 59.67 kB / 0.7373 GB, free: 63.23 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02329/1.411, allocations: 21.35 MB / 0.7581 GB, free: 41.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.411, allocations: 11.94 kB / 0.7581 GB, free: 41.67 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03487/1.446, allocations: 17.46 MB / 0.7752 GB, free: 24.14 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003353/1.449, allocations: 1.252 MB / 0.7764 GB, free: 22.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001473/1.451, allocations: 55.91 kB / 0.7765 GB, free: 22.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003197/1.454, allocations: 267.5 kB / 0.7767 GB, free: 22.55 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007599/1.455, allocations: 189.7 kB / 0.7769 GB, free: 22.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002518/1.455, allocations: 83.94 kB / 0.777 GB, free: 22.28 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004445/1.46, allocations: 3.418 MB / 0.7803 GB, free: 18.88 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.61e-07/1.46, allocations: 0 / 0.7803 GB, free: 18.88 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007105/1.467, allocations: 1.775 MB / 0.7821 GB, free: 17.12 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.0006147/1.467, allocations: 200.8 kB / 0.7822 GB, free: 16.92 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01395/1.481, allocations: 10.96 MB / 0.793 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.058e-05/1.481, allocations: 0 / 0.793 GB, free: 5.965 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00507/1.486, allocations: 4.102 MB / 0.797 GB, free: 1.848 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003969/1.49, allocations: 0.6118 MB / 0.7976 GB, free: 1.25 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2447/1.735, allocations: 16.06 MB / 0.8132 GB, free: 162.8 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008571/1.744, allocations: 4.627 MB / 0.8178 GB, free: 161.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008444/1.752, allocations: 2.964 MB / 0.8207 GB, free: 161.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/1.754, allocations: 356.8 kB / 0.821 GB, free: 161.9 MB / 0.4981 GB Notification: Performance of SimCode: time 1.963e-06/1.755, allocations: 0.9688 kB / 0.821 GB, free: 161.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.1103/1.865, allocations: 76.94 MB / 0.8961 GB, free: 102.7 MB / 0.4981 GB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)