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/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.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/Modelica 3.1.0+maint.om/package.mo): time 0.6651/0.6651, allocations: 110.9 MB / 125.9 MB, free: 6.215 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001645/0.001645, allocations: 150.5 kB / 151.9 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000255/0.000255, allocations: 4 kB / 184.9 MB, free: 3.922 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1345, allocations: 25.15 MB / 210.1 MB, free: 29.73 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06232/0.1969, allocations: 53.05 MB / 263.1 MB, free: 12.76 MB / 202.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002218/0.1972, allocations: 75.95 kB / 263.2 MB, free: 12.68 MB / 202.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.021/1.219, allocations: 272.5 MB / 0.5231 GB, free: 24.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.685e-06/1.219, allocations: 0 / 0.5231 GB, free: 24.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0003421/1.219, allocations: 163.1 kB / 0.5233 GB, free: 24.13 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3137 * Number of variables: 3137 Notification: Performance of Generate backend data structure: time 0.04564/1.265, allocations: 12.66 MB / 0.5357 GB, free: 20.54 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/1.265, allocations: 10.34 kB / 0.5357 GB, free: 20.54 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1805/1.445, allocations: 43.14 MB / 0.5778 GB, free: 7.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1877/1.633, allocations: 10.51 MB / 0.5881 GB, free: 35.16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000956/1.634, allocations: 0.6334 MB / 0.5887 GB, free: 35.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009125/1.643, allocations: 0.8145 MB / 0.5895 GB, free: 35.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1497/1.793, allocations: 47.19 MB / 0.6356 GB, free: 31.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004762/1.793, allocations: 56.8 kB / 0.6356 GB, free: 31.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007117/1.8, allocations: 370.3 kB / 0.636 GB, free: 31.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.05975/1.86, allocations: 15.7 MB / 0.6513 GB, free: 30.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3236/2.184, allocations: 51.34 MB / 0.7014 GB, free: 29.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8651/3.049, allocations: 202.6 MB / 0.8993 GB, free: 1.98 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1928/3.242, allocations: 16.85 MB / 0.9158 GB, free: 44.64 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1709/3.413, allocations: 55.03 MB / 0.9695 GB, free: 39.66 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.832e-05/3.413, allocations: 77.45 kB / 0.9696 GB, free: 39.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=454): time 8.015e-06/3.413, allocations: 0 / 0.9696 GB, free: 39.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=504): time 0.3591/3.772, allocations: 68.92 MB / 1.037 GB, free: 39.98 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.679e-05/3.772, allocations: 236.4 kB / 1.037 GB, free: 39.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01201/3.784, allocations: 6.658 MB / 1.044 GB, free: 39.24 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001523/3.786, allocations: 94.47 kB / 1.044 GB, free: 39.21 MB / 282.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Mechanics/MultiBody/Joints.mo:2345:5-2348:81:writable] Warning: The parameter universalSpherical.rodLength has fixed = false and a binding equation universalSpherical.rodLength = 1.048808848170152, which is probably redundant. The binding equation will be ignored, as it is expected for Modelica 3.1. Notification: Performance of collectInitialEqns (initialization): time 0.003662/3.789, allocations: 5.881 MB / 1.049 GB, free: 35.88 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002653/3.792, allocations: 1.837 MB / 1.051 GB, free: 34.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001611/3.794, allocations: 239.4 kB / 1.051 GB, free: 34.79 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0007112/3.794, allocations: 0.8348 MB / 1.052 GB, free: 34.46 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03306/3.828, allocations: 13.39 MB / 1.065 GB, free: 32.21 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.03464/3.862, allocations: 19.59 MB / 1.084 GB, free: 20.48 MB / 282.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.2774/4.14, allocations: 35.61 MB / 1.119 GB, free: 34.05 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002804/4.14, allocations: 67.91 kB / 1.119 GB, free: 34.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=1615) (initialization): time 0.09761/4.238, allocations: 35.99 MB / 1.154 GB, free: 32.39 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001826/4.238, allocations: 108.9 kB / 1.155 GB, free: 32.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004098/4.238, allocations: 246.5 kB / 1.155 GB, free: 32.39 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02305/4.261, allocations: 6.458 MB / 1.161 GB, free: 32.11 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01053/4.272, allocations: 2.947 MB / 1.164 GB, free: 31.78 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03054/4.302, allocations: 27.86 MB / 1.191 GB, free: 9.598 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02109/4.324, allocations: 3.022 MB / 1.194 GB, free: 6.617 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003168/4.327, allocations: 0.9927 MB / 1.195 GB, free: 5.625 MB / 282.7 MB Warning: Assuming fixed start value for the following 1 variables: universalSpherical.rodLength:VARIABLE(min = 0.0 start = 1.048808848170152 unit = "m" fixed = true final = true ) "Length of rod (distance between origin of frame_a and origin of frame_b)" type: Real Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: j1.phi = $START.j1.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1086 * Number of states: 0 () * Number of discrete variables: 42 (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.rodColor[3],universalSpherical.rodColor[2],universalSpherical.rodColor[1],universalSpherical.sphereColor[3],universalSpherical.sphereColor[2],universalSpherical.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.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 (1479): * Single equations (assignments): 1456 * Array equations: 21 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 1 {1 15} Notification: Performance of prepare postOptimizeDAE: time 0.008974/4.336, allocations: 4.122 MB / 1.199 GB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001731/4.338, allocations: 0.6451 MB / 1.2 GB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.193/4.531, allocations: 19.78 MB / 1.219 GB, free: 48.22 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01898/4.55, allocations: 4.402 MB / 1.223 GB, free: 48.22 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.389e-05/4.55, allocations: 15.83 kB / 1.223 GB, free: 48.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001342/4.55, allocations: 21.02 kB / 1.223 GB, free: 48.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1297/4.68, allocations: 48.44 MB / 1.271 GB, free: 43.2 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.497e-05/4.68, allocations: 10.66 kB / 1.271 GB, free: 43.2 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004489/4.684, allocations: 0.8167 MB / 1.272 GB, free: 43.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01595/4.7, allocations: 4.109 MB / 1.276 GB, free: 42.34 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001417/4.702, allocations: 198 kB / 1.276 GB, free: 42.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01895/4.721, allocations: 17.92 MB / 1.293 GB, free: 25.34 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/4.721, allocations: 10.62 kB / 1.293 GB, free: 25.33 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2412/4.962, allocations: 40.02 MB / 1.332 GB, free: 44.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007438/4.969, allocations: 2.079 MB / 1.334 GB, free: 44.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002962/4.972, allocations: 78.69 kB / 1.334 GB, free: 44.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01446/4.987, allocations: 2.509 MB / 1.337 GB, free: 44.6 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001576/4.988, allocations: 273.2 kB / 1.337 GB, free: 44.6 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001162/4.99, allocations: 377.3 kB / 1.338 GB, free: 44.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.01007/5, allocations: 4.65 MB / 1.342 GB, free: 44.38 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.934e-06/5, allocations: 2.469 kB / 1.342 GB, free: 44.38 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.01358/5.013, allocations: 2.451 MB / 1.344 GB, free: 44.38 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 24 * 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 (389): * Single equations (assignments): 366 * Array equations: 21 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00137/5.015, allocations: 246.2 kB / 1.345 GB, free: 44.3 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Mechanics/MultiBody/Joints.mo:269:5-279:3:writable] Warning: Variable j1.phi has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.06594/5.081, allocations: 27.57 MB / 1.372 GB, free: 41.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/5.081, allocations: 3.562 kB / 1.372 GB, free: 41.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02989/5.111, allocations: 11.82 MB / 1.383 GB, free: 35.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004299/5.115, allocations: 0.6195 MB / 1.384 GB, free: 35.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1897/5.305, allocations: 31.04 MB / 1.414 GB, free: 41.23 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009235/5.314, allocations: 6.219 MB / 1.42 GB, free: 40.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.01599/5.33, allocations: 5.136 MB / 1.425 GB, free: 40.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004839/5.335, allocations: 0.9805 MB / 1.426 GB, free: 40.14 MB / 298.7 MB Notification: Performance of SimCode: time 1.152e-06/5.335, allocations: 4 kB / 1.426 GB, free: 40.14 MB / 298.7 MB Notification: Performance of Templates: time 0.3274/5.662, allocations: 125.5 MB / 1.549 GB, free: 44.27 MB / 314.7 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)