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.001263/0.001263, 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.001208/0.001208, allocations: 194.8 kB / 16.14 MB, free: 6.66 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.465/1.465, allocations: 205.1 MB / 222 MB, free: 4.965 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.001333/0.001334, allocations: 51.94 kB / 278.1 MB, free: 12.98 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.3002, allocations: 46.63 MB / 324.7 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.06149/0.3618, allocations: 53.46 MB / 378.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03684/0.3987, allocations: 11.23 MB / 389.4 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01675/0.4155, allocations: 235.4 kB / 389.6 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007773/0.4234, allocations: 3.124 MB / 392.7 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009421/0.4329, allocations: 2.414 MB / 395.1 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002912/0.4358, allocations: 0.9089 MB / 396 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01465/0.4505, allocations: 9.435 MB / 405.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007164/0.4577, allocations: 4.263 MB / 409.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005185/0.4629, allocations: 1.973 MB / 411.7 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007146/0.4701, allocations: 3.431 MB / 415.1 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002397/0.4726, allocations: 328 kB / 415.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004354/0.4769, allocations: 1.424 MB / 416.9 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004341/0.4813, allocations: 2.758 MB / 419.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00687/0.4882, allocations: 3.125 MB / 422.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01604/0.5043, allocations: 9.937 MB / 432.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.593e-05/0.5044, allocations: 0 / 432.7 MB, free: 7.738 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5044, allocations: 3.938 kB / 432.7 MB, free: 7.734 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003907/0.5048, allocations: 0 / 432.7 MB, free: 7.734 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.01747/0.5223, allocations: 7.295 MB / 440 MB, free: 364 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.5223, allocations: 8.031 kB / 440 MB, free: 356 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01578/0.5381, allocations: 3.943 MB / 444 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009921/0.5481, allocations: 4.204 MB / 448.2 MB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002933/0.5484, allocations: 320.4 kB / 448.5 MB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001721/0.5502, allocations: 435.5 kB / 448.9 MB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2309/0.7811, allocations: 15.72 MB / 464.6 MB, free: 105.9 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001909/0.7813, allocations: 52.84 kB / 464.7 MB, free: 105.9 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007632/0.7821, allocations: 207.6 kB / 464.9 MB, free: 105.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004372/0.7864, allocations: 3.221 MB / 468.1 MB, free: 104.8 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02742/0.8139, allocations: 14.13 MB / 482.2 MB, free: 94.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07499/0.8889, allocations: 57.78 MB / 0.5273 GB, free: 35.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01338/0.9024, allocations: 6.558 MB / 0.5337 GB, free: 28.56 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004547/0.907, allocations: 3.682 MB / 0.5373 GB, free: 24.86 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02194/0.9289, allocations: 14.66 MB / 0.5517 GB, free: 9.688 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.045e-05/0.9291, allocations: 60.56 kB / 0.5517 GB, free: 9.617 MB / 382.1 MB Notification: Performance of pre-optimization done (n=289): time 6.692e-06/0.9291, allocations: 4 kB / 0.5517 GB, free: 9.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=339): time 0.152/1.081, allocations: 42.38 MB / 0.5931 GB, free: 15.14 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001571/1.081, allocations: 221.9 kB / 0.5933 GB, free: 14.88 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01297/1.094, allocations: 5.498 MB / 0.5987 GB, free: 9.398 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001181/1.095, allocations: 73.7 kB / 0.5988 GB, free: 9.32 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004661/1.1, allocations: 4.354 MB / 0.603 GB, free: 4.906 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002371/1.103, allocations: 1.253 MB / 0.6042 GB, free: 3.637 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006166/1.109, allocations: 1.856 MB / 0.606 GB, free: 1.766 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/1.109, allocations: 301.1 kB / 0.6063 GB, free: 1.469 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2504/1.359, allocations: 4.809 MB / 0.611 GB, free: 143.4 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/1.37, allocations: 9.803 MB / 0.6206 GB, free: 135.1 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01663/1.387, allocations: 15.57 MB / 0.6358 GB, free: 123.6 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001681/1.387, allocations: 47.44 kB / 0.6359 GB, free: 123.6 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04182/1.429, allocations: 19.57 MB / 0.655 GB, free: 111.7 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/1.429, allocations: 76 kB / 0.655 GB, free: 111.6 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000167/1.429, allocations: 176 kB / 0.6552 GB, free: 111.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02019/1.449, allocations: 5.949 MB / 0.661 GB, free: 105.5 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007638/1.457, allocations: 2.106 MB / 0.6631 GB, free: 103.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02876/1.486, allocations: 24.77 MB / 0.6873 GB, free: 78.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008015/1.494, allocations: 0.556 MB / 0.6878 GB, free: 77.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001812/1.496, allocations: 0.5117 MB / 0.6883 GB, free: 77.39 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.00661/1.502, allocations: 3.099 MB / 0.6913 GB, free: 74.35 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/1.504, allocations: 498.8 kB / 0.6918 GB, free: 74.13 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02843/1.532, allocations: 12.94 MB / 0.7044 GB, free: 61.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.533, allocations: 55.98 kB / 0.7045 GB, free: 61.07 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.582e-05/1.533, allocations: 8 kB / 0.7045 GB, free: 61.06 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.737e-05/1.533, allocations: 11.95 kB / 0.7045 GB, free: 61.05 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05435/1.587, allocations: 24.59 MB / 0.7285 GB, free: 36.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.576e-05/1.587, allocations: 8 kB / 0.7285 GB, free: 36.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003111/1.59, allocations: 0.5772 MB / 0.7291 GB, free: 35.48 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01807/1.608, allocations: 4.966 MB / 0.7339 GB, free: 30.51 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/1.61, allocations: 56 kB / 0.734 GB, free: 30.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02367/1.633, allocations: 19.99 MB / 0.7535 GB, free: 10.28 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/1.633, allocations: 7.938 kB / 0.7535 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2975/1.931, allocations: 17.45 MB / 0.7706 GB, free: 128.3 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005165/1.936, allocations: 1.247 MB / 0.7718 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002197/1.938, allocations: 56.66 kB / 0.7718 GB, free: 127.9 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00534/1.944, allocations: 262.4 kB / 0.7721 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001375/1.945, allocations: 196 kB / 0.7723 GB, free: 127.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004131/1.945, allocations: 86.56 kB / 0.7724 GB, free: 127.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.008641/1.954, allocations: 3.414 MB / 0.7757 GB, free: 126.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.402e-06/1.954, allocations: 5.109 kB / 0.7757 GB, free: 126.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.01392/1.968, allocations: 1.767 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.001189/1.969, allocations: 207.6 kB / 0.7776 GB, free: 126.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01841/1.988, 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.195e-05/1.988, allocations: 3.969 kB / 0.7883 GB, free: 122.3 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00567/1.993, allocations: 4.109 MB / 0.7923 GB, free: 120.5 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004768/1.998, allocations: 0.5876 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.02667/2.025, allocations: 19.24 MB / 0.8117 GB, free: 105.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005703/2.031, allocations: 4.627 MB / 0.8162 GB, free: 102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.007535/2.038, allocations: 2.966 MB / 0.8191 GB, free: 99.05 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00191/2.04, allocations: 355.4 kB / 0.8194 GB, free: 98.71 MB / 430.1 MB Notification: Performance of SimCode: time 2.285e-06/2.04, allocations: 0 / 0.8194 GB, free: 98.71 MB / 430.1 MB Notification: Performance of Templates: time 0.1208/2.161, allocations: 78.18 MB / 0.8958 GB, free: 20.34 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)