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.005021/0.005021, allocations: 102.1 kB / 15.73 MB, free: 6.051 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.001189/0.001189, allocations: 195.7 kB / 16.67 MB, free: 5.98 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.507/1.507, allocations: 205.1 MB / 222.5 MB, free: 4.402 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.001399/0.001399, allocations: 49.45 kB / 326.5 MB, free: 14.47 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 46.62 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01605/0.1191, allocations: 15.07 MB / 388.2 MB, free: 2.168 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01194/0.1311, allocations: 4.823 MB / 393.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003778/0.1349, allocations: 91.75 kB / 393.1 MB, free: 13.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007027/0.142, allocations: 3.169 MB / 396.3 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008269/0.1504, allocations: 2.627 MB / 398.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002847/0.1532, allocations: 0.9944 MB / 399.9 MB, free: 6.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009707/0.163, allocations: 6.639 MB / 406.6 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006658/0.1697, allocations: 4.354 MB / 410.9 MB, free: 11.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004099/0.1738, allocations: 2.239 MB / 413.2 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004747/0.1786, allocations: 3.252 MB / 416.4 MB, free: 5.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001703/0.1803, allocations: 484 kB / 416.9 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003749/0.184, allocations: 1.494 MB / 418.4 MB, free: 3.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004115/0.1882, allocations: 2.895 MB / 421.3 MB, free: 0.9688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00607/0.1943, allocations: 3.25 MB / 424.5 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01766/0.212, allocations: 10.44 MB / 435 MB, free: 3.219 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.212, allocations: 3.938 kB / 435 MB, free: 3.215 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.212, allocations: 0 / 435 MB, free: 3.215 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003842/0.2124, allocations: 0 / 435 MB, free: 3.215 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.0202/0.2326, allocations: 7.283 MB / 442.3 MB, free: 11.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.2327, allocations: 12.03 kB / 442.3 MB, free: 11.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01545/0.2481, allocations: 3.935 MB / 446.2 MB, free: 7.887 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.2585, allocations: 4.274 MB / 450.5 MB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000324/0.2589, allocations: 324.4 kB / 450.8 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002062/0.2609, allocations: 439.5 kB / 451.2 MB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2671/0.528, allocations: 15.72 MB / 466.9 MB, free: 58.6 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002906/0.5284, allocations: 61.31 kB / 467 MB, free: 58.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001079/0.5294, allocations: 203.2 kB / 467.2 MB, free: 58.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005895/0.5354, allocations: 3.219 MB / 470.4 MB, free: 57.92 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02685/0.5623, allocations: 14.12 MB / 484.5 MB, free: 48.41 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0799/0.6422, allocations: 57.49 MB / 0.5293 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0147/0.657, allocations: 6.57 MB / 0.5358 GB, free: 15.15 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005858/0.6629, allocations: 3.673 MB / 0.5393 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02919/0.6921, allocations: 14.65 MB / 0.5536 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001085/0.6923, allocations: 64.5 kB / 0.5537 GB, free: 12.21 MB / 430.1 MB Notification: Performance of pre-optimization done (n=289): time 1.073e-05/0.6923, allocations: 0 / 0.5537 GB, free: 12.21 MB / 430.1 MB Notification: Performance of matching and sorting (n=339): time 0.1519/0.8443, allocations: 42.38 MB / 0.5951 GB, free: 1.746 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001302/0.8444, allocations: 222.7 kB / 0.5953 GB, free: 1.484 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01491/0.8593, allocations: 5.498 MB / 0.6007 GB, free: 12 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001566/0.861, allocations: 73.69 kB / 0.6008 GB, free: 11.92 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005374/0.8664, allocations: 4.35 MB / 0.605 GB, free: 7.512 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002441/0.8689, allocations: 1.261 MB / 0.6062 GB, free: 6.234 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006429/0.8753, allocations: 1.852 MB / 0.608 GB, free: 4.367 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.8755, allocations: 309.1 kB / 0.6083 GB, free: 4.062 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008682/0.8842, allocations: 4.812 MB / 0.613 GB, free: 15.24 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01328/0.8975, allocations: 9.798 MB / 0.6226 GB, free: 2.996 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2695/1.167, allocations: 15.57 MB / 0.6378 GB, free: 143.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001651/1.167, allocations: 50.12 kB / 0.6379 GB, free: 143.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03959/1.207, allocations: 19.55 MB / 0.657 GB, free: 137.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001042/1.207, allocations: 81.53 kB / 0.657 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001796/1.207, allocations: 174.3 kB / 0.6572 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01979/1.227, allocations: 5.938 MB / 0.663 GB, free: 136.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007339/1.234, allocations: 2.113 MB / 0.6651 GB, free: 135.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02701/1.261, allocations: 26.16 MB / 0.6906 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006872/1.268, allocations: 0.5578 MB / 0.6911 GB, free: 110.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001123/1.269, allocations: 0.5137 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.004035/1.274, allocations: 3.103 MB / 0.6947 GB, free: 107.1 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008554/1.274, allocations: 0.4896 MB / 0.6952 GB, free: 106.9 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0265/1.301, allocations: 12.94 MB / 0.7078 GB, free: 93.87 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.106e-05/1.301, allocations: 53.09 kB / 0.7078 GB, free: 93.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.877e-05/1.301, allocations: 8 kB / 0.7079 GB, free: 93.81 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.415e-05/1.301, allocations: 19.94 kB / 0.7079 GB, free: 93.79 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04399/1.345, allocations: 24.51 MB / 0.7318 GB, free: 68.89 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.401e-05/1.345, allocations: 8.594 kB / 0.7318 GB, free: 68.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00287/1.348, allocations: 0.5811 MB / 0.7324 GB, free: 68.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01704/1.365, allocations: 4.965 MB / 0.7372 GB, free: 63.33 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007236/1.366, allocations: 59.98 kB / 0.7373 GB, free: 63.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02231/1.388, allocations: 21.35 MB / 0.7581 GB, free: 41.71 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/1.388, allocations: 7.5 kB / 0.7581 GB, free: 41.71 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03017/1.418, allocations: 17.46 MB / 0.7752 GB, free: 24.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003118/1.422, allocations: 1.244 MB / 0.7764 GB, free: 22.91 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008748/1.422, allocations: 59.61 kB / 0.7765 GB, free: 22.85 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002775/1.425, allocations: 267.6 kB / 0.7767 GB, free: 22.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000717/1.426, allocations: 189.6 kB / 0.7769 GB, free: 22.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002743/1.426, allocations: 87.81 kB / 0.777 GB, free: 22.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004557/1.431, allocations: 3.422 MB / 0.7803 GB, free: 18.92 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/1.431, allocations: 0 / 0.7803 GB, free: 18.92 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007821/1.439, allocations: 1.756 MB / 0.782 GB, free: 17.16 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.0006498/1.439, allocations: 209 kB / 0.7822 GB, free: 16.96 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01449/1.454, allocations: 10.96 MB / 0.793 GB, free: 6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/1.454, allocations: 4 kB / 0.793 GB, free: 5.996 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005362/1.459, allocations: 4.095 MB / 0.797 GB, free: 1.887 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005023/1.464, allocations: 0.6202 MB / 0.7976 GB, free: 1.285 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2633/1.728, allocations: 16.05 MB / 0.8132 GB, free: 162.6 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009319/1.737, allocations: 4.63 MB / 0.8178 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.008597/1.746, allocations: 2.969 MB / 0.8207 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001719/1.747, allocations: 349.9 kB / 0.821 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/1.747, allocations: 1.188 kB / 0.821 GB, free: 161.7 MB / 0.4981 GB Notification: Performance of Templates: time 0.1149/1.862, allocations: 76.93 MB / 0.8961 GB, free: 102.8 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)