Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") translateModel(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.000983/0.0009829, allocations: 187.8 kB / 8.351 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.468/1.468, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001722/0.001722, allocations: 110.5 kB / 248.1 MB, free: 6.336 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.837e-05/1.84e-05, allocations: 4 kB / 298.1 MB, free: 8.242 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.09516, allocations: 44.5 MB / 342.6 MB, free: 11.65 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.37/0.4652, allocations: 93.48 MB / 436.1 MB, free: 2.68 MB / 315.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/0.4655, allocations: 93.14 kB / 436.1 MB, free: 2.633 MB / 315.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.5528/1.018, allocations: 123.8 MB / 0.5468 GB, free: 68.71 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.893e-06/1.018, allocations: 2.781 kB / 0.5468 GB, free: 68.71 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0006426/1.019, allocations: 118.9 kB / 0.5469 GB, free: 68.71 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2237 * Number of variables: 2237 Notification: Performance of Generate backend data structure: time 0.02645/1.045, allocations: 6.318 MB / 0.5531 GB, free: 66.29 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/1.046, allocations: 9.406 kB / 0.5531 GB, free: 66.29 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03484/1.08, allocations: 8.313 MB / 0.5612 GB, free: 65.84 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02052/1.101, allocations: 7.257 MB / 0.5683 GB, free: 65.02 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004152/1.101, allocations: 189.8 kB / 0.5685 GB, free: 65.02 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003946/1.105, allocations: 351.5 kB / 0.5688 GB, free: 65.01 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02063/1.126, allocations: 10.11 MB / 0.5787 GB, free: 63.96 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03418/1.16, allocations: 14.05 MB / 0.5924 GB, free: 56.95 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004531/1.161, allocations: 71 kB / 0.5925 GB, free: 56.91 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00323/1.164, allocations: 34.97 kB / 0.5925 GB, free: 56.91 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002484/1.166, allocations: 1.62 MB / 0.5941 GB, free: 56.61 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0707/1.237, allocations: 61.39 MB / 0.654 GB, free: 19.71 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006255/1.244, allocations: 5.558 MB / 0.6595 GB, free: 13.92 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004902/1.248, allocations: 3.371 MB / 0.6628 GB, free: 10.54 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2748/1.523, allocations: 14.01 MB / 0.6764 GB, free: 78.53 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.143e-05/1.523, allocations: 62.25 kB / 0.6765 GB, free: 78.49 MB / 411.1 MB Notification: Performance of pre-optimization done (n=286): time 7.935e-06/1.523, allocations: 3.812 kB / 0.6765 GB, free: 78.49 MB / 411.1 MB Notification: Performance of matching and sorting (n=336): time 0.07417/1.598, allocations: 30.92 MB / 0.7067 GB, free: 75.4 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.163e-05/1.598, allocations: 214.6 kB / 0.7069 GB, free: 75.18 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007854/1.606, allocations: 4.273 MB / 0.7111 GB, free: 74.76 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007965/1.606, allocations: 25.7 kB / 0.7111 GB, free: 74.73 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003148/1.61, allocations: 4.515 MB / 0.7155 GB, free: 71.9 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002103/1.612, allocations: 1.213 MB / 0.7167 GB, free: 71 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005676/1.612, allocations: 1.125 kB / 0.7167 GB, free: 71 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0006588/1.613, allocations: 0.6944 MB / 0.7174 GB, free: 70.53 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006721/1.62, allocations: 4.372 MB / 0.7216 GB, free: 68.86 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008456/1.628, allocations: 9.546 MB / 0.731 GB, free: 60.23 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008268/1.636, allocations: 6.372 MB / 0.7372 GB, free: 58.12 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001361/1.637, allocations: 52.22 kB / 0.7372 GB, free: 58.12 MB / 411.1 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.03975/1.676, allocations: 17.65 MB / 0.7545 GB, free: 53.2 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001046/1.677, allocations: 81.66 kB / 0.7545 GB, free: 53.2 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001853/1.677, allocations: 183.9 kB / 0.7547 GB, free: 53.2 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02056/1.697, allocations: 5.635 MB / 0.7602 GB, free: 52.35 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007477/1.705, allocations: 2.132 MB / 0.7623 GB, free: 52.1 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02305/1.728, allocations: 21.61 MB / 0.7834 GB, free: 37.57 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008758/1.737, allocations: 384.8 kB / 0.7838 GB, free: 37.29 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001826/1.739, allocations: 0.5333 MB / 0.7843 GB, free: 36.78 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 840 * 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.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.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1105): * Single equations (assignments): 1097 * Array equations: 6 * 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%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00148/1.74, allocations: 0.5585 MB / 0.7848 GB, free: 36.21 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001102/1.741, allocations: 483.6 kB / 0.7853 GB, free: 35.74 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02591/1.767, allocations: 12.02 MB / 0.797 GB, free: 26.92 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.62e-05/1.767, allocations: 56 kB / 0.7971 GB, free: 26.87 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.885e-05/1.767, allocations: 10.62 kB / 0.7971 GB, free: 26.86 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.423e-05/1.767, allocations: 14.06 kB / 0.7971 GB, free: 26.86 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04376/1.811, allocations: 22.48 MB / 0.8191 GB, free: 4.391 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-05/1.811, allocations: 4 kB / 0.8191 GB, free: 4.387 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002989/1.814, allocations: 0.5655 MB / 0.8196 GB, free: 3.82 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.227/2.041, allocations: 4.629 MB / 0.8241 GB, free: 67.92 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000606/2.042, allocations: 10.03 kB / 0.8241 GB, free: 67.92 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01947/2.061, allocations: 17.32 MB / 0.8411 GB, free: 65.38 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.137e-06/2.061, allocations: 15.28 kB / 0.8411 GB, free: 65.38 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03245/2.094, allocations: 16.96 MB / 0.8576 GB, free: 62.67 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003146/2.097, allocations: 1.176 MB / 0.8588 GB, free: 62.3 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001092/2.098, allocations: 9.625 kB / 0.8588 GB, free: 62.3 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002958/2.101, allocations: 205 kB / 0.859 GB, free: 62.3 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005168/2.102, allocations: 191.8 kB / 0.8592 GB, free: 62.27 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002562/2.102, allocations: 82.72 kB / 0.8593 GB, free: 62.25 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.005084/2.107, allocations: 2.845 MB / 0.862 GB, free: 61.24 MB / 411.1 MB Notification: Performance of sort global known variables: time 2.11e-07/2.107, allocations: 1.906 kB / 0.862 GB, free: 61.24 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.01021/2.117, allocations: 1.487 MB / 0.8635 GB, free: 61.24 MB / 411.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (251): * Single equations (assignments): 243 * Array equations: 6 * 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.0008081/2.118, allocations: 168.8 kB / 0.8636 GB, free: 61.15 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.01276/2.131, allocations: 9.982 MB / 0.8734 GB, free: 57.74 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/2.131, allocations: 0.8438 kB / 0.8734 GB, free: 57.74 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004412/2.135, allocations: 3.81 MB / 0.8771 GB, free: 56.14 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/2.139, allocations: 463 kB / 0.8776 GB, free: 55.95 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02172/2.161, allocations: 13.3 MB / 0.8905 GB, free: 51.13 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004389/2.165, allocations: 4.747 MB / 0.8952 GB, free: 49.55 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.006849/2.172, allocations: 3.078 MB / 0.8982 GB, free: 49.5 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001281/2.173, allocations: 339.3 kB / 0.8985 GB, free: 49.49 MB / 411.1 MB Notification: Performance of SimCode: time 1.123e-06/2.173, allocations: 4.719 kB / 0.8985 GB, free: 49.49 MB / 411.1 MB Notification: Performance of Templates: time 0.09768/2.271, allocations: 67.55 MB / 0.9645 GB, free: 15.25 MB / 427.1 MB make -j1 -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.makefile (rm -f Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; mkfifo Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe >> ../files/Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.sim & ./Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2.pipe 2>&1)