Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.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.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005297/0.005303, allocations: 106.2 kB / 15.74 MB, free: 6 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.001085/0.001085, allocations: 199 kB / 16.68 MB, free: 5.918 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.488/1.488, allocations: 205.1 MB / 222.5 MB, free: 4.316 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.001182/0.001182, allocations: 54.44 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.102, allocations: 46.62 MB / 373.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1): time 0.0195/0.1216, allocations: 16.01 MB / 389.2 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.1337, allocations: 5.14 MB / 394.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003073/0.1368, allocations: 115.6 kB / 394.4 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009013/0.1459, allocations: 4.454 MB / 398.9 MB, free: 7.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008641/0.1546, allocations: 2.622 MB / 401.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003357/0.158, allocations: 1.154 MB / 402.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01237/0.1704, allocations: 7.503 MB / 410.2 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009971/0.1804, allocations: 5.338 MB / 415.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005724/0.1862, allocations: 2.496 MB / 418 MB, free: 4.234 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006004/0.1922, allocations: 3.384 MB / 421.4 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002275/0.1945, allocations: 0.5039 MB / 421.9 MB, free: 344 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004394/0.1989, allocations: 1.49 MB / 423.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004519/0.2035, allocations: 3.004 MB / 426.4 MB, free: 11.83 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007402/0.2109, allocations: 3.368 MB / 429.8 MB, free: 8.445 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01651/0.2275, allocations: 10.37 MB / 440.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.2275, allocations: 0 / 440.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2275, allocations: 0 / 440.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000468/0.228, allocations: 0 / 440.1 MB, free: 14.04 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: 2058 * Number of variables: 2058 Notification: Performance of Generate backend data structure: time 0.02364/0.2517, allocations: 7.636 MB / 447.8 MB, free: 6.32 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.2517, allocations: 8.031 kB / 447.8 MB, free: 6.312 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01536/0.2671, allocations: 3.178 MB / 451 MB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2363/0.5035, allocations: 4.993 MB / 455.9 MB, free: 64.49 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005883/0.5041, allocations: 336.8 kB / 456.3 MB, free: 64.48 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002447/0.5065, allocations: 463.9 kB / 456.7 MB, free: 64.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03108/0.5376, allocations: 14.56 MB / 471.3 MB, free: 58.22 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002397/0.5379, allocations: 72.77 kB / 471.4 MB, free: 58.2 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007398/0.5387, allocations: 211.2 kB / 471.6 MB, free: 58.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004584/0.5433, allocations: 2.846 MB / 474.4 MB, free: 57.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02391/0.5672, allocations: 13.21 MB / 487.6 MB, free: 45.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07442/0.6417, allocations: 58.29 MB / 0.5331 GB, free: 1.969 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01967/0.6614, allocations: 7.731 MB / 0.5407 GB, free: 10.08 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007846/0.6693, allocations: 5.051 MB / 0.5456 GB, free: 5.012 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02994/0.6993, allocations: 12.8 MB / 0.5581 GB, free: 8.062 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001049/0.6995, allocations: 68.64 kB / 0.5582 GB, free: 7.984 MB / 430.1 MB Notification: Performance of pre-optimization done (n=326): time 9.267e-06/0.6995, allocations: 0 / 0.5582 GB, free: 7.984 MB / 430.1 MB Notification: Performance of matching and sorting (n=572): time 2.02/2.719, allocations: 411.5 MB / 0.96 GB, free: 34.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.14e-05/2.719, allocations: 265.7 kB / 0.9603 GB, free: 33.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007466/2.727, allocations: 5.503 MB / 0.9657 GB, free: 28.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00207/2.729, allocations: 113.5 kB / 0.9658 GB, free: 28.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002399/2.731, allocations: 3.931 MB / 0.9696 GB, free: 24.24 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0035/2.735, allocations: 2.009 MB / 0.9716 GB, free: 22.25 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004726/2.74, allocations: 2.179 MB / 0.9737 GB, free: 20.06 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.271e-05/2.74, allocations: 305.1 kB / 0.974 GB, free: 19.76 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01354/2.753, allocations: 11.06 MB / 0.9848 GB, free: 8.684 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2603/3.014, allocations: 15.23 MB / 0.9997 GB, free: 142.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03693/3.051, allocations: 27.45 MB / 1.026 GB, free: 127.2 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003204/3.051, allocations: 42.31 kB / 1.027 GB, free: 127.2 MB / 494.1 MB Notification: Performance of matching and sorting (n=1259) (initialization): time 0.3086/3.359, allocations: 141.1 MB / 1.164 GB, free: 1.891 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003175/3.36, allocations: 67.91 kB / 1.164 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000336/3.36, allocations: 140.6 kB / 1.164 GB, free: 1.688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.3279/3.688, allocations: 34.69 MB / 1.198 GB, free: 145.2 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005071/3.693, allocations: 1.57 MB / 1.2 GB, free: 145.1 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5754/4.269, allocations: 203.6 MB / 1.399 GB, free: 123.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01568/4.284, allocations: 1.719 MB / 1.4 GB, free: 123.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003266/4.288, allocations: 0.5414 MB / 1.401 GB, free: 123.5 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 632 * Number of states: 0 () * Number of discrete variables: 54 (b0.color[3],b0.color[2],b0.color[1],j5.cylinderColor[3],j5.cylinderColor[2],j5.cylinderColor[1],j4.cylinderColor[3],j4.cylinderColor[2],j4.cylinderColor[1],j3.cylinderColor[3],j3.cylinderColor[2],j3.cylinderColor[1],rev1.cylinderColor[3],rev1.cylinderColor[2],rev1.cylinderColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],b3.color[3],b3.color[2],b3.color[1],b3.body.sphereColor[3],b3.body.sphereColor[2],b3.body.sphereColor[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 (840): * Single equations (assignments): 833 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,164,40.5%), (16,102,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,76)} Notification: Performance of prepare postOptimizeDAE: time 0.01063/4.298, allocations: 3.091 MB / 1.404 GB, free: 122.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003342/4.302, allocations: 0.5797 MB / 1.404 GB, free: 122.2 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.299/4.601, allocations: 136.7 MB / 1.538 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001038/4.601, allocations: 56 kB / 1.538 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002128/4.601, allocations: 60 kB / 1.538 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001505/4.601, allocations: 31.83 kB / 1.538 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.9374/5.539, allocations: 205.9 MB / 1.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.88e-05/5.539, allocations: 8.547 kB / 1.739 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001813/5.541, allocations: 330 kB / 1.74 GB, free: 147.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.07672/5.617, allocations: 33.42 MB / 1.772 GB, free: 147.3 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002337/5.62, allocations: 98.72 kB / 1.772 GB, free: 147.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5464/6.166, allocations: 186.2 MB / 1.954 GB, free: 146.9 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/6.166, allocations: 12.31 kB / 1.954 GB, free: 146.9 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3085/6.475, allocations: 152.5 MB / 2.103 GB, free: 22.29 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008089/6.483, allocations: 3.008 MB / 2.106 GB, free: 19.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002965/6.486, allocations: 103.5 kB / 2.106 GB, free: 19.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00958/6.496, allocations: 1.482 MB / 2.108 GB, free: 17.74 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004813/6.5, allocations: 0.4957 MB / 2.108 GB, free: 17.25 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001144/6.502, allocations: 144 kB / 2.108 GB, free: 17.11 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.3354/6.837, allocations: 3.502 MB / 2.112 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.193e-06/6.837, allocations: 0 / 2.112 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.02352/6.86, allocations: 3.858 MB / 2.115 GB, free: 151.5 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (165): * Single equations (assignments): 158 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(20,157,40.5%), (16,99,51.6%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(12,86)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002583/6.863, allocations: 250.5 kB / 2.116 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.06348/6.927, allocations: 33.8 MB / 2.149 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.656e-05/6.927, allocations: 7.719 kB / 2.149 GB, free: 149.9 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.04405/6.971, allocations: 20.54 MB / 2.169 GB, free: 141 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01402/6.985, allocations: 0.7878 MB / 2.169 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05652/7.041, allocations: 27.13 MB / 2.196 GB, free: 116 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009684/7.051, allocations: 5.118 MB / 2.201 GB, free: 112.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005325/7.057, allocations: 2.065 MB / 2.203 GB, free: 110.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001042/7.058, allocations: 309.7 kB / 2.203 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of SimCode: time 1.653e-06/7.058, allocations: 0 / 2.203 GB, free: 110.6 MB / 0.5137 GB Notification: Performance of Templates: time 0.6531/7.711, allocations: 276.7 MB / 2.473 GB, free: 9.664 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar1.pipe 2>&1)