Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.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.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 108 kB / 15.61 MB, free: 128 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.001515/0.001515, allocations: 197.5 kB / 16.53 MB, free: 6.672 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.499/1.499, allocations: 205.1 MB / 222.4 MB, free: 4.625 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.001224/0.001224, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2607, allocations: 46.63 MB / 325.3 MB, free: 1.855 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.01663/0.2774, allocations: 15.06 MB / 340.4 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.289, allocations: 4.817 MB / 345.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003631/0.2927, allocations: 95.75 kB / 345.3 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006437/0.2992, allocations: 3.165 MB / 348.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007685/0.3069, allocations: 2.556 MB / 351 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002572/0.3095, allocations: 0.9905 MB / 352 MB, free: 9.129 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01064/0.3201, allocations: 6.651 MB / 358.7 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00617/0.3263, allocations: 4.35 MB / 363 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004564/0.3309, allocations: 2.239 MB / 365.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00521/0.3362, allocations: 3.244 MB / 368.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001654/0.3379, allocations: 484 kB / 369 MB, free: 8.078 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003507/0.3414, allocations: 1.494 MB / 370.5 MB, free: 6.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003184/0.3446, allocations: 2.86 MB / 373.3 MB, free: 3.715 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004517/0.3491, allocations: 3.254 MB / 376.6 MB, free: 452 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0151/0.3643, allocations: 10.07 MB / 386.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.3643, allocations: 0 / 386.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3643, allocations: 0 / 386.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004247/0.3648, allocations: 0 / 386.6 MB, free: 6.332 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: 2242 * Number of variables: 2242 Notification: Performance of Generate backend data structure: time 0.02158/0.3864, allocations: 7.299 MB / 393.9 MB, free: 14.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3864, allocations: 12.03 kB / 393.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01648/0.4029, allocations: 3.942 MB / 397.9 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01157/0.4145, allocations: 4.2 MB / 402.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003824/0.415, allocations: 324.4 kB / 402.4 MB, free: 6.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002272/0.4172, allocations: 431.6 kB / 402.8 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03236/0.4496, allocations: 15.72 MB / 418.5 MB, free: 5.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002143/0.4499, allocations: 59.42 kB / 418.6 MB, free: 5.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009217/0.4508, allocations: 211.8 kB / 418.8 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005345/0.4562, allocations: 3.208 MB / 422 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02945/0.4856, allocations: 14.13 MB / 436.1 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3052/0.7909, allocations: 57.77 MB / 493.9 MB, free: 65.97 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01281/0.8038, allocations: 6.56 MB / 0.4888 GB, free: 63.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004148/0.808, allocations: 3.676 MB / 0.4923 GB, free: 61.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01923/0.8272, allocations: 14.66 MB / 0.5067 GB, free: 51.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.21e-05/0.8273, allocations: 60.03 kB / 0.5067 GB, free: 51.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=289): time 7.214e-06/0.8274, allocations: 0 / 0.5067 GB, free: 51.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=339): time 0.1453/0.9727, allocations: 42.39 MB / 0.5481 GB, free: 8.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.205e-05/0.9728, allocations: 210 kB / 0.5483 GB, free: 8.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007068/0.9799, allocations: 5.498 MB / 0.5537 GB, free: 2.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009062/0.9809, allocations: 69.7 kB / 0.5538 GB, free: 2.855 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002794/0.9837, allocations: 4.358 MB / 0.558 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002293/0.986, allocations: 1.265 MB / 0.5592 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003619/0.9896, allocations: 1.844 MB / 0.561 GB, free: 11.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.9898, allocations: 305.1 kB / 0.5613 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007438/0.9972, allocations: 4.808 MB / 0.566 GB, free: 6.227 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01446/1.012, allocations: 9.798 MB / 0.5756 GB, free: 9.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02276/1.035, allocations: 15.58 MB / 0.5908 GB, free: 7.93 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000185/1.035, allocations: 52 kB / 0.5909 GB, free: 7.879 MB / 430.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.05193/1.087, allocations: 19.56 MB / 0.61 GB, free: 4.27 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001504/1.087, allocations: 84.03 kB / 0.61 GB, free: 4.188 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002721/1.087, allocations: 172 kB / 0.6102 GB, free: 4.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2628/1.35, allocations: 5.942 MB / 0.616 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00832/1.358, allocations: 2.114 MB / 0.6181 GB, free: 152.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02997/1.388, allocations: 26.15 MB / 0.6436 GB, free: 141.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00838/1.397, allocations: 0.5591 MB / 0.6442 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001796/1.399, allocations: 0.5082 MB / 0.6447 GB, free: 141.2 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 791 * Number of states: 0 () * Number of discrete variables: 45 (fixedFrame.color_x[3],fixedFrame.color_x[2],fixedFrame.color_x[1],b3.color[3],b3.color[2],b3.color[1],universalSpherical.cylinderColor[3],universalSpherical.cylinderColor[2],universalSpherical.cylinderColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.sphereColor[1],universalSpherical.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[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 (1098): * Single equations (assignments): 1090 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,42,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006034/1.405, allocations: 3.099 MB / 0.6477 GB, free: 138.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001182/1.406, allocations: 0.4953 MB / 0.6482 GB, free: 138.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02915/1.435, allocations: 12.94 MB / 0.6608 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.814e-05/1.435, allocations: 55.84 kB / 0.6609 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/1.435, allocations: 8 kB / 0.6609 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000107/1.435, allocations: 19.94 kB / 0.6609 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04807/1.483, allocations: 24.59 MB / 0.6849 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.649e-05/1.483, allocations: 4.875 kB / 0.6849 GB, free: 100.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003285/1.487, allocations: 0.5803 MB / 0.6855 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01937/1.506, allocations: 4.96 MB / 0.6903 GB, free: 95.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008243/1.507, allocations: 63.92 kB / 0.6904 GB, free: 95.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02299/1.53, allocations: 21.35 MB / 0.7112 GB, free: 73.56 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.53, allocations: 8 kB / 0.7112 GB, free: 73.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03416/1.564, allocations: 17.45 MB / 0.7283 GB, free: 56.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003632/1.568, allocations: 1.24 MB / 0.7295 GB, free: 54.96 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0015/1.569, allocations: 59.98 kB / 0.7295 GB, free: 54.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003836/1.573, allocations: 259.5 kB / 0.7298 GB, free: 54.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000936/1.574, allocations: 197.6 kB / 0.73 GB, free: 54.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002802/1.575, allocations: 87.98 kB / 0.7301 GB, free: 54.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005177/1.58, allocations: 3.418 MB / 0.7334 GB, free: 50.98 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.58, allocations: 0 / 0.7334 GB, free: 50.98 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.008686/1.588, allocations: 1.753 MB / 0.7351 GB, free: 49.23 MB / 446.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 (254): * Single equations (assignments): 246 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009246/1.589, allocations: 212.9 kB / 0.7353 GB, free: 49.02 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02451/1.614, allocations: 15.74 MB / 0.7507 GB, free: 33.35 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-05/1.614, allocations: 0 / 0.7507 GB, free: 33.35 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005838/1.62, allocations: 4.102 MB / 0.7547 GB, free: 29.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00524/1.625, allocations: 0.6254 MB / 0.7553 GB, free: 28.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02652/1.652, allocations: 16.21 MB / 0.7711 GB, free: 12.31 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2024/1.854, allocations: 4.626 MB / 0.7756 GB, free: 145.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.008011/1.862, allocations: 2.97 MB / 0.7785 GB, free: 145.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/1.863, allocations: 360 kB / 0.7789 GB, free: 145.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.272e-06/1.863, allocations: 0 / 0.7789 GB, free: 145.8 MB / 446.1 MB Notification: Performance of Templates: time 0.1256/1.989, allocations: 81.15 MB / 0.8581 GB, free: 80.02 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)