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.8074/0.8074, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001955/0.001955, allocations: 159.4 kB / 144 MB, free: 4.789 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.402e-05/1.398e-05, allocations: 4 kB / 173.9 MB, free: 22.79 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04538/0.04541, allocations: 25.18 MB / 199 MB, free: 13.69 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1983/0.2438, allocations: 52.28 MB / 251.3 MB, free: 21.26 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002175/0.2441, allocations: 75.47 kB / 251.4 MB, free: 21.26 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9591/1.203, allocations: 268.8 MB / 0.508 GB, free: 1.453 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.713e-06/1.203, allocations: 0 / 0.508 GB, free: 1.453 MB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0004668/1.204, allocations: 167.9 kB / 0.5082 GB, free: 1.289 MB / 234.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.0517/1.255, allocations: 12.21 MB / 0.5201 GB, free: 4.988 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/1.255, allocations: 12.03 kB / 0.5201 GB, free: 4.977 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5263/1.782, allocations: 43.05 MB / 0.5622 GB, free: 24.52 MB / 250.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02698/1.809, allocations: 10.47 MB / 0.5724 GB, free: 24.09 MB / 250.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006495/1.809, allocations: 292 kB / 0.5727 GB, free: 24.09 MB / 250.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008324/1.818, allocations: 478.8 kB / 0.5731 GB, free: 24.09 MB / 250.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04576/1.864, allocations: 26.19 MB / 0.5987 GB, free: 12.02 MB / 250.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0681/1.932, allocations: 28.28 MB / 0.6263 GB, free: 0.8047 MB / 266.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003633/1.932, allocations: 58.59 kB / 0.6264 GB, free: 0.7695 MB / 266.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005482/1.938, allocations: 20 kB / 0.6264 GB, free: 0.75 MB / 266.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.243/2.181, allocations: 15.7 MB / 0.6417 GB, free: 37.85 MB / 266.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8786/3.059, allocations: 199.3 MB / 0.8363 GB, free: 0.9766 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1821/3.241, allocations: 10.7 MB / 0.8468 GB, free: 47.83 MB / 282.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008946/3.25, allocations: 6.685 MB / 0.8533 GB, free: 47.71 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1722/3.423, allocations: 54.62 MB / 0.9066 GB, free: 41.18 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.933e-05/3.423, allocations: 82.84 kB / 0.9067 GB, free: 41.11 MB / 282.8 MB Notification: Performance of pre-optimization done (n=454): time 9.858e-06/3.423, allocations: 7.422 kB / 0.9067 GB, free: 41.11 MB / 282.8 MB Notification: Performance of matching and sorting (n=504): time 0.255/3.678, allocations: 38.57 MB / 0.9444 GB, free: 44.56 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.678e-05/3.678, allocations: 229.8 kB / 0.9446 GB, free: 44.34 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01177/3.69, allocations: 5.747 MB / 0.9502 GB, free: 44.01 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0017/3.691, allocations: 25.7 kB / 0.9502 GB, free: 43.98 MB / 282.8 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.003465/3.695, allocations: 5.979 MB / 0.9561 GB, free: 41.1 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002769/3.698, allocations: 1.785 MB / 0.9578 GB, free: 40.02 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/3.699, allocations: 5.156 kB / 0.9578 GB, free: 40.02 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.0006179/3.7, allocations: 0.848 MB / 0.9587 GB, free: 39.68 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01049/3.71, allocations: 7.858 MB / 0.9663 GB, free: 39.62 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01397/3.724, allocations: 14.26 MB / 0.9803 GB, free: 30.59 MB / 282.8 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.1086/3.833, allocations: 28.41 MB / 1.008 GB, free: 27.22 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003202/3.833, allocations: 75.41 kB / 1.008 GB, free: 27.21 MB / 282.8 MB Notification: Performance of matching and sorting (n=1664) (initialization): time 0.05579/3.889, allocations: 24.74 MB / 1.032 GB, free: 19.86 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001918/3.889, allocations: 113 kB / 1.032 GB, free: 19.86 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003344/3.889, allocations: 252.7 kB / 1.033 GB, free: 19.64 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02417/3.914, allocations: 6.452 MB / 1.039 GB, free: 15.4 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1718/4.086, allocations: 3.035 MB / 1.042 GB, free: 37.12 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02994/4.115, allocations: 24.97 MB / 1.066 GB, free: 34.56 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02153/4.137, allocations: 2.79 MB / 1.069 GB, free: 34.56 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003884/4.141, allocations: 1.025 MB / 1.07 GB, free: 34.56 MB / 282.8 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: 1134 * 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 (1528): * Single equations (assignments): 1505 * 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.00513/4.146, allocations: 0.7108 MB / 1.071 GB, free: 34.36 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002145/4.148, allocations: 0.5981 MB / 1.071 GB, free: 34.36 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03159/4.18, allocations: 14.34 MB / 1.085 GB, free: 30.37 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0184/4.198, allocations: 4.393 MB / 1.09 GB, free: 30.37 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-05/4.198, allocations: 12.38 kB / 1.09 GB, free: 30.37 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001621/4.199, allocations: 24.61 kB / 1.09 GB, free: 30.37 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1108/4.309, allocations: 41.51 MB / 1.13 GB, free: 11.88 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.926e-05/4.31, allocations: 4 kB / 1.13 GB, free: 11.88 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004766/4.314, allocations: 0.8203 MB / 1.131 GB, free: 11.1 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01741/4.332, allocations: 4.093 MB / 1.135 GB, free: 7.02 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001646/4.333, allocations: 135.8 kB / 1.135 GB, free: 6.887 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1866/4.52, allocations: 15.94 MB / 1.151 GB, free: 34.14 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/4.52, allocations: 9.531 kB / 1.151 GB, free: 34.14 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04398/4.564, allocations: 24.63 MB / 1.175 GB, free: 30.69 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005747/4.57, allocations: 2.016 MB / 1.177 GB, free: 30.07 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002721/4.573, allocations: 11.11 kB / 1.177 GB, free: 30.07 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01544/4.588, allocations: 2.442 MB / 1.179 GB, free: 30.07 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001498/4.59, allocations: 272.5 kB / 1.179 GB, free: 30.02 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001378/4.591, allocations: 380.3 kB / 1.18 GB, free: 29.99 MB / 282.8 MB Notification: Performance of sorting global known variables: time 0.009407/4.6, allocations: 3.807 MB / 1.183 GB, free: 28.6 MB / 282.8 MB Notification: Performance of sort global known variables: time 5.01e-07/4.6, allocations: 0 / 1.183 GB, free: 28.6 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.01897/4.619, allocations: 2.142 MB / 1.185 GB, free: 28.6 MB / 282.8 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.002034/4.622, allocations: 177.9 kB / 1.186 GB, free: 28.51 MB / 282.8 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.02996/4.652, allocations: 16.39 MB / 1.202 GB, free: 22.87 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/4.652, allocations: 0 / 1.202 GB, free: 22.87 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 0.007689/4.659, allocations: 6.425 MB / 1.208 GB, free: 20.3 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003936/4.663, allocations: 0.5051 MB / 1.208 GB, free: 20.06 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0298/4.693, allocations: 19.05 MB / 1.227 GB, free: 6.156 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006949/4.7, allocations: 6.205 MB / 1.233 GB, free: 1.621 MB / 282.8 MB Notification: Performance of simCode: alias equations: time 0.01903/4.719, allocations: 5.407 MB / 1.238 GB, free: 14.59 MB / 298.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00519/4.724, allocations: 0.9584 MB / 1.239 GB, free: 13.88 MB / 298.8 MB Notification: Performance of SimCode: time 8.42e-07/4.724, allocations: 4 kB / 1.239 GB, free: 13.88 MB / 298.8 MB Notification: Performance of Templates: time 0.4854/5.21, allocations: 119 MB / 1.356 GB, free: 41.51 MB / 298.8 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)