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.00119/0.00119, allocations: 113.9 kB / 17.06 MB, free: 5.977 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.001175/0.001175, allocations: 198.9 kB / 18.01 MB, free: 5.059 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.384/1.384, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.001209/0.001209, allocations: 51.92 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.09656, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2099/0.3065, allocations: 15.07 MB / 389.6 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.317, allocations: 4.821 MB / 394.4 MB, free: 1.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003732/0.3207, allocations: 92.97 kB / 394.5 MB, free: 1.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006679/0.3275, allocations: 3.169 MB / 397.6 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009205/0.3367, allocations: 2.557 MB / 400.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003043/0.3398, allocations: 0.9861 MB / 401.2 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01357/0.3534, allocations: 6.653 MB / 407.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007338/0.3608, allocations: 4.35 MB / 412.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00514/0.3659, allocations: 2.241 MB / 414.4 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005656/0.3716, allocations: 3.25 MB / 417.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001437/0.3731, allocations: 484 kB / 418.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003632/0.3767, allocations: 1.49 MB / 419.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002887/0.3796, allocations: 2.891 MB / 422.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004048/0.3837, allocations: 3.262 MB / 425.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01326/0.397, allocations: 10.44 MB / 436.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.839e-06/0.397, allocations: 0 / 436.2 MB, free: 1.629 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.699e-06/0.397, allocations: 4 kB / 436.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004149/0.3975, allocations: 0 / 436.2 MB, free: 1.625 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.01974/0.4172, allocations: 7.295 MB / 443.5 MB, free: 10.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4173, allocations: 11.97 kB / 443.5 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01738/0.4347, allocations: 3.939 MB / 447.5 MB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01228/0.447, allocations: 4.271 MB / 451.7 MB, free: 1.949 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003375/0.4474, allocations: 316.6 kB / 452.1 MB, free: 1.637 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002414/0.4498, allocations: 435.5 kB / 452.5 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02978/0.4796, allocations: 15.71 MB / 468.2 MB, free: 0.5664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001772/0.4798, allocations: 59.47 kB / 468.3 MB, free: 0.5078 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007286/0.4805, allocations: 203.8 kB / 468.5 MB, free: 316 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004953/0.4855, allocations: 3.212 MB / 471.7 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03023/0.5158, allocations: 14.13 MB / 485.8 MB, free: 14.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0857/0.6015, allocations: 57.49 MB / 0.5306 GB, free: 3.867 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01481/0.6164, allocations: 6.562 MB / 0.537 GB, free: 13.05 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005523/0.622, allocations: 3.697 MB / 0.5406 GB, free: 9.344 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2869/0.9089, allocations: 14.63 MB / 0.5549 GB, free: 144.9 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.807e-05/0.909, allocations: 62.66 kB / 0.5549 GB, free: 144.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=289): time 2.186e-05/0.909, allocations: 0 / 0.5549 GB, free: 144.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=339): time 0.1415/1.051, allocations: 42.39 MB / 0.5963 GB, free: 126.9 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.45e-05/1.051, allocations: 217.9 kB / 0.5965 GB, free: 126.7 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005975/1.057, allocations: 5.498 MB / 0.6019 GB, free: 121.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008225/1.057, allocations: 77.14 kB / 0.602 GB, free: 121.1 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001751/1.059, allocations: 4.349 MB / 0.6062 GB, free: 116.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001061/1.06, allocations: 1.256 MB / 0.6074 GB, free: 115.5 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002107/1.062, allocations: 1.852 MB / 0.6093 GB, free: 113.7 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.909e-05/1.062, allocations: 313 kB / 0.6095 GB, free: 113.4 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005188/1.068, allocations: 4.804 MB / 0.6142 GB, free: 108.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006726/1.074, allocations: 9.808 MB / 0.6238 GB, free: 96.3 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01398/1.088, allocations: 15.57 MB / 0.639 GB, free: 78.26 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00012/1.089, allocations: 48 kB / 0.6391 GB, free: 78.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04357/1.132, allocations: 19.56 MB / 0.6582 GB, free: 58.6 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001994/1.132, allocations: 76 kB / 0.6583 GB, free: 58.53 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000234/1.133, allocations: 179.6 kB / 0.6584 GB, free: 58.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02189/1.155, allocations: 5.937 MB / 0.6642 GB, free: 52.41 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007117/1.162, allocations: 2.113 MB / 0.6663 GB, free: 50.29 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02911/1.191, allocations: 26.15 MB / 0.6918 GB, free: 23.86 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008173/1.199, allocations: 0.5685 MB / 0.6924 GB, free: 23.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001669/1.201, allocations: 0.5078 MB / 0.6929 GB, free: 22.79 MB / 478.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.006418/1.207, allocations: 3.109 MB / 0.6959 GB, free: 19.66 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001654/1.209, allocations: 497.5 kB / 0.6964 GB, free: 19.17 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03174/1.241, allocations: 12.93 MB / 0.709 GB, free: 6.172 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.721e-05/1.241, allocations: 59.98 kB / 0.7091 GB, free: 6.113 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.059e-05/1.241, allocations: 8 kB / 0.7091 GB, free: 6.105 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.761e-05/1.241, allocations: 15.94 kB / 0.7091 GB, free: 6.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2816/1.522, allocations: 24.51 MB / 0.733 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.492e-05/1.523, allocations: 12 kB / 0.733 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003623/1.526, allocations: 0.5762 MB / 0.7336 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02115/1.547, allocations: 4.975 MB / 0.7385 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008376/1.548, allocations: 53.94 kB / 0.7385 GB, free: 143.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02599/1.574, allocations: 21.34 MB / 0.7593 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.047e-06/1.574, allocations: 11.81 kB / 0.7594 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03607/1.61, allocations: 17.47 MB / 0.7764 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004437/1.615, allocations: 1.238 MB / 0.7776 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001453/1.616, allocations: 55.73 kB / 0.7777 GB, free: 126.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003646/1.62, allocations: 259.4 kB / 0.7779 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008013/1.621, allocations: 199.3 kB / 0.7781 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002921/1.621, allocations: 87.3 kB / 0.7782 GB, free: 126.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00517/1.626, allocations: 3.42 MB / 0.7815 GB, free: 124.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/1.626, allocations: 0 / 0.7815 GB, free: 124.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008638/1.635, allocations: 1.757 MB / 0.7832 GB, free: 124.5 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.0008014/1.636, allocations: 212.9 kB / 0.7835 GB, free: 124.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01392/1.65, allocations: 10.97 MB / 0.7942 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/1.65, allocations: 4 kB / 0.7942 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005179/1.655, allocations: 4.102 MB / 0.7982 GB, free: 109.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/1.659, allocations: 0.6115 MB / 0.7988 GB, free: 109.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02487/1.684, allocations: 16.06 MB / 0.8144 GB, free: 93.09 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004688/1.689, allocations: 4.63 MB / 0.819 GB, free: 88.45 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006223/1.695, allocations: 2.965 MB / 0.8219 GB, free: 85.55 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/1.697, allocations: 355.4 kB / 0.8222 GB, free: 85.21 MB / 494.1 MB Notification: Performance of SimCode: time 1.232e-06/1.697, allocations: 0 / 0.8222 GB, free: 85.21 MB / 494.1 MB Notification: Performance of Templates: time 0.1101/1.807, allocations: 77.36 MB / 0.8978 GB, free: 7.766 MB / 494.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)