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.001304/0.001304, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001569/0.001568, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.599/1.599, allocations: 205.1 MB / 222.4 MB, free: 4.578 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.001223/0.001223, allocations: 51.92 kB / 278.7 MB, free: 12.39 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2882, allocations: 46.63 MB / 325.3 MB, free: 1.891 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01639/0.3047, allocations: 15.07 MB / 340.4 MB, free: 4.832 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01271/0.3174, allocations: 4.821 MB / 345.2 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004011/0.3215, allocations: 95.69 kB / 345.3 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006665/0.3282, allocations: 3.165 MB / 348.5 MB, free: 12.72 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008727/0.337, allocations: 2.552 MB / 351 MB, free: 10.16 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002747/0.3397, allocations: 0.9983 MB / 352 MB, free: 9.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01092/0.3507, allocations: 6.635 MB / 358.6 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008718/0.3594, allocations: 4.357 MB / 363 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005128/0.3646, allocations: 2.227 MB / 365.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005917/0.3706, allocations: 3.256 MB / 368.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002575/0.3732, allocations: 484 kB / 369 MB, free: 8.117 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004795/0.378, allocations: 1.486 MB / 370.4 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004863/0.3829, allocations: 2.868 MB / 373.3 MB, free: 3.754 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007821/0.3908, allocations: 3.246 MB / 376.6 MB, free: 500 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01518/0.406, allocations: 10.07 MB / 386.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.406, allocations: 0 / 386.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.406, allocations: 0 / 386.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004399/0.4065, allocations: 0 / 386.6 MB, free: 6.379 MB / 318.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.02569/0.4322, allocations: 7.299 MB / 393.9 MB, free: 15 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.173e-05/0.4323, allocations: 12.03 kB / 393.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01764/0.4499, allocations: 3.939 MB / 397.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/0.4621, allocations: 4.208 MB / 402.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004019/0.4625, allocations: 316.4 kB / 402.4 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002839/0.4654, allocations: 427.6 kB / 402.8 MB, free: 6.031 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03488/0.5003, allocations: 15.72 MB / 418.5 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001847/0.5005, allocations: 67.36 kB / 418.6 MB, free: 5.312 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007198/0.5013, allocations: 203.8 kB / 418.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005296/0.5066, allocations: 3.216 MB / 422 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0294/0.536, allocations: 14.13 MB / 436.2 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3254/0.8615, allocations: 57.77 MB / 493.9 MB, free: 66.06 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/0.8742, allocations: 6.556 MB / 0.4887 GB, free: 63.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004472/0.8787, allocations: 3.679 MB / 0.4923 GB, free: 61.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0202/0.8989, allocations: 14.66 MB / 0.5067 GB, free: 51.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.602e-05/0.899, allocations: 64.03 kB / 0.5067 GB, free: 51.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=289): time 6.122e-06/0.899, allocations: 0 / 0.5067 GB, free: 51.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=339): time 0.1485/1.048, allocations: 42.38 MB / 0.5481 GB, free: 8.781 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001057/1.048, allocations: 214 kB / 0.5483 GB, free: 8.527 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008106/1.056, allocations: 5.502 MB / 0.5537 GB, free: 3.039 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.057, allocations: 69.7 kB / 0.5538 GB, free: 2.965 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00284/1.06, allocations: 4.349 MB / 0.558 GB, free: 14.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002173/1.062, allocations: 1.265 MB / 0.5592 GB, free: 13.31 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00314/1.065, allocations: 1.848 MB / 0.561 GB, free: 11.45 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/1.065, allocations: 305.1 kB / 0.5613 GB, free: 11.15 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007426/1.073, allocations: 4.816 MB / 0.566 GB, free: 6.324 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01173/1.084, allocations: 9.798 MB / 0.5756 GB, free: 10.08 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02079/1.105, allocations: 15.57 MB / 0.5908 GB, free: 8.035 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001992/1.106, allocations: 52 kB / 0.5909 GB, free: 7.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.05394/1.16, allocations: 19.56 MB / 0.61 GB, free: 4.367 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003302/1.16, allocations: 80 kB / 0.61 GB, free: 4.289 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004369/1.16, allocations: 172 kB / 0.6102 GB, free: 4.121 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2713/1.432, allocations: 5.939 MB / 0.616 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009745/1.441, allocations: 2.112 MB / 0.6181 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03037/1.472, allocations: 26.16 MB / 0.6436 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008606/1.481, allocations: 0.5608 MB / 0.6442 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00175/1.482, allocations: 0.5169 MB / 0.6447 GB, free: 141.2 MB / 446.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.005806/1.488, allocations: 3.094 MB / 0.6477 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001205/1.489, allocations: 0.4893 MB / 0.6482 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0291/1.518, allocations: 12.94 MB / 0.6608 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001393/1.519, allocations: 55.98 kB / 0.6608 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-05/1.519, allocations: 8 kB / 0.6609 GB, free: 125.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001029/1.519, allocations: 19.94 kB / 0.6609 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04632/1.565, allocations: 24.59 MB / 0.6849 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.716e-05/1.565, allocations: 7.438 kB / 0.6849 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003076/1.568, allocations: 0.5772 MB / 0.6855 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01842/1.587, allocations: 4.969 MB / 0.6903 GB, free: 95.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008638/1.588, allocations: 55.52 kB / 0.6904 GB, free: 95.25 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02283/1.611, allocations: 21.36 MB / 0.7112 GB, free: 73.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.611, allocations: 7.938 kB / 0.7112 GB, free: 73.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03212/1.643, allocations: 17.45 MB / 0.7283 GB, free: 56.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003456/1.646, allocations: 1.24 MB / 0.7295 GB, free: 55.13 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001314/1.648, allocations: 62.05 kB / 0.7295 GB, free: 55.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003227/1.651, allocations: 270.3 kB / 0.7298 GB, free: 54.82 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007537/1.652, allocations: 185.6 kB / 0.73 GB, free: 54.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002473/1.652, allocations: 87.94 kB / 0.7301 GB, free: 54.55 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004634/1.656, allocations: 3.424 MB / 0.7334 GB, free: 51.15 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.543e-06/1.656, allocations: 0 / 0.7334 GB, free: 51.15 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008267/1.665, allocations: 1.762 MB / 0.7351 GB, free: 49.39 MB / 446.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.0007273/1.665, allocations: 200.2 kB / 0.7353 GB, free: 49.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02191/1.687, allocations: 15.74 MB / 0.7507 GB, free: 33.52 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/1.687, allocations: 0 / 0.7507 GB, free: 33.52 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005209/1.693, allocations: 4.097 MB / 0.7547 GB, free: 29.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006152/1.699, allocations: 0.6219 MB / 0.7553 GB, free: 28.79 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02795/1.727, allocations: 16.22 MB / 0.7711 GB, free: 12.48 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2094/1.936, allocations: 4.629 MB / 0.7756 GB, free: 146.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00845/1.945, allocations: 2.967 MB / 0.7785 GB, free: 146.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001722/1.946, allocations: 346.5 kB / 0.7789 GB, free: 146.1 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/1.946, allocations: 0 / 0.7789 GB, free: 146.1 MB / 446.1 MB Notification: Performance of Templates: time 0.159/2.105, allocations: 81.18 MB / 0.8582 GB, free: 80.23 MB / 446.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)