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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001137, allocations: 102.4 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.45/1.45, allocations: 205.1 MB / 223.3 MB, free: 12.48 MB / 190.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.001176/0.001176, allocations: 55.92 kB / 279.3 MB, free: 3.594 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1098/0.1109, allocations: 46.63 MB / 326 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Loops.Fourbar2): time 0.2508/0.3618, allocations: 53.47 MB / 379.4 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02845/0.3903, allocations: 11.22 MB / 390.7 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01533/0.4057, allocations: 230.7 kB / 390.9 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007201/0.413, allocations: 3.127 MB / 394 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008821/0.4219, allocations: 2.411 MB / 396.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003258/0.4252, allocations: 0.9213 MB / 397.3 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01366/0.4388, allocations: 9.427 MB / 406.8 MB, free: 2.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007493/0.4464, allocations: 4.273 MB / 411 MB, free: 444 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005538/0.452, allocations: 1.973 MB / 413 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006552/0.4586, allocations: 3.43 MB / 416.4 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001591/0.4602, allocations: 332 kB / 416.8 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004164/0.4644, allocations: 1.423 MB / 418.2 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003722/0.4681, allocations: 2.765 MB / 421 MB, free: 8.613 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005368/0.4735, allocations: 3.122 MB / 424.1 MB, free: 5.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01373/0.4872, allocations: 9.933 MB / 434 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.005e-05/0.4873, allocations: 3.984 kB / 434 MB, free: 11.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.796e-06/0.4873, allocations: 0 / 434 MB, free: 11.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004236/0.4878, allocations: 0 / 434 MB, free: 11.78 MB / 350.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.02105/0.5088, allocations: 7.294 MB / 441.3 MB, free: 4.559 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.482e-05/0.5089, allocations: 16.02 kB / 441.3 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01662/0.5255, allocations: 3.94 MB / 445.3 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/0.536, allocations: 4.203 MB / 449.5 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002972/0.5364, allocations: 324.9 kB / 449.8 MB, free: 12.11 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00207/0.5384, allocations: 427.2 kB / 450.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03222/0.5707, allocations: 15.72 MB / 465.9 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002172/0.5709, allocations: 59.44 kB / 466 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007152/0.5717, allocations: 202.8 kB / 466.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005276/0.577, allocations: 3.221 MB / 469.4 MB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03055/0.6075, allocations: 14.12 MB / 483.5 MB, free: 9.727 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08526/0.6928, allocations: 57.78 MB / 0.5286 GB, free: 14.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0139/0.7068, allocations: 6.558 MB / 0.535 GB, free: 7.891 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004884/0.7117, allocations: 3.695 MB / 0.5386 GB, free: 4.184 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2396/0.9513, allocations: 14.63 MB / 0.5529 GB, free: 174.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.717e-05/0.9514, allocations: 65.97 kB / 0.553 GB, free: 174.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=289): time 7.153e-06/0.9514, allocations: 5.156 kB / 0.553 GB, free: 174.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=339): time 0.1325/1.084, allocations: 42.38 MB / 0.5944 GB, free: 146.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001083/1.084, allocations: 221.9 kB / 0.5946 GB, free: 146.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007434/1.091, allocations: 5.498 MB / 0.5999 GB, free: 141.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00109/1.093, allocations: 69.7 kB / 0.6 GB, free: 141.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002317/1.095, allocations: 4.351 MB / 0.6043 GB, free: 136.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001689/1.097, allocations: 1.258 MB / 0.6055 GB, free: 135.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002433/1.099, allocations: 1.856 MB / 0.6073 GB, free: 133.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.188e-05/1.099, allocations: 305.1 kB / 0.6076 GB, free: 133.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005465/1.105, allocations: 4.804 MB / 0.6123 GB, free: 128.5 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007358/1.112, allocations: 9.811 MB / 0.6219 GB, free: 116.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01526/1.127, allocations: 15.57 MB / 0.6371 GB, free: 98.21 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001799/1.128, allocations: 52 kB / 0.6371 GB, free: 98.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=1189) (initialization): time 0.04155/1.169, allocations: 19.56 MB / 0.6562 GB, free: 78.55 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002852/1.169, allocations: 83.98 kB / 0.6563 GB, free: 78.47 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003708/1.17, allocations: 176 kB / 0.6565 GB, free: 78.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02066/1.19, allocations: 5.93 MB / 0.6623 GB, free: 72.36 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007682/1.198, allocations: 2.117 MB / 0.6643 GB, free: 70.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02952/1.228, allocations: 24.76 MB / 0.6885 GB, free: 45.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009301/1.237, allocations: 0.5578 MB / 0.6891 GB, free: 44.64 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00226/1.239, allocations: 0.5117 MB / 0.6896 GB, free: 44.13 MB / 462.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.008031/1.247, allocations: 3.108 MB / 0.6926 GB, free: 41.01 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001929/1.249, allocations: 0.4898 MB / 0.6931 GB, free: 40.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03019/1.28, allocations: 12.93 MB / 0.7057 GB, free: 27.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001334/1.28, allocations: 55.98 kB / 0.7057 GB, free: 27.46 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.919e-05/1.28, allocations: 12 kB / 0.7058 GB, free: 27.45 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001065/1.28, allocations: 11.95 kB / 0.7058 GB, free: 27.44 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3105/1.591, allocations: 24.58 MB / 0.7298 GB, free: 153.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.678e-05/1.591, allocations: 7.844 kB / 0.7298 GB, free: 153.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003002/1.594, allocations: 0.5732 MB / 0.7303 GB, free: 153.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01787/1.612, allocations: 4.971 MB / 0.7352 GB, free: 153.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007877/1.612, allocations: 58.88 kB / 0.7353 GB, free: 153.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02176/1.634, allocations: 19.98 MB / 0.7548 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.612e-06/1.634, allocations: 11.75 kB / 0.7548 GB, free: 142.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03114/1.665, allocations: 17.45 MB / 0.7718 GB, free: 126.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003371/1.669, allocations: 1.244 MB / 0.773 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009022/1.67, allocations: 63.44 kB / 0.7731 GB, free: 125.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002635/1.672, allocations: 266.9 kB / 0.7733 GB, free: 125.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008034/1.673, allocations: 185.6 kB / 0.7735 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/1.673, allocations: 95.17 kB / 0.7736 GB, free: 125.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004771/1.678, allocations: 3.418 MB / 0.777 GB, free: 121.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.678, allocations: 0 / 0.777 GB, free: 121.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007655/1.686, allocations: 1.759 MB / 0.7787 GB, free: 120 MB / 462.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.0006085/1.686, allocations: 205.2 kB / 0.7789 GB, free: 119.8 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0138/1.7, allocations: 10.93 MB / 0.7895 GB, free: 108.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.137e-06/1.7, allocations: 0 / 0.7895 GB, free: 108.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004908/1.705, allocations: 4.103 MB / 0.7935 GB, free: 104.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004091/1.709, allocations: 0.5882 MB / 0.7941 GB, free: 104.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02651/1.736, allocations: 19.25 MB / 0.8129 GB, free: 85.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004409/1.74, allocations: 4.636 MB / 0.8174 GB, free: 80.47 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.006837/1.747, allocations: 2.963 MB / 0.8203 GB, free: 77.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/1.749, allocations: 351.4 kB / 0.8207 GB, free: 77.16 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/1.749, allocations: 0 / 0.8207 GB, free: 77.16 MB / 462.1 MB Notification: Performance of Templates: time 0.322/2.071, allocations: 78.18 MB / 0.897 GB, free: 143.1 MB / 462.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)