Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001397/0.001397, allocations: 98.89 kB / 16.31 MB, free: 5.996 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.001479/0.001479, allocations: 184.8 kB / 17.2 MB, free: 5.91 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.611/1.611, allocations: 205.4 MB / 223.4 MB, free: 5.52 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.0004581/0.0004582, allocations: 12 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2704, allocations: 47.58 MB / 327.7 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.04521/0.3157, allocations: 47.45 MB / 375.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02969/0.3454, allocations: 11.77 MB / 386.9 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01185/0.3573, allocations: 239.4 kB / 387.2 MB, free: 7.918 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009168/0.3665, allocations: 2.345 MB / 389.5 MB, free: 5.562 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02774/0.3943, allocations: 6.791 MB / 396.3 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006161/0.4005, allocations: 0.8931 MB / 397.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0421/0.4426, allocations: 27.49 MB / 424.7 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01104/0.4537, allocations: 6.537 MB / 431.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003289/0.457, allocations: 1.339 MB / 432.6 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003259/0.4603, allocations: 1.764 MB / 434.3 MB, free: 8.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001211/0.4615, allocations: 188 kB / 434.5 MB, free: 8.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003204/0.4648, allocations: 1.143 MB / 435.6 MB, free: 7.289 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003226/0.468, allocations: 2.03 MB / 437.7 MB, free: 5.254 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002937/0.471, allocations: 1.049 MB / 438.7 MB, free: 4.195 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01152/0.4825, allocations: 7.56 MB / 446.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4826, allocations: 0 / 446.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.4826, allocations: 0 / 446.3 MB, free: 12.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003646/0.4829, allocations: 0 / 446.3 MB, free: 12.61 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: 1743 * Number of variables: 1743 Notification: Performance of Generate backend data structure: time 0.01559/0.4985, allocations: 5.229 MB / 451.5 MB, free: 7.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.4986, allocations: 12.03 kB / 451.5 MB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2744/0.773, allocations: 7.944 MB / 459.5 MB, free: 108.4 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01144/0.7845, allocations: 4.23 MB / 463.7 MB, free: 107.9 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003664/0.7849, allocations: 304.8 kB / 464 MB, free: 107.9 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001863/0.7868, allocations: 439.2 kB / 464.4 MB, free: 107.9 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02256/0.8094, allocations: 12.47 MB / 476.9 MB, free: 102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001232/0.8095, allocations: 51.62 kB / 477 MB, free: 102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004348/0.81, allocations: 188.5 kB / 477.1 MB, free: 101.8 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002623/0.8126, allocations: 2.038 MB / 479.2 MB, free: 99.81 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0187/0.8313, allocations: 10.53 MB / 489.7 MB, free: 89.31 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04534/0.8767, allocations: 44.29 MB / 0.5215 GB, free: 44.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01117/0.8879, allocations: 4.846 MB / 0.5262 GB, free: 39.2 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01073/0.8987, allocations: 7.11 MB / 0.5332 GB, free: 31.88 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.8988, allocations: 51.56 kB / 0.5332 GB, free: 31.82 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 5.1e-06/0.8988, allocations: 0 / 0.5332 GB, free: 31.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06083/0.9596, allocations: 19.59 MB / 0.5523 GB, free: 12.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.9597, allocations: 205.8 kB / 0.5525 GB, free: 11.89 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005195/0.9649, allocations: 4.736 MB / 0.5572 GB, free: 7.148 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003084/0.9653, allocations: 57.7 kB / 0.5572 GB, free: 7.086 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001554/0.9668, allocations: 3.569 MB / 0.5607 GB, free: 3.527 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000611/0.9675, allocations: 0.8354 MB / 0.5615 GB, free: 2.699 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.9677, allocations: 128 kB / 0.5616 GB, free: 2.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002622/0.968, allocations: 0.5784 MB / 0.5622 GB, free: 1.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002737/0.9707, allocations: 2.203 MB / 0.5644 GB, free: 15.78 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00603/0.9767, allocations: 5.921 MB / 0.5701 GB, free: 8.008 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005595/0.9824, allocations: 3.558 MB / 0.5736 GB, free: 4.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.959e-05/0.9825, allocations: 44 kB / 0.5736 GB, free: 4.414 MB / 398.1 MB Notification: Performance of matching and sorting (n=830) (initialization): time 0.01788/1, allocations: 8.99 MB / 0.5824 GB, free: 11.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.884e-05/1.001, allocations: 60 kB / 0.5825 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001813/1.001, allocations: 136.9 kB / 0.5826 GB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003705/1.004, allocations: 1.222 MB / 0.5838 GB, free: 9.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005015/1.009, allocations: 1.415 MB / 0.5852 GB, free: 8.578 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0111/1.021, allocations: 7.744 MB / 0.5928 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005367/1.026, allocations: 343.4 kB / 0.5931 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/1.027, allocations: 376 kB / 0.5934 GB, free: 0 / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 599 * 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 (766): * Single equations (assignments): 762 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 40} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005239/1.032, allocations: 2.482 MB / 0.5959 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009684/1.033, allocations: 410.7 kB / 0.5963 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00742/1.041, allocations: 3.883 MB / 0.6 GB, free: 9.203 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.089e-05/1.041, allocations: 24 kB / 0.6001 GB, free: 9.18 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/1.041, allocations: 8 kB / 0.6001 GB, free: 9.172 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/1.041, allocations: 7.969 kB / 0.6001 GB, free: 9.164 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2559/1.297, allocations: 10.2 MB / 0.61 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.049e-05/1.297, allocations: 5.469 kB / 0.61 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/1.299, allocations: 345.4 kB / 0.6104 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003473/1.302, allocations: 0.9827 MB / 0.6113 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003535/1.303, allocations: 43.66 kB / 0.6114 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009233/1.312, allocations: 6.427 MB / 0.6177 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.116e-06/1.312, allocations: 11.55 kB / 0.6177 GB, free: 139.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009872/1.322, allocations: 7.223 MB / 0.6247 GB, free: 136 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002391/1.324, allocations: 0.7448 MB / 0.6254 GB, free: 135.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009419/1.325, allocations: 39.97 kB / 0.6255 GB, free: 135.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001873/1.327, allocations: 116 kB / 0.6256 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003553/1.328, allocations: 140.2 kB / 0.6257 GB, free: 135.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001419/1.328, allocations: 67.5 kB / 0.6258 GB, free: 135.7 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00486/1.333, allocations: 3.024 MB / 0.6287 GB, free: 134.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.81e-07/1.333, allocations: 2.625 kB / 0.6287 GB, free: 134.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0072/1.34, allocations: 1.197 MB / 0.6299 GB, free: 134.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 (173): * Single equations (assignments): 169 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000858/1.341, allocations: 223.3 kB / 0.6301 GB, free: 134.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008765/1.35, allocations: 5.478 MB / 0.6355 GB, free: 132.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/1.35, allocations: 3.406 kB / 0.6355 GB, free: 132.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002571/1.352, allocations: 1.824 MB / 0.6373 GB, free: 131.6 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003253/1.355, allocations: 0.5098 MB / 0.6378 GB, free: 131.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/1.377, allocations: 12.95 MB / 0.6504 GB, free: 119.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004018/1.381, allocations: 3.984 MB / 0.6543 GB, free: 115.4 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004762/1.386, allocations: 1.946 MB / 0.6562 GB, free: 113.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008066/1.387, allocations: 279.4 kB / 0.6565 GB, free: 113.2 MB / 430.1 MB Notification: Performance of SimCode: time 1.433e-06/1.387, allocations: 0 / 0.6565 GB, free: 113.2 MB / 430.1 MB Notification: Performance of Templates: time 0.07265/1.459, allocations: 43.14 MB / 0.6986 GB, free: 70.07 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic.pipe 2>&1) Environment - environmentSimulation: