Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.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.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005872/0.005872, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.00129/0.00129, allocations: 193.1 kB / 16.68 MB, free: 5.973 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.456/1.456, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001162/0.001162, allocations: 53.27 kB / 326.6 MB, free: 14.4 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1073, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar): time 0.0188/0.1262, allocations: 18.57 MB / 391.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01476/0.141, allocations: 6.158 MB / 397.9 MB, free: 8.484 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005108/0.1462, allocations: 143.6 kB / 398 MB, free: 8.344 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01148/0.1577, allocations: 6.273 MB / 404.3 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01083/0.1686, allocations: 2.848 MB / 407.2 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005868/0.1745, allocations: 2.284 MB / 409.4 MB, free: 12.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01483/0.1894, allocations: 8.835 MB / 418.3 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01136/0.2008, allocations: 8.423 MB / 426.7 MB, free: 11.52 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007414/0.2082, allocations: 3.206 MB / 429.9 MB, free: 8.309 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007467/0.2157, allocations: 4.183 MB / 434.1 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002869/0.2186, allocations: 0.7188 MB / 434.8 MB, free: 3.395 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005294/0.224, allocations: 1.896 MB / 436.7 MB, free: 1.496 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005848/0.2298, allocations: 3.843 MB / 440.6 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008618/0.2385, allocations: 4.146 MB / 444.7 MB, free: 9.477 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4492/0.6877, allocations: 13.29 MB / 458 MB, free: 28.08 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.16e-05/0.6878, allocations: 0 / 458 MB, free: 28.08 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.6878, allocations: 2.531 kB / 458 MB, free: 28.08 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0006429/0.6885, allocations: 0 / 458 MB, free: 28.08 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2349 * Number of variables: 2349 Notification: Performance of Generate backend data structure: time 0.03556/0.724, allocations: 9.154 MB / 467.1 MB, free: 24.76 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.7241, allocations: 13.14 kB / 467.2 MB, free: 24.76 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05059/0.7747, allocations: 4.895 MB / 472 MB, free: 24.24 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01851/0.7933, allocations: 6.733 MB / 478.8 MB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00052/0.7938, allocations: 439.1 kB / 479.2 MB, free: 23.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004257/0.7981, allocations: 0.5855 MB / 479.8 MB, free: 23.23 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04032/0.8384, allocations: 17.06 MB / 496.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003519/0.8388, allocations: 80.75 kB / 496.9 MB, free: 14.71 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002143/0.841, allocations: 264.2 kB / 497.2 MB, free: 14.56 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004313/0.8453, allocations: 2.659 MB / 499.9 MB, free: 12.74 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03052/0.8759, allocations: 14.78 MB / 0.5026 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1015/0.9774, allocations: 64.47 MB / 0.5655 GB, free: 13.03 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02486/1.002, allocations: 8.775 MB / 0.5741 GB, free: 4.117 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007443/1.01, allocations: 5.063 MB / 0.579 GB, free: 15.05 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0371/1.047, allocations: 18.66 MB / 0.5973 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.503e-05/1.047, allocations: 66.05 kB / 0.5973 GB, free: 12.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=281): time 8.616e-06/1.047, allocations: 0 / 0.5973 GB, free: 12.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=374): time 0.5611/1.608, allocations: 74.44 MB / 0.67 GB, free: 189 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001639/1.609, allocations: 378.3 kB / 0.6704 GB, free: 188.6 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01071/1.619, allocations: 6.428 MB / 0.6767 GB, free: 184 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001684/1.621, allocations: 89.7 kB / 0.6767 GB, free: 183.9 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.003349/1.624, allocations: 4.938 MB / 0.6816 GB, free: 179 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.002688/1.627, allocations: 1.45 MB / 0.683 GB, free: 177.6 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003711/1.631, allocations: 1.984 MB / 0.6849 GB, free: 175.6 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.602e-05/1.631, allocations: 301.1 kB / 0.6852 GB, free: 175.3 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007413/1.638, allocations: 5.988 MB / 0.6911 GB, free: 169.3 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01108/1.649, allocations: 11.02 MB / 0.7018 GB, free: 155.8 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01996/1.669, allocations: 17.97 MB / 0.7194 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001971/1.67, allocations: 55.38 kB / 0.7194 GB, free: 135.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1233) (initialization): time 0.0484/1.718, allocations: 23.37 MB / 0.7422 GB, free: 112 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002357/1.718, allocations: 80 kB / 0.7423 GB, free: 111.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003112/1.719, allocations: 172 kB / 0.7425 GB, free: 111.7 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02347/1.742, allocations: 7.446 MB / 0.7498 GB, free: 104.2 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008575/1.751, allocations: 2.187 MB / 0.7519 GB, free: 102.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04847/1.799, allocations: 38.11 MB / 0.7891 GB, free: 63.54 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01067/1.81, allocations: 0.7451 MB / 0.7898 GB, free: 62.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002984/1.813, allocations: 0.5273 MB / 0.7904 GB, free: 62.27 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 785 * Number of states: 0 () * Number of discrete variables: 51 (sensorJoint4.arrowColor[3],sensorJoint4.arrowColor[2],sensorJoint4.arrowColor[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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],revolute4cut.cylinderColor[3],revolute4cut.cylinderColor[2],revolute4cut.cylinderColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1091): * Single equations (assignments): 1084 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,68,84.0%), (2,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.01177/1.825, allocations: 3.442 MB / 0.7937 GB, free: 58.82 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003022/1.828, allocations: 0.6053 MB / 0.7943 GB, free: 58.21 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03723/1.865, allocations: 16.97 MB / 0.8109 GB, free: 41.17 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001119/1.865, allocations: 48 kB / 0.8109 GB, free: 41.12 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.581e-05/1.865, allocations: 22.62 kB / 0.8109 GB, free: 41.1 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001338/1.866, allocations: 15.94 kB / 0.811 GB, free: 41.09 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3752/2.241, allocations: 32.04 MB / 0.8423 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.272e-05/2.241, allocations: 3.312 kB / 0.8423 GB, free: 178.3 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003675/2.245, allocations: 0.6026 MB / 0.8428 GB, free: 178.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02222/2.267, allocations: 7.018 MB / 0.8497 GB, free: 177.1 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001493/2.268, allocations: 59.25 kB / 0.8498 GB, free: 177.1 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04828/2.317, allocations: 36.31 MB / 0.8852 GB, free: 152.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/2.317, allocations: 2.188 kB / 0.8852 GB, free: 152.8 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04446/2.361, allocations: 24.65 MB / 0.9093 GB, free: 128.4 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005897/2.367, allocations: 1.69 MB / 0.9109 GB, free: 127.1 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003974/2.371, allocations: 60 kB / 0.911 GB, free: 127 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00702/2.378, allocations: 447.2 kB / 0.9114 GB, free: 126.6 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002001/2.38, allocations: 253.2 kB / 0.9117 GB, free: 126.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00108/2.381, allocations: 95.98 kB / 0.9118 GB, free: 126.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.008233/2.39, allocations: 4.08 MB / 0.9157 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.51e-07/2.39, allocations: 0 / 0.9157 GB, free: 122.1 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01518/2.405, allocations: 2.288 MB / 0.918 GB, free: 119.9 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 2 (revolute1.phi,revolute1.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 (243): * Single equations (assignments): 236 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,62,84.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003298/2.408, allocations: 288.1 kB / 0.9183 GB, free: 119.6 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.02832/2.436, allocations: 14.9 MB / 0.9328 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.437, allocations: 4 kB / 0.9328 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.01239/2.449, allocations: 6.717 MB / 0.9394 GB, free: 98.06 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01179/2.461, allocations: 0.901 MB / 0.9402 GB, free: 97.2 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03907/2.5, allocations: 20.23 MB / 0.96 GB, free: 76.94 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008079/2.508, allocations: 5.288 MB / 0.9652 GB, free: 71.61 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.007516/2.516, allocations: 3.024 MB / 0.9681 GB, free: 68.58 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002197/2.518, allocations: 387.4 kB / 0.9685 GB, free: 68.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.002e-06/2.518, allocations: 0 / 0.9685 GB, free: 68.2 MB / 0.5138 GB Notification: Performance of Templates: time 0.4772/2.995, allocations: 108.8 MB / 1.075 GB, free: 138.9 MB / 0.5138 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.PlanarFourbar.pipe 2>&1)