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.001328/0.001328, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001433/0.001433, allocations: 192.2 kB / 16.13 MB, free: 6.707 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.454/1.454, allocations: 205.1 MB / 222 MB, free: 4.766 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.001128/0.001129, allocations: 55.92 kB / 278.1 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.268, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.05171/0.3198, allocations: 53.47 MB / 378.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02673/0.3465, allocations: 11.22 MB / 389.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01394/0.3605, allocations: 235.4 kB / 389.6 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008157/0.3688, allocations: 3.136 MB / 392.7 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007275/0.3761, allocations: 2.406 MB / 395.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002287/0.3784, allocations: 0.9167 MB / 396.1 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01094/0.3894, allocations: 9.428 MB / 405.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005958/0.3954, allocations: 4.263 MB / 409.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003881/0.3993, allocations: 1.977 MB / 411.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004966/0.4043, allocations: 3.431 MB / 415.2 MB, free: 9.344 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001296/0.4056, allocations: 328 kB / 415.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003076/0.4087, allocations: 1.424 MB / 416.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002969/0.4117, allocations: 2.758 MB / 419.7 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004321/0.416, allocations: 3.121 MB / 422.8 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.4277, allocations: 9.937 MB / 432.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.4277, allocations: 0 / 432.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4277, allocations: 0 / 432.7 MB, free: 7.723 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000331/0.4281, allocations: 0 / 432.7 MB, free: 7.723 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.01604/0.4441, allocations: 7.303 MB / 440 MB, free: 344 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.026e-05/0.4442, allocations: 8.031 kB / 440 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01497/0.4591, allocations: 3.943 MB / 444 MB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008464/0.4676, allocations: 4.208 MB / 448.2 MB, free: 8.098 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000269/0.4679, allocations: 320.4 kB / 448.5 MB, free: 7.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001387/0.4693, allocations: 435.5 kB / 448.9 MB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2132/0.6825, allocations: 15.72 MB / 464.6 MB, free: 106 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001762/0.6827, allocations: 52.22 kB / 464.7 MB, free: 106 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007063/0.6835, allocations: 202.7 kB / 464.9 MB, free: 105.9 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004133/0.6876, allocations: 3.217 MB / 468.1 MB, free: 104.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02407/0.7117, allocations: 14.13 MB / 482.2 MB, free: 94.11 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06573/0.7774, allocations: 57.78 MB / 0.5273 GB, free: 35.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01201/0.7895, allocations: 6.55 MB / 0.5337 GB, free: 28.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004083/0.7936, allocations: 3.692 MB / 0.5374 GB, free: 24.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01939/0.813, allocations: 14.65 MB / 0.5517 GB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.191e-05/0.8132, allocations: 64.48 kB / 0.5517 GB, free: 9.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=289): time 8.065e-06/0.8132, allocations: 6.719 kB / 0.5517 GB, free: 9.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=339): time 0.1501/0.9633, allocations: 42.38 MB / 0.5931 GB, free: 15.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001658/0.9635, allocations: 217.9 kB / 0.5933 GB, free: 14.84 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0128/0.9763, allocations: 5.502 MB / 0.5987 GB, free: 9.355 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001318/0.9777, allocations: 69.7 kB / 0.5988 GB, free: 9.281 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005091/0.9828, allocations: 4.354 MB / 0.603 GB, free: 4.867 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002817/0.9856, allocations: 1.257 MB / 0.6042 GB, free: 3.594 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004989/0.9906, allocations: 1.856 MB / 0.606 GB, free: 1.723 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000154/0.9908, allocations: 301.1 kB / 0.6063 GB, free: 1.426 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2371/1.228, allocations: 4.808 MB / 0.611 GB, free: 143.6 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009732/1.238, allocations: 9.804 MB / 0.6206 GB, free: 135.2 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01587/1.254, allocations: 15.57 MB / 0.6358 GB, free: 123.8 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000162/1.254, allocations: 49.09 kB / 0.6359 GB, free: 123.8 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04128/1.295, allocations: 19.55 MB / 0.655 GB, free: 111.6 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/1.295, allocations: 84.25 kB / 0.655 GB, free: 111.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001802/1.295, allocations: 172 kB / 0.6552 GB, free: 111.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02089/1.316, allocations: 5.943 MB / 0.661 GB, free: 105.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007197/1.324, allocations: 2.113 MB / 0.6631 GB, free: 103.3 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02725/1.351, allocations: 24.76 MB / 0.6872 GB, free: 78.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008235/1.359, allocations: 0.553 MB / 0.6878 GB, free: 77.85 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001814/1.361, allocations: 0.5117 MB / 0.6883 GB, free: 77.34 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.007396/1.368, allocations: 3.111 MB / 0.6913 GB, free: 74.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0014/1.37, allocations: 0.4886 MB / 0.6918 GB, free: 74.07 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02669/1.396, allocations: 12.94 MB / 0.7044 GB, free: 61.06 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.452e-05/1.397, allocations: 60.73 kB / 0.7045 GB, free: 61.01 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.999e-05/1.397, allocations: 11.39 kB / 0.7045 GB, free: 61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.102e-05/1.397, allocations: 19.94 kB / 0.7045 GB, free: 60.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0464/1.443, allocations: 24.59 MB / 0.7285 GB, free: 36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.534e-05/1.443, allocations: 6.844 kB / 0.7285 GB, free: 36 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003024/1.446, allocations: 0.5772 MB / 0.7291 GB, free: 35.42 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01817/1.464, allocations: 4.969 MB / 0.734 GB, free: 30.45 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001409/1.466, allocations: 52 kB / 0.734 GB, free: 30.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02298/1.489, allocations: 19.98 MB / 0.7535 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/1.489, allocations: 8 kB / 0.7535 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2914/1.78, allocations: 17.45 MB / 0.7706 GB, free: 128.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004876/1.785, allocations: 1.249 MB / 0.7718 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001992/1.787, allocations: 55.5 kB / 0.7718 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003758/1.791, allocations: 265.6 kB / 0.7721 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008621/1.792, allocations: 199.7 kB / 0.7723 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002902/1.792, allocations: 79.94 kB / 0.7724 GB, free: 127.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.005606/1.798, allocations: 3.417 MB / 0.7757 GB, free: 126.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.505e-06/1.798, allocations: 0 / 0.7757 GB, free: 126.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009124/1.807, allocations: 1.764 MB / 0.7774 GB, free: 126.5 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.00093/1.808, allocations: 214.7 kB / 0.7776 GB, free: 126.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01649/1.825, allocations: 10.92 MB / 0.7883 GB, free: 122.3 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.233e-05/1.825, allocations: 0 / 0.7883 GB, free: 122.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005404/1.83, allocations: 4.103 MB / 0.7923 GB, free: 120.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004211/1.834, allocations: 0.593 MB / 0.7929 GB, free: 120.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02604/1.86, allocations: 19.25 MB / 0.8117 GB, free: 105.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005135/1.866, allocations: 4.624 MB / 0.8162 GB, free: 102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.006915/1.872, allocations: 2.966 MB / 0.8191 GB, free: 98.98 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001543/1.874, allocations: 359.4 kB / 0.8194 GB, free: 98.63 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/1.874, allocations: 0 / 0.8194 GB, free: 98.63 MB / 430.1 MB Notification: Performance of Templates: time 0.1118/1.986, allocations: 78.17 MB / 0.8958 GB, free: 20.27 MB / 430.1 MB 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)