Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001609/0.001609, allocations: 112.9 kB / 16.63 MB, free: 6.812 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.001851/0.001851, allocations: 185.8 kB / 17.55 MB, free: 5.934 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.39/1.39, allocations: 205.1 MB / 223.4 MB, free: 12.43 MB / 190.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.001165/0.001165, allocations: 59.92 kB / 279.5 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 46.63 MB / 326.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2735/0.3755, allocations: 53.46 MB / 379.6 MB, free: 9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0293/0.4049, allocations: 11.12 MB / 390.7 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01642/0.4213, allocations: 230.1 kB / 390.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006914/0.4284, allocations: 3.033 MB / 394 MB, free: 7.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009042/0.4375, allocations: 2.395 MB / 396.4 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002976/0.4405, allocations: 0.9433 MB / 397.3 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01455/0.455, allocations: 6.881 MB / 404.2 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006043/0.4611, allocations: 4.56 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004357/0.4655, allocations: 2.288 MB / 411 MB, free: 416 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005461/0.471, allocations: 3.59 MB / 414.6 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001379/0.4724, allocations: 485.3 kB / 415.1 MB, free: 14.53 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003579/0.476, allocations: 1.504 MB / 416.6 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003499/0.4795, allocations: 2.911 MB / 419.5 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005058/0.4846, allocations: 3.283 MB / 422.8 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01299/0.4976, allocations: 10.13 MB / 432.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.265e-06/0.4976, allocations: 3.938 kB / 432.9 MB, free: 13.09 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.505e-06/0.4976, allocations: 4 kB / 432.9 MB, free: 13.08 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003604/0.498, allocations: 4 kB / 432.9 MB, free: 13.08 MB / 350.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.01962/0.5176, allocations: 7.292 MB / 440.2 MB, free: 5.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.558e-05/0.5177, allocations: 8.031 kB / 440.2 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01621/0.5339, allocations: 3.945 MB / 444.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01033/0.5443, allocations: 4.201 MB / 448.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/0.5446, allocations: 316.9 kB / 448.7 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001761/0.5464, allocations: 443 kB / 449.1 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02874/0.5752, allocations: 15.71 MB / 464.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001834/0.5754, allocations: 63.38 kB / 464.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008601/0.5763, allocations: 203.8 kB / 465.1 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005382/0.5817, allocations: 3.221 MB / 468.3 MB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03059/0.6123, allocations: 14.12 MB / 482.5 MB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08332/0.6956, allocations: 57.77 MB / 0.5276 GB, free: 8 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01344/0.7091, allocations: 6.568 MB / 0.534 GB, free: 9.188 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004725/0.7139, allocations: 3.677 MB / 0.5376 GB, free: 5.496 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2035/0.9174, allocations: 14.65 MB / 0.5519 GB, free: 174.6 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.9175, allocations: 59.7 kB / 0.5519 GB, free: 174.6 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 7.745e-06/0.9175, allocations: 3.844 kB / 0.5519 GB, free: 174.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1277/1.045, allocations: 42.39 MB / 0.5933 GB, free: 148.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/1.045, allocations: 213.9 kB / 0.5935 GB, free: 147.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005825/1.051, allocations: 5.506 MB / 0.5989 GB, free: 142.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006447/1.052, allocations: 73.7 kB / 0.599 GB, free: 142.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001578/1.053, allocations: 4.359 MB / 0.6032 GB, free: 138 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001018/1.054, allocations: 1.251 MB / 0.6045 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001986/1.056, allocations: 1.856 MB / 0.6063 GB, free: 134.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.217e-05/1.056, allocations: 301.1 kB / 0.6066 GB, free: 134.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004851/1.061, allocations: 4.808 MB / 0.6113 GB, free: 129.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006936/1.068, allocations: 9.803 MB / 0.6208 GB, free: 117.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/1.082, allocations: 15.57 MB / 0.636 GB, free: 99.46 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/1.082, allocations: 51.94 kB / 0.6361 GB, free: 99.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.03688/1.119, allocations: 19.57 MB / 0.6552 GB, free: 79.79 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.891e-05/1.119, allocations: 80 kB / 0.6553 GB, free: 79.71 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001731/1.119, allocations: 172 kB / 0.6554 GB, free: 79.54 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0205/1.14, allocations: 5.944 MB / 0.6612 GB, free: 73.59 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006939/1.147, allocations: 2.109 MB / 0.6633 GB, free: 71.48 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02689/1.173, allocations: 26.15 MB / 0.6888 GB, free: 45.04 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00731/1.181, allocations: 0.5616 MB / 0.6894 GB, free: 44.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00144/1.182, allocations: 0.5078 MB / 0.6899 GB, free: 43.97 MB / 462.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.005/1.187, allocations: 3.099 MB / 0.6929 GB, free: 40.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/1.188, allocations: 497.5 kB / 0.6934 GB, free: 40.36 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02607/1.214, allocations: 12.93 MB / 0.706 GB, free: 27.36 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.598e-05/1.215, allocations: 63.75 kB / 0.7061 GB, free: 27.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.849e-05/1.215, allocations: 12 kB / 0.7061 GB, free: 27.29 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-05/1.215, allocations: 19.94 kB / 0.7061 GB, free: 27.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2645/1.479, allocations: 24.57 MB / 0.7301 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.064e-05/1.479, allocations: 11.78 kB / 0.7301 GB, free: 153.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004456/1.484, allocations: 0.5749 MB / 0.7307 GB, free: 153.6 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01995/1.504, allocations: 4.969 MB / 0.7355 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008655/1.505, allocations: 66.09 kB / 0.7356 GB, free: 152.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0231/1.528, allocations: 21.34 MB / 0.7564 GB, free: 141.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.528, allocations: 7.844 kB / 0.7564 GB, free: 141.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03049/1.558, allocations: 17.45 MB / 0.7735 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003051/1.561, allocations: 1.245 MB / 0.7747 GB, free: 124.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009176/1.562, allocations: 59.98 kB / 0.7747 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002719/1.565, allocations: 263.5 kB / 0.775 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000782/1.566, allocations: 199.4 kB / 0.7752 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002714/1.566, allocations: 87.98 kB / 0.7753 GB, free: 123.6 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004293/1.571, allocations: 3.419 MB / 0.7786 GB, free: 120.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.4e-07/1.571, allocations: 0 / 0.7786 GB, free: 120.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008236/1.579, allocations: 1.765 MB / 0.7803 GB, free: 118.4 MB / 462.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.0007681/1.58, allocations: 203.3 kB / 0.7805 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02162/1.601, allocations: 15.75 MB / 0.7959 GB, free: 102.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.601, allocations: 0 / 0.7959 GB, free: 102.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004991/1.606, allocations: 4.095 MB / 0.7999 GB, free: 98.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00582/1.612, allocations: 0.6207 MB / 0.8005 GB, free: 97.93 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02905/1.641, allocations: 19.25 MB / 0.8193 GB, free: 78.81 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005409/1.647, allocations: 4.629 MB / 0.8238 GB, free: 74.15 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006874/1.654, allocations: 2.966 MB / 0.8267 GB, free: 71.18 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001395/1.655, allocations: 351.4 kB / 0.8271 GB, free: 70.83 MB / 462.1 MB Notification: Performance of SimCode: time 1.763e-06/1.655, allocations: 0 / 0.8271 GB, free: 70.83 MB / 462.1 MB Notification: Performance of Templates: time 0.3305/1.985, allocations: 81.14 MB / 0.9063 GB, free: 146.6 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)