Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.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.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008699/0.008699, allocations: 102.3 kB / 15.73 MB, free: 6.5 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.001687/0.001687, allocations: 199 kB / 16.68 MB, free: 6.375 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.542/1.542, allocations: 205.1 MB / 222.6 MB, free: 4.488 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.001347/0.001347, allocations: 53.56 kB / 326.5 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1265, allocations: 46.63 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01697/0.1436, allocations: 13.52 MB / 386.7 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01343/0.1571, allocations: 4.854 MB / 391.6 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003526/0.1607, allocations: 87.75 kB / 391.6 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008677/0.1694, allocations: 4.202 MB / 395.8 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007179/0.1766, allocations: 2.199 MB / 398 MB, free: 8.359 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003584/0.1802, allocations: 1.115 MB / 399.2 MB, free: 7.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01038/0.1906, allocations: 5.627 MB / 404.8 MB, free: 1.602 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009672/0.2004, allocations: 5.313 MB / 410.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004906/0.2053, allocations: 2.162 MB / 412.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005317/0.2107, allocations: 2.882 MB / 415.1 MB, free: 7.164 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002206/0.2129, allocations: 0.4922 MB / 415.6 MB, free: 6.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004612/0.2175, allocations: 1.623 MB / 417.2 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004254/0.2218, allocations: 2.623 MB / 419.9 MB, free: 2.418 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007017/0.2288, allocations: 2.902 MB / 422.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01793/0.2468, allocations: 9.574 MB / 432.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.795e-06/0.2469, allocations: 0 / 432.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.856e-06/0.2469, allocations: 7.938 kB / 432.4 MB, free: 5.883 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0005476/0.2474, allocations: 4 kB / 432.4 MB, free: 5.879 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.02034/0.2678, allocations: 6.181 MB / 438.5 MB, free: 15.61 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.806e-05/0.2679, allocations: 12.03 kB / 438.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01296/0.2808, allocations: 2.579 MB / 441.1 MB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01361/0.2945, allocations: 3.93 MB / 445.1 MB, free: 9.023 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004301/0.295, allocations: 307.1 kB / 445.4 MB, free: 8.723 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002541/0.2975, allocations: 439.7 kB / 445.8 MB, free: 8.293 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2748/0.5724, allocations: 12.4 MB / 458.2 MB, free: 62.59 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004703/0.5729, allocations: 51.98 kB / 458.2 MB, free: 62.57 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001825/0.5747, allocations: 189.9 kB / 458.4 MB, free: 62.54 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004208/0.579, allocations: 2.038 MB / 460.5 MB, free: 62.17 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02535/0.6043, allocations: 10.57 MB / 471 MB, free: 58.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05006/0.6545, allocations: 44.23 MB / 0.5032 GB, free: 18.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01142/0.666, allocations: 4.84 MB / 0.5079 GB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002102/0.6681, allocations: 2.009 MB / 0.5099 GB, free: 11.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01023/0.6783, allocations: 7.127 MB / 0.5168 GB, free: 3.902 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.6784, allocations: 59.48 kB / 0.5169 GB, free: 3.836 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.789e-06/0.6784, allocations: 4 kB / 0.5169 GB, free: 3.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06927/0.7477, allocations: 19.91 MB / 0.5363 GB, free: 148 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001443/0.7479, allocations: 205.9 kB / 0.5365 GB, free: 15.9 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006568/0.7545, allocations: 4.506 MB / 0.5409 GB, free: 11.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004562/0.7549, allocations: 60.2 kB / 0.541 GB, free: 11.4 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002651/0.7576, allocations: 3.661 MB / 0.5446 GB, free: 7.746 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.7586, allocations: 0.8721 MB / 0.5454 GB, free: 6.867 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001753/0.7604, allocations: 1.354 MB / 0.5467 GB, free: 5.504 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.7605, allocations: 305.1 kB / 0.547 GB, free: 5.203 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00339/0.7639, allocations: 2.363 MB / 0.5493 GB, free: 2.836 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006235/0.7702, allocations: 6.167 MB / 0.5554 GB, free: 10.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01132/0.7815, allocations: 9.171 MB / 0.5643 GB, free: 15.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/0.7817, allocations: 36 kB / 0.5644 GB, free: 15.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.02006/0.8017, allocations: 9.57 MB / 0.5737 GB, free: 6.141 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-05/0.8018, allocations: 60 kB / 0.5738 GB, free: 6.082 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001579/0.802, allocations: 132 kB / 0.5739 GB, free: 5.953 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00415/0.8062, allocations: 1.375 MB / 0.5752 GB, free: 4.574 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005072/0.8113, allocations: 1.466 MB / 0.5767 GB, free: 3.105 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01403/0.8253, allocations: 8.483 MB / 0.5849 GB, free: 10.49 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006002/0.8313, allocations: 354.7 kB / 0.5853 GB, free: 10.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001212/0.8326, allocations: 392 kB / 0.5857 GB, free: 9.762 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 605 * Number of states: 0 () * Number of discrete variables: 46 (jointSSP.prismatic.positiveBranch,b2.color[3],b2.color[2],b2.color[1],b2.body.sphereColor[3],b2.body.sphereColor[2],b2.body.sphereColor[1],jointSSP.rod2Color[3],jointSSP.rod2Color[2],jointSSP.rod2Color[1],jointSSP.sphereColor[3],jointSSP.sphereColor[2],jointSSP.sphereColor[1],jointSSP.rod1Color[3],jointSSP.rod1Color[2],jointSSP.rod1Color[1],jointSSP.rod1.massColor[3],jointSSP.rod1.massColor[2],jointSSP.rod1.massColor[1],jointSSP.boxColor[3],jointSSP.boxColor[2],jointSSP.boxColor[1],b3.color[3],b3.color[2],b3.color[1],b1.color[3],b1.color[2],b1.color[1],b1.body.sphereColor[3],b1.body.sphereColor[2],b1.body.sphereColor[1],j1.cylinderColor[3],j1.cylinderColor[2],j1.cylinderColor[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (804): * Single equations (assignments): 800 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,40,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005247/0.8378, allocations: 2.493 MB / 0.5881 GB, free: 7.254 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00111/0.839, allocations: 425.1 kB / 0.5885 GB, free: 6.836 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009165/0.8481, allocations: 4.118 MB / 0.5925 GB, free: 2.703 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.213e-05/0.8482, allocations: 28 kB / 0.5925 GB, free: 2.676 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.078e-05/0.8482, allocations: 8 kB / 0.5925 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.901e-05/0.8483, allocations: 11.95 kB / 0.5926 GB, free: 2.656 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02432/0.8726, allocations: 10.15 MB / 0.6025 GB, free: 8.352 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.466e-05/0.8726, allocations: 4 kB / 0.6025 GB, free: 8.348 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/0.8742, allocations: 327.5 kB / 0.6028 GB, free: 8.027 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003932/0.8782, allocations: 1.156 MB / 0.6039 GB, free: 6.867 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002505/0.8784, allocations: 36 kB / 0.604 GB, free: 6.832 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0114/0.8898, allocations: 7.16 MB / 0.6109 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.906e-06/0.8899, allocations: 7.938 kB / 0.611 GB, free: 15.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01363/0.9035, allocations: 6.929 MB / 0.6177 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002844/0.9064, allocations: 0.748 MB / 0.6184 GB, free: 7.734 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001432/0.9078, allocations: 44 kB / 0.6185 GB, free: 7.691 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002535/0.9104, allocations: 111.9 kB / 0.6186 GB, free: 7.582 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004067/0.9108, allocations: 145 kB / 0.6187 GB, free: 7.441 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/0.911, allocations: 71.89 kB / 0.6188 GB, free: 7.375 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004645/0.9157, allocations: 2.815 MB / 0.6216 GB, free: 4.559 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.816e-06/0.9157, allocations: 0 / 0.6216 GB, free: 4.559 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006433/0.9221, allocations: 1.219 MB / 0.6227 GB, free: 3.34 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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,30,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005571/0.9227, allocations: 234.6 kB / 0.623 GB, free: 3.102 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.2657/1.188, allocations: 5.756 MB / 0.6286 GB, free: 162.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.405e-05/1.188, allocations: 3.031 kB / 0.6286 GB, free: 162.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003586/1.192, allocations: 1.871 MB / 0.6304 GB, free: 161.9 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004184/1.196, allocations: 0.5436 MB / 0.6309 GB, free: 161.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02345/1.22, allocations: 11.23 MB / 0.6419 GB, free: 157.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004752/1.225, allocations: 3.88 MB / 0.6457 GB, free: 155.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004665/1.229, allocations: 1.938 MB / 0.6476 GB, free: 155.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007825/1.23, allocations: 270.6 kB / 0.6479 GB, free: 155.7 MB / 494.1 MB Notification: Performance of SimCode: time 9.52e-07/1.23, allocations: 0 / 0.6479 GB, free: 155.7 MB / 494.1 MB Notification: Performance of Templates: time 0.07494/1.305, allocations: 42.22 MB / 0.6891 GB, free: 119.9 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile (rm -f Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1)