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.001146/0.001146, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001393/0.001394, allocations: 189.6 kB / 16.25 MB, free: 6.633 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.425/1.425, allocations: 205.1 MB / 222.1 MB, free: 4.75 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.001977/0.001977, allocations: 55.92 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2897, allocations: 46.62 MB / 324.9 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.04863/0.3383, allocations: 53.46 MB / 378.3 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02894/0.3673, allocations: 11.12 MB / 389.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0102/0.3776, allocations: 231.4 kB / 389.7 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006225/0.3838, allocations: 3.034 MB / 392.7 MB, free: 4 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006401/0.3903, allocations: 2.386 MB / 395.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002288/0.3926, allocations: 0.9401 MB / 396 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009277/0.4019, allocations: 6.888 MB / 402.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006398/0.4083, allocations: 4.556 MB / 407.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003991/0.4123, allocations: 2.285 MB / 409.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004962/0.4173, allocations: 3.583 MB / 413.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001657/0.419, allocations: 488 kB / 413.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003947/0.423, allocations: 1.506 MB / 415.3 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004407/0.4274, allocations: 2.914 MB / 418.2 MB, free: 6.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006286/0.4337, allocations: 3.285 MB / 421.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01289/0.4466, allocations: 10.12 MB / 431.6 MB, free: 8.891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.146e-05/0.4467, allocations: 8 kB / 431.7 MB, free: 8.883 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4467, allocations: 0 / 431.7 MB, free: 8.883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003573/0.4471, allocations: 0 / 431.7 MB, free: 8.883 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.01718/0.4642, allocations: 7.295 MB / 438.9 MB, free: 1.504 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.4643, allocations: 8.031 kB / 439 MB, free: 1.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01563/0.4799, allocations: 3.946 MB / 442.9 MB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008689/0.4887, allocations: 4.208 MB / 447.1 MB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003088/0.489, allocations: 320.4 kB / 447.4 MB, free: 8.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001812/0.4908, allocations: 431.6 kB / 447.8 MB, free: 8.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1864/0.6773, allocations: 15.72 MB / 463.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006627/0.678, allocations: 57.72 kB / 463.6 MB, free: 106.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002498/0.6805, allocations: 202.9 kB / 463.8 MB, free: 106 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005006/0.6855, allocations: 3.219 MB / 467 MB, free: 105.3 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02711/0.7127, allocations: 14.13 MB / 481.2 MB, free: 95.29 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07451/0.7872, allocations: 57.77 MB / 0.5263 GB, free: 36.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01294/0.8002, allocations: 6.575 MB / 0.5327 GB, free: 29.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00466/0.8049, allocations: 3.677 MB / 0.5363 GB, free: 26.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02201/0.827, allocations: 14.66 MB / 0.5506 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.182e-05/0.8271, allocations: 60.56 kB / 0.5507 GB, free: 10.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=289): time 7.244e-06/0.8271, allocations: 0 / 0.5507 GB, free: 10.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=339): time 0.1509/0.978, allocations: 42.38 MB / 0.5921 GB, free: 312 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.9782, allocations: 213.9 kB / 0.5923 GB, free: 52 kB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01029/0.9885, allocations: 5.494 MB / 0.5976 GB, free: 10.57 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009966/0.9895, allocations: 73.7 kB / 0.5977 GB, free: 10.49 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003543/0.9931, allocations: 4.357 MB / 0.602 GB, free: 6.074 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002342/0.9955, allocations: 1.253 MB / 0.6032 GB, free: 4.805 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00328/0.9988, allocations: 1.867 MB / 0.605 GB, free: 2.926 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.9989, allocations: 301.1 kB / 0.6053 GB, free: 2.629 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1959/1.195, allocations: 4.807 MB / 0.61 GB, free: 143.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/1.206, allocations: 9.801 MB / 0.6196 GB, free: 135.4 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01662/1.222, allocations: 15.57 MB / 0.6348 GB, free: 124 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001868/1.223, allocations: 50.16 kB / 0.6348 GB, free: 124 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04149/1.264, allocations: 19.56 MB / 0.6539 GB, free: 112.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/1.264, allocations: 80 kB / 0.654 GB, free: 112.8 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/1.264, allocations: 172 kB / 0.6542 GB, free: 112.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02164/1.286, allocations: 5.943 MB / 0.66 GB, free: 106.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007216/1.293, allocations: 2.109 MB / 0.662 GB, free: 104.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02968/1.323, allocations: 26.16 MB / 0.6876 GB, free: 78.17 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008607/1.332, allocations: 0.5598 MB / 0.6881 GB, free: 77.63 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002087/1.334, allocations: 0.5078 MB / 0.6886 GB, free: 77.12 MB / 430.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.007849/1.342, allocations: 3.11 MB / 0.6917 GB, free: 74.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001686/1.343, allocations: 498.3 kB / 0.6921 GB, free: 73.87 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02988/1.373, allocations: 12.94 MB / 0.7048 GB, free: 60.86 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001151/1.373, allocations: 55.12 kB / 0.7048 GB, free: 60.81 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.25e-05/1.373, allocations: 15.38 kB / 0.7048 GB, free: 60.8 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.574e-05/1.374, allocations: 15.95 kB / 0.7048 GB, free: 60.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04955/1.423, allocations: 24.58 MB / 0.7288 GB, free: 35.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-05/1.423, allocations: 4 kB / 0.7288 GB, free: 35.81 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003702/1.427, allocations: 0.5811 MB / 0.7294 GB, free: 35.23 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01824/1.445, allocations: 4.966 MB / 0.7343 GB, free: 30.25 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009607/1.446, allocations: 59.98 kB / 0.7343 GB, free: 30.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0234/1.47, allocations: 21.36 MB / 0.7552 GB, free: 8.637 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.919e-06/1.47, allocations: 7.938 kB / 0.7552 GB, free: 8.629 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2756/1.745, allocations: 17.45 MB / 0.7722 GB, free: 128.1 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003924/1.749, allocations: 1.245 MB / 0.7734 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007932/1.75, allocations: 58.86 kB / 0.7735 GB, free: 127.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00268/1.753, allocations: 265.1 kB / 0.7738 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007563/1.754, allocations: 189.8 kB / 0.7739 GB, free: 127.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002656/1.754, allocations: 84.41 kB / 0.774 GB, free: 127.6 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004405/1.758, allocations: 3.424 MB / 0.7774 GB, free: 126.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.01e-07/1.758, allocations: 0 / 0.7774 GB, free: 126.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008328/1.767, allocations: 1.764 MB / 0.7791 GB, free: 126.3 MB / 430.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.0006353/1.767, allocations: 212.8 kB / 0.7793 GB, free: 126.2 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.02271/1.79, allocations: 15.73 MB / 0.7946 GB, free: 121.8 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.829e-06/1.79, allocations: 0 / 0.7946 GB, free: 121.8 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004934/1.795, allocations: 4.104 MB / 0.7987 GB, free: 118.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005519/1.8, allocations: 0.6156 MB / 0.7993 GB, free: 117.6 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02905/1.83, allocations: 19.24 MB / 0.818 GB, free: 100.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007462/1.837, allocations: 4.63 MB / 0.8226 GB, free: 95.62 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.008839/1.846, allocations: 2.97 MB / 0.8255 GB, free: 92.65 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002105/1.848, allocations: 355.4 kB / 0.8258 GB, free: 92.3 MB / 430.1 MB Notification: Performance of SimCode: time 1.282e-06/1.848, allocations: 0 / 0.8258 GB, free: 92.3 MB / 430.1 MB Notification: Performance of Templates: time 0.1188/1.967, allocations: 81.15 MB / 0.905 GB, free: 10.97 MB / 430.1 MB 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)