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.7984/0.7984, allocations: 110.8 MB / 123.3 MB, free: 10.73 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001505/0.001505, allocations: 155.4 kB / 149.1 MB, free: 0.9492 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.402e-05/2.404e-05, allocations: 8 kB / 180.2 MB, free: 17.55 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0514/0.05144, allocations: 25.18 MB / 205.4 MB, free: 8.418 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2299/0.2814, allocations: 52.94 MB / 258.3 MB, free: 16.36 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.2817, allocations: 79.58 kB / 258.4 MB, free: 16.35 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.218/1.5, allocations: 272.3 MB / 0.5182 GB, free: 22.53 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.565e-06/1.5, allocations: 0 / 0.5182 GB, free: 22.53 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0005286/1.5, allocations: 164.1 kB / 0.5184 GB, free: 22.53 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.05279/1.553, allocations: 12.21 MB / 0.5303 GB, free: 20.71 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.366e-05/1.553, allocations: 8.938 kB / 0.5303 GB, free: 20.71 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2018/1.755, allocations: 43.06 MB / 0.5724 GB, free: 19.12 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03783/1.793, allocations: 10.48 MB / 0.5826 GB, free: 12.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001304/1.794, allocations: 0.6378 MB / 0.5832 GB, free: 12.26 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01033/1.804, allocations: 0.82 MB / 0.584 GB, free: 11.72 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08397/1.888, allocations: 30.15 MB / 0.6135 GB, free: 2.539 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007308/1.889, allocations: 53.73 kB / 0.6135 GB, free: 2.508 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0093/1.899, allocations: 370.9 kB / 0.6139 GB, free: 2.211 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.2738/2.172, allocations: 15.7 MB / 0.6292 GB, free: 34.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06173/2.234, allocations: 32.66 MB / 0.6611 GB, free: 34.1 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 1.142/3.376, allocations: 202.6 MB / 0.859 GB, free: 24 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01841/3.394, allocations: 10.92 MB / 0.8697 GB, free: 22.55 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009542/3.404, allocations: 6.84 MB / 0.8763 GB, free: 22.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1777/3.582, allocations: 55.03 MB / 0.9301 GB, free: 9.344 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.713e-05/3.582, allocations: 82.58 kB / 0.9301 GB, free: 9.262 MB / 298.7 MB Notification: Performance of pre-optimization done (n=454): time 9.938e-06/3.582, allocations: 0 / 0.9301 GB, free: 9.262 MB / 298.7 MB Notification: Performance of matching and sorting (n=504): time 0.2854/3.867, allocations: 37.25 MB / 0.9665 GB, free: 57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/3.867, allocations: 228.6 kB / 0.9667 GB, free: 56.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01936/3.887, allocations: 6.541 MB / 0.9731 GB, free: 56.22 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.002214/3.889, allocations: 99.89 kB / 0.9732 GB, free: 56.19 MB / 298.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.006381/3.895, allocations: 5.883 MB / 0.979 GB, free: 52.91 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004267/3.9, allocations: 1.835 MB / 0.9808 GB, free: 51.83 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002797/3.903, allocations: 240.8 kB / 0.981 GB, free: 51.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.001187/3.904, allocations: 0.8311 MB / 0.9818 GB, free: 51.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02353/3.927, allocations: 7.998 MB / 0.9896 GB, free: 49.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02721/3.955, allocations: 14.21 MB / 1.003 GB, free: 38.18 MB / 298.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.1957/4.15, allocations: 28.56 MB / 1.031 GB, free: 30.46 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004702/4.151, allocations: 68 kB / 1.031 GB, free: 30.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=1615) (initialization): time 0.2477/4.399, allocations: 26.31 MB / 1.057 GB, free: 47.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001852/4.399, allocations: 108.1 kB / 1.057 GB, free: 47.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003884/4.399, allocations: 241.3 kB / 1.057 GB, free: 47.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02491/4.424, allocations: 6.45 MB / 1.064 GB, free: 47.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0117/4.436, allocations: 2.945 MB / 1.067 GB, free: 47.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03345/4.469, allocations: 26.85 MB / 1.093 GB, free: 41.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0225/4.492, allocations: 3.009 MB / 1.096 GB, free: 41.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004178/4.496, allocations: 1.005 MB / 1.097 GB, free: 41.26 MB / 298.7 MB Warning: Assuming fixed start value for the following 1 variables: universalSpherical.rodLength:VARIABLE(min = 0.0 start = 1.048808848170152 unit = "m" fixed = false 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 () * 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.005664/4.502, allocations: 0.992 MB / 1.098 GB, free: 40.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002356/4.504, allocations: 0.6494 MB / 1.098 GB, free: 40.84 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03343/4.538, allocations: 14.67 MB / 1.113 GB, free: 36.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01823/4.556, allocations: 4.401 MB / 1.117 GB, free: 36.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-05/4.556, allocations: 13.5 kB / 1.117 GB, free: 36.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001385/4.556, allocations: 20.86 kB / 1.117 GB, free: 36.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3055/4.862, allocations: 43.36 MB / 1.159 GB, free: 49.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.441e-05/4.862, allocations: 3.125 kB / 1.159 GB, free: 49.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005029/4.867, allocations: 0.8226 MB / 1.16 GB, free: 49.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01695/4.884, allocations: 4.101 MB / 1.164 GB, free: 49.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00241/4.886, allocations: 199.1 kB / 1.164 GB, free: 49.11 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02122/4.908, allocations: 17.31 MB / 1.181 GB, free: 46.43 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.325e-06/4.908, allocations: 9.281 kB / 1.181 GB, free: 46.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04491/4.952, allocations: 25.04 MB / 1.206 GB, free: 38 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006655/4.959, allocations: 2.08 MB / 1.208 GB, free: 37.37 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002573/4.962, allocations: 79.39 kB / 1.208 GB, free: 37.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01612/4.978, allocations: 2.512 MB / 1.21 GB, free: 37.27 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001792/4.98, allocations: 271.8 kB / 1.211 GB, free: 37.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001221/4.981, allocations: 376.1 kB / 1.211 GB, free: 37.2 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.009352/4.99, allocations: 4.523 MB / 1.215 GB, free: 35.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.282e-06/4.99, allocations: 2.281 kB / 1.215 GB, free: 35.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.01626/5.007, allocations: 2.449 MB / 1.218 GB, free: 35.39 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 () * 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.002288/5.009, allocations: 249.6 kB / 1.218 GB, free: 35.25 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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.02431/5.033, allocations: 16.89 MB / 1.234 GB, free: 21.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/5.033, allocations: 4 kB / 1.234 GB, free: 21.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008852/5.042, allocations: 6.535 MB / 1.241 GB, free: 15.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004503/5.047, allocations: 0.6253 MB / 1.241 GB, free: 15.13 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2123/5.259, allocations: 19.3 MB / 1.26 GB, free: 44.17 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008845/5.268, allocations: 6.218 MB / 1.266 GB, free: 43.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.01751/5.285, allocations: 5.138 MB / 1.271 GB, free: 43.17 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005691/5.291, allocations: 0.9778 MB / 1.272 GB, free: 43.11 MB / 298.7 MB Notification: Performance of SimCode: time 9.91e-07/5.291, allocations: 0 / 1.272 GB, free: 43.11 MB / 298.7 MB Notification: Performance of Templates: time 0.3729/5.664, allocations: 125.4 MB / 1.395 GB, free: 53.5 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)