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.001074/0.001074, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 193.9 kB / 16.53 MB, free: 6.691 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.492/1.492, allocations: 205.1 MB / 222.4 MB, free: 4.621 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.001264/0.001264, allocations: 47.94 kB / 278.7 MB, free: 12.38 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2721, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar_analytic): time 0.01475/0.2869, allocations: 13.51 MB / 338.8 MB, free: 6.375 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.2988, allocations: 4.859 MB / 343.7 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002908/0.3018, allocations: 91.75 kB / 343.8 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007139/0.309, allocations: 4.186 MB / 348 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006254/0.3153, allocations: 2.14 MB / 350.1 MB, free: 11.06 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002513/0.3178, allocations: 1.115 MB / 351.2 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008044/0.3259, allocations: 5.639 MB / 356.9 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005938/0.3318, allocations: 5.332 MB / 362.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00361/0.3355, allocations: 2.162 MB / 364.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004519/0.34, allocations: 2.874 MB / 367.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009594/0.341, allocations: 0.4922 MB / 367.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00295/0.3439, allocations: 1.615 MB / 369.3 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.3461, allocations: 2.576 MB / 371.9 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003037/0.3492, allocations: 2.906 MB / 374.8 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009642/0.3588, allocations: 9.304 MB / 384.1 MB, free: 8.891 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.515e-06/0.3589, allocations: 3.938 kB / 384.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.3589, allocations: 0 / 384.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003011/0.3592, allocations: 0 / 384.1 MB, free: 8.887 MB / 318.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.0149/0.3741, allocations: 6.028 MB / 390.1 MB, free: 2.781 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.3741, allocations: 8.031 kB / 390.2 MB, free: 2.773 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01076/0.3849, allocations: 2.537 MB / 392.7 MB, free: 232 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008922/0.3939, allocations: 3.859 MB / 396.5 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002593/0.3942, allocations: 308.3 kB / 396.8 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001338/0.3955, allocations: 443.6 kB / 397.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02238/0.4179, allocations: 12.41 MB / 409.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001336/0.4181, allocations: 51.44 kB / 409.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004814/0.4186, allocations: 195.9 kB / 409.9 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003028/0.4216, allocations: 2.031 MB / 412 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02154/0.4432, allocations: 10.56 MB / 422.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2635/0.7067, allocations: 44.36 MB / 466.9 MB, free: 81.44 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01126/0.718, allocations: 4.847 MB / 471.7 MB, free: 80.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002163/0.7202, allocations: 2.009 MB / 473.7 MB, free: 80.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00924/0.7294, allocations: 7.109 MB / 480.8 MB, free: 76.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.134e-05/0.7295, allocations: 54.47 kB / 480.9 MB, free: 76.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=179): time 4.078e-06/0.7295, allocations: 0 / 480.9 MB, free: 76.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=223): time 0.06523/0.7947, allocations: 19.66 MB / 0.4888 GB, free: 60.96 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.552e-05/0.7949, allocations: 201.9 kB / 0.489 GB, free: 60.72 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006538/0.8014, allocations: 4.493 MB / 0.4934 GB, free: 56.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003506/0.8018, allocations: 57.7 kB / 0.4935 GB, free: 56.14 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.8035, allocations: 3.514 MB / 0.4969 GB, free: 52.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008409/0.8044, allocations: 0.8384 MB / 0.4977 GB, free: 51.8 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001688/0.8061, allocations: 1.343 MB / 0.499 GB, free: 50.45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.197e-05/0.8062, allocations: 313.1 kB / 0.4993 GB, free: 50.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002585/0.8087, allocations: 2.359 MB / 0.5016 GB, free: 47.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003722/0.8125, allocations: 6.158 MB / 0.5076 GB, free: 39.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007431/0.8199, allocations: 9.171 MB / 0.5166 GB, free: 28.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.977e-05/0.82, allocations: 40 kB / 0.5166 GB, free: 28.84 MB / 382.1 MB Notification: Performance of matching and sorting (n=868) (initialization): time 0.01373/0.8337, allocations: 9.544 MB / 0.526 GB, free: 19.28 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.858e-05/0.8338, allocations: 71.94 kB / 0.526 GB, free: 19.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001082/0.834, allocations: 135.5 kB / 0.5262 GB, free: 19.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003713/0.8377, allocations: 1.374 MB / 0.5275 GB, free: 17.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004063/0.8418, allocations: 1.474 MB / 0.5289 GB, free: 16.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009454/0.8512, allocations: 8.505 MB / 0.5372 GB, free: 7.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005477/0.8567, allocations: 354.8 kB / 0.5376 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007846/0.8575, allocations: 384.1 kB / 0.5379 GB, free: 6.867 MB / 382.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.003297/0.8608, allocations: 2.493 MB / 0.5404 GB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009027/0.8617, allocations: 402.8 kB / 0.5408 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007197/0.869, allocations: 4.122 MB / 0.5448 GB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.36e-05/0.869, allocations: 24 kB / 0.5448 GB, free: 15.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/0.869, allocations: 8 kB / 0.5448 GB, free: 15.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.979e-05/0.8691, allocations: 9.562 kB / 0.5448 GB, free: 15.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01919/0.8882, allocations: 10.37 MB / 0.555 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.628e-05/0.8883, allocations: 4 kB / 0.555 GB, free: 5.293 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00155/0.8899, allocations: 352 kB / 0.5553 GB, free: 4.949 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003711/0.8936, allocations: 1.144 MB / 0.5564 GB, free: 3.801 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001741/0.8938, allocations: 47.98 kB / 0.5565 GB, free: 3.754 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009878/0.9037, allocations: 7.128 MB / 0.5634 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.9037, allocations: 4 kB / 0.5634 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01117/0.9149, allocations: 6.907 MB / 0.5702 GB, free: 5.492 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001963/0.9169, allocations: 0.7301 MB / 0.5709 GB, free: 4.738 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006128/0.9175, allocations: 39.94 kB / 0.5709 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001627/0.9191, allocations: 115.9 kB / 0.571 GB, free: 4.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000383/0.9195, allocations: 141.1 kB / 0.5712 GB, free: 4.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001523/0.9197, allocations: 67.92 kB / 0.5712 GB, free: 4.383 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.004275/0.924, allocations: 2.818 MB / 0.574 GB, free: 1.562 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.924, allocations: 0 / 0.574 GB, free: 1.562 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.006498/0.9305, allocations: 1.222 MB / 0.5752 GB, free: 360 kB / 414.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.0006505/0.9312, allocations: 234.5 kB / 0.5754 GB, free: 132 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01191/0.9431, allocations: 6.849 MB / 0.5821 GB, free: 9.312 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/0.9431, allocations: 4 kB / 0.5821 GB, free: 9.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002772/0.9459, allocations: 1.868 MB / 0.5839 GB, free: 7.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003193/0.9491, allocations: 0.5366 MB / 0.5844 GB, free: 6.898 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02/0.9691, allocations: 11.19 MB / 0.5954 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004399/0.9736, allocations: 3.879 MB / 0.5992 GB, free: 7.707 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004831/0.9785, allocations: 1.926 MB / 0.601 GB, free: 5.773 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007832/0.9793, allocations: 275.4 kB / 0.6013 GB, free: 5.504 MB / 446.1 MB Notification: Performance of SimCode: time 1.112e-06/0.9793, allocations: 0 / 0.6013 GB, free: 5.504 MB / 446.1 MB Notification: Performance of Templates: time 0.2575/1.237, allocations: 45.9 MB / 0.6461 GB, free: 131 MB / 446.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)